|
Pol
Rev 533
|
#include <dice.h>
Public Member Functions | |
| Dice () | |
| void | die_string (std::string &str) const |
| bool | load (const char *dice, std::string *errormsg) |
| unsigned short | max_value (void) const |
| unsigned short | min_value (void) const |
| unsigned short | roll (void) const |
Private Attributes | |
| unsigned | die_count |
| unsigned | die_type |
| int | plus_damage |
| Dice::Dice | ( | ) |
| void Dice::die_string | ( | std::string & | str | ) | const |
Definition at line 172 of file dice.cpp.
References die_count, die_type, OSTRINGSTREAM, OSTRINGSTREAM_STR, and plus_damage.
Referenced by WeaponDesc::PopulateStruct().
Here is the caller graph for this function:| bool Dice::load | ( | const char * | dice, |
| std::string * | errormsg | ||
| ) |
Definition at line 44 of file dice.cpp.
References die_count, die_type, Log(), and plus_damage.
Referenced by ItemDesc::ItemDesc(), NPC::loadDamages(), NPC::loadResistances(), UtilExecutorModule::mf_RandomDiceRoll(), NPC::readNewNpcAttributes(), and WeaponDesc::WeaponDesc().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned short Dice::max_value | ( | void | ) | const |
Definition at line 189 of file dice.cpp.
References die_count, die_type, and plus_damage.
Referenced by Character::max_weapon_damage(), and WeaponDesc::PopulateStruct().
Here is the caller graph for this function:| unsigned short Dice::min_value | ( | void | ) | const |
Definition at line 179 of file dice.cpp.
References die_count, and plus_damage.
Referenced by Character::min_weapon_damage(), and WeaponDesc::PopulateStruct().
Here is the caller graph for this function:| unsigned short Dice::roll | ( | void | ) | const |
Definition at line 28 of file dice.cpp.
References die_count, die_type, plus_damage, and random_int().
Referenced by WeaponDesc::get_random_damage(), ItemDesc::ItemDesc(), NPC::loadDamages(), NPC::loadResistances(), UtilExecutorModule::mf_RandomDiceRoll(), and NPC::readNewNpcAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:unsigned Dice::die_count [private] |
Definition at line 26 of file dice.h.
Referenced by die_string(), load(), max_value(), min_value(), and roll().
unsigned Dice::die_type [private] |
Definition at line 27 of file dice.h.
Referenced by die_string(), load(), max_value(), and roll().
int Dice::plus_damage [private] |
Definition at line 28 of file dice.h.
Referenced by die_string(), load(), max_value(), min_value(), and roll().