|
Pol
Revision:cb584c9
|
#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 |
| void Pol::Core::Dice::die_string | ( | std::string & | str | ) | const |
Definition at line 171 of file dice.cpp.
References die_count, die_type, OSTRINGSTREAM, OSTRINGSTREAM_STR, and plus_damage.
Referenced by Pol::Items::WeaponDesc::PopulateStruct().
| bool Pol::Core::Dice::load | ( | const char * | dice, |
| std::string * | errormsg | ||
| ) |
Definition at line 42 of file dice.cpp.
References die_count, die_type, ERROR_PRINT, plus_damage, and POLLOG.
Referenced by Pol::Items::ItemDesc::ItemDesc(), Pol::Mobile::NPC::loadEquipablePropertiesNPC(), Pol::Module::UtilExecutorModule::mf_RandomDiceRoll(), Pol::Mobile::NPC::readNewNpcAttributes(), and Pol::Items::WeaponDesc::WeaponDesc().
| unsigned short Pol::Core::Dice::max_value | ( | void | ) | const |
Definition at line 188 of file dice.cpp.
References die_count, die_type, and plus_damage.
Referenced by Pol::Mobile::Character::max_weapon_damage(), and Pol::Items::WeaponDesc::PopulateStruct().
| unsigned short Pol::Core::Dice::min_value | ( | void | ) | const |
Definition at line 178 of file dice.cpp.
References die_count, and plus_damage.
Referenced by Pol::Mobile::Character::min_weapon_damage(), and Pol::Items::WeaponDesc::PopulateStruct().
| unsigned short Pol::Core::Dice::roll | ( | void | ) | const |
Definition at line 26 of file dice.cpp.
References die_count, die_type, plus_damage, and Pol::Clib::random_int().
Referenced by Pol::Items::WeaponDesc::get_random_damage(), Pol::Items::ItemDesc::ItemDesc(), Pol::Mobile::NPC::loadEquipablePropertiesNPC(), Pol::Module::UtilExecutorModule::mf_RandomDiceRoll(), and Pol::Mobile::NPC::readNewNpcAttributes().
|
private |
Definition at line 27 of file dice.h.
Referenced by die_string(), load(), max_value(), min_value(), and roll().
|
private |
Definition at line 28 of file dice.h.
Referenced by die_string(), load(), max_value(), and roll().
|
private |
Definition at line 29 of file dice.h.
Referenced by die_string(), load(), max_value(), min_value(), and roll().