Hausmeisterarbeiten

This commit is contained in:
2014-04-03 11:47:37 +02:00
parent b4a84997fe
commit 06e069c052
10 changed files with 265 additions and 330 deletions

View File

@@ -1,28 +1,28 @@
using System;
namespace WorldOfPeacecraft
{
public class Map
{
public Tile[,] map;
public Map (int height, int width)
{
map = new Tile[height, width];
}
public class Map
{
public Tile[,] map;
public void setTile (Tile t)
{
int x = t.getX ();
int y = t.getY ();
map [x, y] = t;
}
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[x, y] = t;
}
public Tile getTile(int x, int y)
{
public Tile getTile (int x, int y)
{
return map[x,y];
}
}
return map [x, y];
}
}
}