Exemple #1
0
 public TileLocation Plus(TileLocation loc)
 {
     return(Plus(loc.Row, loc.Column));
 }
 public Tile Get(TileLocation loc)
 {
     return(_tiles.First(x => x.Location.Equals(loc)));
 }
Exemple #3
0
 protected bool Equals(TileLocation other)
 {
     return(Column == other.Column && Row == other.Row);
 }
 public bool Exist(TileLocation loc)
 {
     return(_tiles.Any(x => x.Location.Equals(loc)));
 }