Beispiel #1
0
 public void Left(object sender, LeftMoveEventArgs e)
 {
     if (_world[_coord._y, _coord._x-1] is Way)
     {
         Coordinate coordOld = new Coordinate(_coord._x, _coord._y);
         _coord._x -= 1;
         _world.Move(coordOld, _coord);
     }
 }
Beispiel #2
0
 private void OnPressLeft()
 {
     if (_left != null)
     {
         LeftMoveEventArgs e = new LeftMoveEventArgs();
         _left(this, e);
     }
 }