Home
last modified time | relevance | path

Searched refs:XDice (Results 1 – 16 of 16) sorted by relevance

/dports/games/avanor/avanor-0.5.8/helpers/
H A Ddice.h32 class XDice
35 XDice(){} in XDice() function
36 XDice(int _x, int _y, int _z = 0) { Setup(_x, _y, _z); }
37 XDice(XDice * d) { Setup(d); } in XDice() function
38 XDice(const char * str) { Setup(str); } // represent "XdY +Z" for example "2d6 - 5" or "4d12 + 30" in XDice() function
41 void Setup(XDice * d) { Setup(d->X, d->Y, d->Z); } in Setup()
42 void Add(XDice * d) {X += d->X; Y = (Y + d->Y) / 2; Z += d->Z;} in Add()
H A Ddice.cpp25 void XDice::Setup(const char * str) in Setup()
53 int XDice::Throw() in Throw()
63 void XDice::Store(XFile * f) in Store()
71 void XDice::Restore(XFile * f) in Restore()
/dports/games/avanor/avanor-0.5.8/magic/
H A Deffect.cpp95 XDice d(X, Y, Z); in Heal()
117 XDice d(X, Y, Z); in Cure()
135 XDice d(X, Y, Z); in Mana()
163 XDice d(X, Y, Z); in Touch()
207 XDice d(X, Y, Z); in Bolt()
300 XDice d(1, pData->power, 5); in Make()
307 XDice d(1, pData->power, 3); in Make()
355 XDice d(2, pData->power, 5); in Make()
H A Dstats.cpp53 XDice d; in Set()
H A Dresist.cpp63 XDice d; in XResistance()
/dports/games/avanor/avanor-0.5.8/item/
H A Ditem.cpp93 XDice * d; in MainFill()
95 d = new XDice(is->dv); in MainFill()
166 XDice d; in PropFill()
225 XDice * d; in SpecialFill()
227 d = new XDice(ienh_db[r_val].dv); in SpecialFill()
H A Dxenhance.cpp174 XDice * d; in XEnhance()
175 d = new XDice(is->dv); in XEnhance()
H A Dxmissile.cpp56 XDice d(1, 3); in XMissile()
H A Dxration.cpp67 XDice d(ration->nutrio); in XRation()
/dports/games/avanor/avanor-0.5.8/engine/
H A Dxbaseobj.h46 XDice dice;
/dports/games/avanor/avanor-0.5.8/creature/
H A Dxhero2.cpp171 XDice * d = new XDice(cust_race[ch - 97].speed); in PlayerSetup()
H A Dcreature.h333 void GetRangeAttackInfo(int * range, int * hit, XDice * dmg);
H A Dxhero.cpp59 XDice * d; in XHero()
64 d = new XDice("1d3"); in XHero()
68 d = new XDice("1d2-1"); in XHero()
72 d = new XDice("1d4"); in XHero()
733 XDice dmg; in InfoList()
1602 XDice dmg; in XShoot()
H A Danycr.cpp49 XDice d; in XAnyCreature()
H A Dcreature.cpp1072 void XCreature::GetRangeAttackInfo(int * range, int * hit, XDice * dmg) in GetRangeAttackInfo()
1131 XDice dmg; in Shoot()
H A DStd_ai.cpp897 XDice dmg; in Shoot()