120 likes | 249 Views
Sorry!. By: Mordor Programming. Use case. Class Definitions . Cards -deck : array[int ] -top : int +shuffle() +discard() + drawTopCard () : int Pawn -color : int -position : int - onBoard : boolean - inSZ : boolean +move(position : int ) : boolean.
E N D
Sorry! By: Mordor Programming
Class Definitions • Cards -deck : array[int] -top : int+shuffle() +discard() +drawTopCard() : int • Pawn -color : int-position : int-onBoard : boolean-inSZ : boolean+move(position : int) : boolean • Board -redPawns : array[Pawn]-bluePawns : array[Pawn]-greenPawns : array[Pawn]-yellowPawns : array[Pawn]-redSZ : arrayBoard[Square]-blueSZ : array[BoardSquare]-greenSZ : array[BoardSquare]-yellowSZ : array[BoardSquare]-cards : Cards -board : CircularLinkedList[BoardSquare]+slide() +isBump() : boolean+bump() +checkWinner() : int
Class Definitions cont’d • Player -color : int-ai : boolean+drawCard() : int+choosePawn(position : int) : boolean • [BoardSquare]-color : int-slidePosition : int-isSZEntrance : boolean • [GameMode]+mode : int