isWall hinzugefügt

This commit is contained in:
Daniel Herrmann
2014-04-03 13:12:39 +02:00
parent b8f41e1ee5
commit 3fe8858732
2 changed files with 35 additions and 21 deletions

View File

@@ -13,6 +13,7 @@ namespace Frontend
public interface ITile : IPositionable public interface ITile : IPositionable
{ {
bool isWalkable(); bool isWalkable();
bool isWall();
bool isForest(); bool isForest();
bool isHuntable(); bool isHuntable();
bool isWater(); bool isWater();

View File

@@ -9,15 +9,17 @@ namespace WorldOfPeacecraft
public int y; public int y;
public Entity entity; public Entity entity;
public bool walkable; public bool walkable;
public bool wall;
public bool forest; public bool forest;
public bool huntable; public bool huntable;
public bool water; public bool water;
public Tile (int posX, int posY, bool walkable, bool forest, bool huntable, bool water) public Tile (int posX, int posY, bool walkable, bool wall, bool forest, bool huntable, bool water)
{ {
this.setX (posX); this.setX (posX);
this.setY (posY); this.setY (posY);
this.setWalkable (walkable); this.setWalkable (walkable);
this.setWall(wall);
this.setForest (forest); this.setForest (forest);
this.setHuntable (huntable); this.setHuntable (huntable);
this.setWater (water); this.setWater (water);
@@ -73,6 +75,17 @@ namespace WorldOfPeacecraft
return walkable; return walkable;
} }
public void setWall(bool wall)
{
this.wall = wall;
}
public bool isWall()
{
return wall;
}
public void setForest (bool forest) public void setForest (bool forest)
{ {
this.forest = forest; this.forest = forest;