public SnakeGameContext (IConfigurationDataProvider dataProvider, WallObject wall, SnakeObject snake, FoodObject food, BonusObject bonus) : base(dataProvider, wall, snake, food, bonus) { Console.Title = "SNAKE"; }
public SnakeGameEngine (IGameContext gameContext, IPainter painter, IGameEventFactory gameEventFactory, FoodObject additionalFood) : base(gameContext, painter, gameEventFactory) { _gameSpeed = 80; _slowFactor = 0; CurrentEvent = _eventFactory.Create("Start", _gameContext); _additionalFood = additionalFood; }