Beispiel #1
0
 void IModelPacMan.UpdateGhostA(eDirection direction, bool isScared)
 {
     _ePacmanPosition = ePacmanPosition.DownDown;
     CreateAndExecuteTurn(
         (ITurn turn) =>
         {
             CmdMoveGhostA cmdMoveGhostA = new CmdMoveGhostA(direction, _ePacmanPosition, isScared);
             turn.Push(cmdMoveGhostA);
         });
 }
Beispiel #2
0
 void IModelPacMan.UpdateGhostA()
 {
     _eDirectionGhostA = eDirection.DOWN;
     _ePacmanPosition  = ePacmanPosition.DownDown;
     CreateAndExecuteTurn(
         (ITurn turn) =>
     {
         CmdMoveGhostA cmdMoveGhostA = new CmdMoveGhostA(_eDirectionGhostA, _ePacmanPosition);
         turn.Push(cmdMoveGhostA);
     });
 }