Projektdatei committed

This commit is contained in:
2014-04-03 10:33:41 +02:00
parent aa1e295425
commit 46b820f2b6
21 changed files with 58 additions and 0 deletions

28
src/Map.cs Normal file
View File

@@ -0,0 +1,28 @@
using System;
public class Map
{
public Tile[,] map;
public Map(int height, int width)
{
map = new Tile[height, width];
}
public void setTile(Tile t)
{
int x= t.getX();
int y= t.getY();
map.SetValue(t, x, y);
}
public Tile getTile(int x, int y)
{
return map.GetValue(x,y);
}
}