Data Glossary - lembang/GreenTeam331 GitHub Wiki

General Definitions/Constants

int BOARD_SIZE - Defined as 100
int MAX_PLAYERS - Defined as 4

StartMenu

int gameMode - 0 = singleplayer, 1 = multiplayer, 2 = internet multiplayer
int snakes - the number of snakes for the game, within the range of 0 and 20
int ladders - the number of ladders for the game, within the range of 0 and 20
int stars - the number of stars for the game, within the range of 0 and 10
boolean educationalMode - true if selected as on, false if selected as off
boolean finished - true if the user is finished with the form, false if not

SnakesAndLadders

boolean fastmode - true disables input pause during dice roll animation, false for normal gameplay
Board _gameBoard - holds the instance of the gameboard

Board

BoardNode[] boardArray - an array of boardNodes that represents board squares
ArrayList snakeList - the data container for snake objects
ArrayList ladderList - the data container for ladder objects
ArrayList playerList - the data container for ladder objects
Dice _dice - the dice object instance
Winner _winGFX - the winner display panel (created when a player wins)
ScoreBoard _scoreBoard - the single scoreboard object instance
int currPlayers - updates when a player is added to the game
int playerTurnNum - 0 for player one, 1 for player two, 2 for player three, 3 for player four. Always within the range of [0..currPlayers]

Player

string playerName - The name of the player.
int boardPosition - The square the player is currently on.
int starCount - The number of stars the player currently has.
static int numPlayers - The number of currently instantiated player objects.
GamePiece _gamePiece - the instance of a game piece corresponding to the player.

GamePiece

Vector goSquares - A vector-implemented FIFO queue of board square locations to animate towards in order to implement corner animations
int Color - red=1,blue=2,green=3,yellow=4

Snake

int affectsSquare - The board square number the snake's movement modifier is triggered on
int movesToSquare - The board square number that the snake's movement trigger moves a player to

Ladder

int affectsSquare - The board square number the ladder's movement modifier is triggered on
int movesToSquare - The board square number that the ladder's movement trigger moves a player to

Star

int affectsSquare - The board square that the star resides on.

Dice

int dice1 - The first result of the dice roll event. Within the range of 1-6.
int dice2 - The second result of the dice roll event. Within the range of 1-6.

*Question (CountingQuestion, AddingQuestion)

boolean finished - true if the user has finished answering the question.
boolean correct - true if the question was answered correctly by the user after finished = true.

ScoreBoard

int currPlayers - the number of players currently
String playerNames[] - An array that contains the names of the current players.
pos 0=player one, pos 1=player two, pos 2= player three, pos 3 = player four.
int playerStars[] - An array that contains the number of stars a player has. pos 0=player one, pos 1=player two, pos 2= player three, pos 3 = player four.
int currTurn - An integer that corresponds to the current player's turn. 0=player one, 1=player two, 2= player three, 3 = player four.

⚠️ **GitHub.com Fallback** ⚠️