Two Dice
- 2. UML Diagrams
Did you say Hunger
Games? Or Pig
Game? I’m set either
way.
TwoDicePig
- turnTotal : int
+ totalSetter (int : setTotal) : void
+ totalGetter () : int
+ rollDie () : int
PigDieGame (MAIN)
+ main (String:args) :
PlayerClass
- name : String
- score : int
+ clearScore() :void
+ decision () : int
+ getName(String : nameGet) : String
+ getScore(int : scoreGet) : int
+ setName(String : nameSet) :void
+ setScore(int : scoreSet) : void
DiceWindow
- imagePanel (JPanel : )
- imageLabel (JLabel : )
+ diceWindow () : void