Main in separater Klasse.

Neue Klassen: Map, Tile, Player, Dragon
This commit is contained in:
Daniel Herrmann
2014-04-03 10:17:40 +02:00
parent 4a2a01853a
commit 2cac9a9203
5 changed files with 331 additions and 0 deletions

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