예제 #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);
         });
 }
예제 #2
0
파일: ModelPacMan.cs 프로젝트: NnX/PakPak
 void IModelPacMan.UpdateGhostA()
 {
     _eDirectionGhostA = eDirection.DOWN;
     _ePacmanPosition  = ePacmanPosition.DownDown;
     CreateAndExecuteTurn(
         (ITurn turn) =>
     {
         CmdMoveGhostA cmdMoveGhostA = new CmdMoveGhostA(_eDirectionGhostA, _ePacmanPosition);
         turn.Push(cmdMoveGhostA);
     });
 }