Table: Class Diagram
Links to the class diagram as a .dia file or web friendly .png
Class | Description |
---|---|
Menu : | This class contains all of the different menus that will be inside our game system |
MenuScreen : | This class manages the different screens that users will be interacting with(graphical interfaces) |
Option : | This class manages all of the options shown inside the individual MenuScreens(What options will be visible or not to users) |
Action : | This class manages the option selected by user and how to handle the action associated with it |
BoardGame : | This class is the "brains" of the game in play, making sure that rules for game play are followed, who the current player is, and what objects need to be updated(redrawn) to screen |
Screen : | Our game inherits a way to print things to the screen(graphics) from here (some type of a panel) |
MovementMap : | Manages all movementNodes, which determines location for all items on the board such as player pieces, and other game pieces. |
MovementNode : | class splits up board into sections of moveable and non moveable places for the board to determine where pieces can and can't move |
Coordinate : | Small class that holds integer values to determine a point or location on screen. It determines where point is relative to others. |
RuleSet : | Handles all rules and makes sure that none of them are violated by players during game play |
Rule : | Class of individual rules for game play |
Inventory : | Class holds a list of all game items. Allows adding and removing items inside the inventory. Players as well as a "banker" contain an inventory of items |
GameItem : | This is a small abstract class that all pieces to be displayed to the screen inherit from so they can be drawn to board. |
Piece : | Piece class holds screen location, image, and whether or not it is movable by players or if it is stationary. Also makes sure piece follows necessary rules |
Dice : | Class representing dice for games, allowing differing number of sides and images for each dice |
Token : | Inherits from piece. Players' main movable piece. |
Deck : | Manages set of cards of a specific kind |
Card : | Contains all values that make up a card such as an integer value or type of card, rules to follow, and any solution values |
Player : | Class representing players of the game, what actions they can do, and what pieces they contain in their inventory |
NonPlayer : | This class represents a non human player such as a banker, that contains an inventory of pieces that are not in the inventory of actual players. |
Association | Description |
---|---|
Start the Game | The relationship between the main menu and how the game is started |
Unmovable Inventory | Board containing inventory of all non movable pieces in game(Ex. deck of cards on top of board) |