User Tools

Site Tools


notes:data:die

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:data:die [2010/11/18 02:23] – created bwilson3notes:data:die [2010/11/18 13:09] (current) ryoung12
Line 1: Line 1:
 +==== Class Dice ====
 +PATH: ../backgammon/dice
 +
 +<ditaa noedgesep center>
 +                                           Die Class
 +                                     /-------------------\
 +                                     |c978   die.h       |
 +                                     +-------------------+
 +                                     |int           value|
 +                                     |int           min  |
 +                                     |int           max  |
 +                                     |unsigned int  seed |
 +                                     \---------*---------/
 +                                               |
 +            /----------------------+-----------+-----------+----------------------\
 +            |                      |                                            |
 +  /---------*---------\  /---------*---------\   /---------*---------\  /---------*---------\
 +  |c978 accessor.cc    |c978  create.cc    |   |c978 destroy.cc    |  |c978  dieops.cc    |
 +  +-------------------+  +-------------------+   +-------------------+  +-------------------+
 +  |int   getValue()    |Die  Die()           |Die  ~Die()        |  |void  roll()       |
 +  |bool  setMin()      |Die  Die(int,int)  |                  {d}|  |void  genSeed()    |
 +  |bool  setMax()      |                {d}|   +-------------------+  |                {d}|
 +  |int   getMin()      +-------------------+                          +-------------------+
 +  |int   getMax()     |
 +  |                {d}|
 +  +-------------------+
 +
 +</ditaa>
 +
 +^  Function  ^  Parameter(s)  ^  Return value  |
 +|  die_roll  |  int die[4]  |  void  |
 +|begin_role | bool newGame |  bool player  |
 +
 +
 +
 +Files
 +  * dice.cc
 +  * dice_role.cc