public void PacManEaten() { _ghostHouseDoor.SwitchToUseGlobalCounter(); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new GhostMovementConductor(props); }
public void NewLevel() { _levelStats = new LevelStats(++_levelNumber); _ghostHouseDoor = new GhostHouseDoor(0, _mediator); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new GhostMovementConductor(props); }
public PlayerStats(int playerIndex, IMediator mediator) { _mediator = mediator; PlayerIndex = playerIndex; Score = 0; //cheat LivesRemaining = Constants.PacManLives; _levelNumber = -1; _extraLives = new List <int> { 10000 }; _levelStats = new LevelStats(0); _ghostHouseDoor = new GhostHouseDoor(0, _mediator); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new GhostMovementConductor(props); }