예제 #1
0
 public Move(string playerName, bool isPromoted, int tokenID, Coordinates startCoord, Coordinates destinationCoord)
 {
     this.playerName   = playerName;
     this.tokenID      = tokenID;
     this.isPromoted   = isPromoted;
     startCoordX       = startCoord.x;
     startCoordY       = startCoord.y;
     destinationCoordX = destinationCoord.x;
     destinationCoordY = destinationCoord.y;
 }
예제 #2
0
 /// <summary>
 /// Définit un nouveau couple x et y en fonction d'autres coordonnées.
 /// </summary>
 /// <param name="coord">Coordonées.</param>
 public void set(Coordinates coord)
 {
     this.x = coord.x;
     this.y = coord.y;
 }
예제 #3
0
 /// <summary>
 /// Teste si deux coordonnées sont égales.
 /// </summary>
 /// <param name="coord">Coordonnées à tester.</param>
 public bool equals(Coordinates coord)
 {
     return((coord.x == x) && (coord.y == y));
 }
예제 #4
0
 public Coordinates(Coordinates coord)
 {
     this.x = coord.x;
     this.y = coord.y;
 }