Exemple #1
0
 private Coordinates WrapToNorthEdge(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == currentCoord.X && coord.Y == MinBounds));
 }
Exemple #2
0
 private Coordinates IncreaseXPosition(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == currentCoord.X + 1 && coord.Y == currentCoord.Y));
 }
Exemple #3
0
 private Coordinates WrapToWestEdge(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == MinBounds && coord.Y == currentCoord.Y));
 }
Exemple #4
0
 private Coordinates WrapToSouthEdge(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == currentCoord.X && coord.Y == Height));
 }
Exemple #5
0
 private Coordinates DecreaseYPosition(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == currentCoord.X && coord.Y == currentCoord.Y - 1));
 }
Exemple #6
0
 private Coordinates WrapToEastEdge(Coordinates currentCoord)
 {
     return(Coordinates.Find(coord => coord.X == Length && coord.Y == currentCoord.Y));
 }