EatFood() public method

public EatFood ( Food levelFood ) : void
levelFood Food
return void
コード例 #1
0
ファイル: Game.cs プロジェクト: taler0n/Students
 public void MakeMovePacMan(Point newPacManLocation, Point eyeCoordinate, Point mouthCoordinate)
 {
     if (_map.IsOutOfWall(newPacManLocation) && IsNewPacManLocationInMap(newPacManLocation))
     {
         _pacMan.DoStep(newPacManLocation);
         _pacMan.EyeCoordinate   = new Point(_pacMan.PacManCoordinate.X + eyeCoordinate.X, _pacMan.PacManCoordinate.Y + eyeCoordinate.Y);
         _pacMan.MouthCoordinate = mouthCoordinate;
         _pacMan.EatFood(_map.LevelFood);
     }
 }