130 likes | 252 Views
Sorry!. By: Mordor Programming. Use case. Class Definitions. Board -players : array[Player] -cards : Cards -board : CircularArrayList [ BoardSquare ] +slide() + isBump () : boolean +bump() + checkWinner () : int + drawCard () : int. BoardSquare - colorPanel : string
E N D
Sorry! By: Mordor Programming
Class Definitions • Board-players : array[Player]-cards : Cards -board : CircularArrayList[BoardSquare]+slide() +isBump() : boolean+bump() +checkWinner() : int +drawCard() : int • BoardSquare -colorPanel : string -pawnColor : string -startSlide : boolean -isSZEntrance: boolean +getColorPanel() : string +getPawnColor() : string +getStartSlide() : boolean +getIsSZEntrance() : boolean
Class Definitions cont’d • Pawn -positionIndex : int -start : boolean -home : boolean -inSZ : boolean +getPositionIndex() : int +movePositionIndex(newPosition : int) : boolean +getSZ() : boolean +getHome() : boolean +changeStart(switch : boolean) : boolean +changeHome(switch : boolean) : boolean +changeSZ(switch : boolean) : boolean • Player -color : string -pawns : array[Pawn]-ai : boolean+choosePawnToMove(index : int) : boolean+movePawn(positionToMove : int) : boolean • Cards -deck : array[int] -top : int +shuffle() +discard() +drawTopCard() : int