Pol  Revision:cb584c9
dice.h
Go to the documentation of this file.
1 
8 #ifndef DICE_H
9 #define DICE_H
10 
11 #include <string>
12 namespace Pol
13 {
14 namespace Core
15 {
16 class Dice
17 {
18 public:
19  Dice();
20  bool load( const char* dice, std::string* errormsg );
21  unsigned short roll( void ) const;
22  void die_string( std::string& str ) const;
23  unsigned short min_value( void ) const;
24  unsigned short max_value( void ) const;
25 
26 private:
27  unsigned die_count;
28  unsigned die_type;
30 };
31 }
32 }
33 #endif
unsigned short roll(void) const
Definition: dice.cpp:26
unsigned die_count
Definition: dice.h:27
unsigned short min_value(void) const
Definition: dice.cpp:178
unsigned die_type
Definition: dice.h:28
void die_string(std::string &str) const
Definition: dice.cpp:171
unsigned short max_value(void) const
Definition: dice.cpp:188
int plus_damage
Definition: dice.h:29
bool load(const char *dice, std::string *errormsg)
Definition: dice.cpp:42
Definition: berror.cpp:12