Skip to content

Data Models

Trevor-Dartmouth edited this page Oct 22, 2019 · 2 revisions

Data Models

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)
}