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