-
Notifications
You must be signed in to change notification settings - Fork 5
Data Models
Trevor-Dartmouth edited this page Oct 22, 2019
·
2 revisions
Player: {
id: int,
username: String,
hiScores: HashMap<Settings, int>
}
Game: {
id: int,
plGameGrid: int[][],
p2GameGrid: int[][],
currPiece: Piece,
pieceQueue: Queue<Piece>,
gameSettings: Settings,
currPlayers: List<Player>,
currScore: int
}
Settings: {
id: int,
gameMode: int,
fallSpeed: int,
}
Piece: {
id: int
pieceType: int,
color: int,
rotation: int,
isSuperpositioned: boolean,
isEntangled: boolean,
entangledPair: int (Piece id)
}