Hausmeisterarbeiten
This commit is contained in:
42
src/Map.cs
42
src/Map.cs
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user