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; }
public GameState(GameFieldSize fieldSize, ulong score, double speed) { FieldSize = fieldSize; Score = score; Speed = speed; }