29 lines
450 B
C#
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);
|
|
}
|
|
|
|
}
|
|
|