Files
inf3/Map.cs
Daniel Herrmann 2cac9a9203 Main in separater Klasse.
Neue Klassen: Map, Tile, Player, Dragon
2014-04-03 10:17:40 +02:00

29 lines
450 B
C#

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