示例#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);
     });
 }