Beispiel #1
0
 public static GrasTile GetTileSave(SimpleCords cords)
 {
     if (cords.X >= 0 && cords.X < width && cords.Y >= 0 && cords.Y < height)
     {
         GrasTile t = garden[cords.X, cords.Y];
         return(t);
     }
     return(null);
 }
Beispiel #2
0
 public GrasTile(SimpleCords position)
 {
     this.position = position;
 }
Beispiel #3
0
 public SimpleCords(SimpleCords cords)
 {
     X = cords.X;
     Y = cords.Y;
 }