SetNewLocation() public méthode

public SetNewLocation ( int x, int y ) : void
x int
y int
Résultat void
Exemple #1
0
 private void Jump(MyPoint p, Cell c, int i, int j)
 {
     p.SetNewLocation(c.X, c.Y);
     p.I = i;
     p.J = j;
     c.Enabled = false;
     p.CurrentCell.Enabled = true;
     p.CurrentCell = c;
     IsLightTurn = !IsLightTurn;
     Expansion(p);
       //  MessageBox.Show(String.Format("Game over! The winner is: {0}", _lightList.Count == 0 ? "Green team" : "Red team"));
 }