Beispiel #1
0
 public void MoveToPosition(Point p, Level level)
 {
     if (GameRule.CanDraw(p, level))
     {
         Pos = p;
         Paint();
     }
 }
Beispiel #2
0
        public void Move(Point p, Level level, long time)
        {
            Point newPos = new Point(p.X + Pos.X, p.Y + Pos.Y);

            if (GameRule.CanDraw(newPos, level))
            {
                Pos = newPos;
                Paint();
            }
        }