Esempio n. 1
0
 public GameModel(IEnemyFactory enemyFactory, GameFieldSize gameFieldSize,
                  Dictionary <PlayerState, GameObjectSize> playerSizesByStates)
 {
     Console.WriteLine($"Starting game with field {gameFieldSize.Width}x{gameFieldSize.Height} size");
     this.enemyFactory        = enemyFactory;
     this.gameFieldSize       = gameFieldSize;
     this.playerSizesByStates = playerSizesByStates;
     Reset();
     State.PlayerAlive = false;
 }
Esempio n. 2
0
 public GameState(GameFieldSize fieldSize, ulong score, double speed)
 {
     FieldSize = fieldSize;
     Score     = score;
     Speed     = speed;
 }