Pol  Revision:4b29d2b
Pol::Core::Dice Class Reference

#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
 

Detailed Description

Definition at line 16 of file dice.h.

Constructor & Destructor Documentation

Pol::Core::Dice::Dice ( )

Definition at line 24 of file dice.cpp.

Member Function Documentation

void Pol::Core::Dice::die_string ( std::string &  str) const
unsigned short Pol::Core::Dice::max_value ( void  ) const
unsigned short Pol::Core::Dice::min_value ( void  ) const

Member Data Documentation

unsigned Pol::Core::Dice::die_count
private

Definition at line 27 of file dice.h.

Referenced by die_string(), load(), max_value(), min_value(), and roll().

unsigned Pol::Core::Dice::die_type
private

Definition at line 28 of file dice.h.

Referenced by die_string(), load(), max_value(), and roll().

int Pol::Core::Dice::plus_damage
private

Definition at line 29 of file dice.h.

Referenced by die_string(), load(), max_value(), min_value(), and roll().


The documentation for this class was generated from the following files: