Setter für das Backend

This commit is contained in:
2014-04-05 13:55:18 +02:00
parent 24612b0901
commit 202cd1638e
3 changed files with 54 additions and 35 deletions

View File

@@ -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;
}
}
}