Example #1
0
    public void PacManEaten()
    {
        _ghostHouseDoor.SwitchToUseGlobalCounter();

        var props = LevelStats.GetGhostPatternProperties();

        _ghostMovementConductor = new(props);
    }
Example #2
0
    public void NewLevel()
    {
        _levelStats     = new(++_levelNumber);
        _ghostHouseDoor = new(0, _mediator);

        var props = LevelStats.GetGhostPatternProperties();

        _ghostMovementConductor = new(props);
    }
Example #3
0
    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);
    }