Bacterium.MyPoint.SetNewLocation C# (CSharp) Method

SetNewLocation() public method

public SetNewLocation ( int x, int y ) : void
x int
y int
return void
        public void SetNewLocation(int x, int y)
        {
            X = x; Y = y;
        }

Usage Example

示例#1
0
文件: Game.cs 项目: vgamula/Bacterium
 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"));
 }