119 lines
1.6 KiB
C#
119 lines
1.6 KiB
C#
using System;
|
|
using Frontend;
|
|
|
|
namespace WorldOfPeacecraft
|
|
{
|
|
public class Tile : ITile
|
|
{
|
|
public int x;
|
|
public int y;
|
|
public Entity entity;
|
|
public bool walkable;
|
|
public bool wall;
|
|
public bool forest;
|
|
public bool huntable;
|
|
public bool water;
|
|
|
|
public Tile (int posX, int posY, bool walkable, bool wall, bool forest, bool huntable, bool water)
|
|
{
|
|
this.setX (posX);
|
|
this.setY (posY);
|
|
this.setWalkable (walkable);
|
|
this.setWall(wall);
|
|
this.setForest (forest);
|
|
this.setHuntable (huntable);
|
|
this.setWater (water);
|
|
}
|
|
|
|
public void setX (int x)
|
|
{
|
|
this.x = x;
|
|
}
|
|
|
|
public int getX ()
|
|
{
|
|
return x;
|
|
}
|
|
|
|
public int getXPosition ()
|
|
{
|
|
return x;
|
|
}
|
|
|
|
public void setY (int y)
|
|
{
|
|
this.y = y;
|
|
}
|
|
|
|
public int getY ()
|
|
{
|
|
return y;
|
|
}
|
|
|
|
public int getYPosition ()
|
|
{
|
|
return y;
|
|
}
|
|
|
|
public void setEntity (Entity entity)
|
|
{
|
|
this.entity = entity;
|
|
}
|
|
|
|
public Entity getEntity ()
|
|
{
|
|
return entity;
|
|
}
|
|
|
|
public void setWalkable (bool walkable)
|
|
{
|
|
this.walkable = walkable;
|
|
}
|
|
|
|
public bool isWalkable ()
|
|
{
|
|
return walkable;
|
|
}
|
|
|
|
public void setWall(bool wall)
|
|
{
|
|
this.wall = wall;
|
|
}
|
|
|
|
public bool isWall()
|
|
{
|
|
return wall;
|
|
}
|
|
|
|
|
|
public void setForest (bool forest)
|
|
{
|
|
this.forest = forest;
|
|
}
|
|
|
|
public bool isForest ()
|
|
{
|
|
return forest;
|
|
}
|
|
|
|
public void setHuntable (bool huntable)
|
|
{
|
|
this.huntable = huntable;
|
|
}
|
|
|
|
public bool isHuntable ()
|
|
{
|
|
return huntable;
|
|
}
|
|
|
|
public void setWater (bool water)
|
|
{
|
|
this.water = water;
|
|
}
|
|
|
|
public bool isWater ()
|
|
{
|
|
return water;
|
|
}
|
|
}
|
|
} |