Exemplo n.º 1
0
        private void AddScore(Pacmac pacmac, int addedBase)
        {
            int added = addedBase;

            switch (_type)
            {
            case PacmacStateType.SUPER:
                added *= 2;
                break;

            case PacmacStateType.NORMAL:
            case PacmacStateType.POWER:
            default:
                break;
            }
            pacmac.SetScore(added + pacmac.GetScore());
        }
Exemplo n.º 2
0
        private void EatGhost(Pacmac pacmac, Ghost ghost)
        {
            int added = ghost.GetEaten();

            pacmac.SetScore(pacmac.GetScore() + added);
        }