Hausmeisterarbeiten
This commit is contained in:
179
src/Tile.cs
179
src/Tile.cs
@@ -1,111 +1,106 @@
|
||||
using System;
|
||||
using Frontend;
|
||||
|
||||
namespace WorldOfPeacecraft
|
||||
{
|
||||
public class Tile : ITile
|
||||
{
|
||||
public int x;
|
||||
public int y;
|
||||
public Entity entity;
|
||||
public bool walkable;
|
||||
public bool forest;
|
||||
public bool huntable;
|
||||
public bool water;
|
||||
|
||||
public Tile (int posX, int posY, bool walkable, bool forest, bool huntable, bool water)
|
||||
{
|
||||
this.setX (posX);
|
||||
this.setY (posY);
|
||||
this.setWalkable (walkable);
|
||||
this.setForest (forest);
|
||||
this.setHuntable (huntable);
|
||||
this.setWater (water);
|
||||
}
|
||||
|
||||
public class Tile
|
||||
{
|
||||
public int x;
|
||||
public int y;
|
||||
public Dragon drag;
|
||||
public Player playr;
|
||||
public bool isWalkable;
|
||||
public bool isForest;
|
||||
public bool isHuntable;
|
||||
public bool isWater;
|
||||
public void setX (int x)
|
||||
{
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
public Tile(int posX, int posY, bool walkable, bool forest, bool huntable, bool water)
|
||||
{
|
||||
this.setX(posX);
|
||||
this.setY(posY);
|
||||
this.setWalkable(walkable);
|
||||
this.setForest(forest);
|
||||
this.setHuntable(huntable);
|
||||
this.setWater(water);
|
||||
}
|
||||
public int getX ()
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
public void setX(int x)
|
||||
{
|
||||
this.x = x;
|
||||
}
|
||||
public int getXPosition ()
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
public int getX()
|
||||
{
|
||||
return x;
|
||||
}
|
||||
public void setY (int y)
|
||||
{
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public void setY(int y)
|
||||
{
|
||||
this.y = y;
|
||||
}
|
||||
public int getY ()
|
||||
{
|
||||
return y;
|
||||
}
|
||||
|
||||
public int getY()
|
||||
{
|
||||
return y;
|
||||
}
|
||||
public int getYPosition ()
|
||||
{
|
||||
return y;
|
||||
}
|
||||
|
||||
public void setDragon(Dragon drag)
|
||||
{
|
||||
this.drag = drag;
|
||||
}
|
||||
public void setEntity (Entity entity)
|
||||
{
|
||||
this.entity = entity;
|
||||
}
|
||||
|
||||
public Dragon getDragon()
|
||||
{
|
||||
return drag;
|
||||
}
|
||||
public Entity getEntity ()
|
||||
{
|
||||
return entity;
|
||||
}
|
||||
|
||||
public void setPlayer(Player playr)
|
||||
{
|
||||
this.playr = playr;
|
||||
}
|
||||
public void setWalkable (bool walkable)
|
||||
{
|
||||
this.walkable = walkable;
|
||||
}
|
||||
|
||||
public Player getPlayer()
|
||||
{
|
||||
return playr;
|
||||
}
|
||||
public bool isWalkable ()
|
||||
{
|
||||
return walkable;
|
||||
}
|
||||
|
||||
public void setWalkable(bool walkable)
|
||||
{
|
||||
this.isWalkable = walkable;
|
||||
}
|
||||
public void setForest (bool forest)
|
||||
{
|
||||
this.forest = forest;
|
||||
}
|
||||
|
||||
public bool getWalkable()
|
||||
{
|
||||
return isWalkable;
|
||||
}
|
||||
public bool isForest ()
|
||||
{
|
||||
return forest;
|
||||
}
|
||||
|
||||
public void setForest(bool forest)
|
||||
{
|
||||
this.isForest = forest;
|
||||
}
|
||||
public void setHuntable (bool huntable)
|
||||
{
|
||||
this.huntable = huntable;
|
||||
}
|
||||
|
||||
public bool getForest()
|
||||
{
|
||||
return isForest;
|
||||
}
|
||||
public bool isHuntable ()
|
||||
{
|
||||
return huntable;
|
||||
}
|
||||
|
||||
public void setHuntable(bool huntable)
|
||||
{
|
||||
this.isHuntable = huntable;
|
||||
}
|
||||
|
||||
public bool getHuntable()
|
||||
{
|
||||
return isHuntable;
|
||||
}
|
||||
|
||||
public void setWater(bool water)
|
||||
{
|
||||
this.isWater = water;
|
||||
}
|
||||
|
||||
public bool getWater()
|
||||
{
|
||||
return isWater;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
public void setWater (bool water)
|
||||
{
|
||||
this.water = water;
|
||||
}
|
||||
|
||||
public bool isWater ()
|
||||
{
|
||||
return water;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user