public void PacManEaten() { _ghostHouseDoor.SwitchToUseGlobalCounter(); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new(props); }
public void NewLevel() { _levelStats = new(++_levelNumber); _ghostHouseDoor = new(0, _mediator); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new(props); }
public PlayerStats(int playerIndex, IMediator mediator) { _mediator = mediator; PlayerIndex = playerIndex; Score = Score.Zero; // cheat Lives = Constants.PacManLives; _levelNumber = -1; _extraLives = new() { 10_000 }; _levelStats = new(0); _ghostHouseDoor = new(0, _mediator); var props = LevelStats.GetGhostPatternProperties(); _ghostMovementConductor = new(props); }