Setter für das Backend
This commit is contained in:
@@ -11,17 +11,16 @@ namespace WorldOfPeacecraft
|
||||
map = new Tile[height, width];
|
||||
}
|
||||
|
||||
public void setTile (Tile t)
|
||||
public void SetTile (Tile t)
|
||||
{
|
||||
int x = t.getX ();
|
||||
int y = t.getY ();
|
||||
map [x, y] = t;
|
||||
}
|
||||
|
||||
public Tile getTile (int x, int y)
|
||||
public Tile[,] GetTiles ()
|
||||
{
|
||||
|
||||
return map [x, y];
|
||||
return map;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user