Class GameSummary
Provides functionality to track information about players needed to calculate the final score.
public static class GameSummary
- Inheritance
-
GameSummary
- Inherited Members
Properties
FinalResults
Stores the final order of the players.
public static Dictionary<Player, int> FinalResults { get; set; }
Property Value
- Dictionary<Player, int>
PlayerStats
Stores GameSummary.Stats information about each player.
public static Dictionary<Player, GameSummary.Stats> PlayerStats { get; }
Property Value
- Dictionary<Player, GameSummary.Stats>
Methods
AddFinishedPuzzle(Player, Puzzle)
Adds a finished puzzle to the specified player's info.
public static void AddFinishedPuzzle(Player player, Puzzle puzzle)
Parameters
player
PlayerThe player who finished the puzzle.
puzzle
PuzzleThe puzzle that was finished.
AddFinishingTouchesTetromino(Player, TetrominoShape)
Adds a finishing touches tetromino to the specified player's info.
public static void AddFinishingTouchesTetromino(Player player, TetrominoShape tetromino)
Parameters
player
PlayerThe player who placed the tetromino.
tetromino
TetrominoShapeThe tetromino shape.
AddUnfinishedPuzzle(Player, Puzzle)
Adds an unfinished puzzle to the specified player's info.
public static void AddUnfinishedPuzzle(Player player, Puzzle puzzle)
Parameters
player
PlayerThe player who did not finish the puzzle.
puzzle
PuzzleThe puzzle that was not finished.
Clear()
Clears all stored information.
public static void Clear()
SetNumLeftoverTetrominos(Player, int)
Sets the number of leftover tetrominos for the specified player.
public static void SetNumLeftoverTetrominos(Player player, int numLeftoverTetrominos)
Parameters
player
PlayerThe player.
numLeftoverTetrominos
intThe number of leftover tetrominos.