Erste Gui Version. Es wird lediglich die Map gezeichnet. Das Backend ist angeschlossen

This commit is contained in:
2014-04-30 17:28:58 +02:00
parent 7a8df2e147
commit ba4eb0d2d9
19 changed files with 363 additions and 513 deletions

View File

@@ -5,115 +5,104 @@ 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 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);
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)
public void SetX (int x)
{
this.x = x;
this.X = x;
}
public int getX ()
public int GetX ()
{
return x;
return X;
}
public int getXPosition ()
public void SetY (int y)
{
return x;
this.Y = y;
}
public void setY (int y)
public int GetY ()
{
this.y = y;
return Y;
}
public int getY ()
public void SetEntity (Entity entity)
{
return y;
this.Entity = entity;
}
public int getYPosition ()
public Entity GetEntity ()
{
return y;
return Entity;
}
public void setEntity (Entity entity)
public void SetWalkable (bool walkable)
{
this.entity = entity;
this.Walkable = walkable;
}
public Entity getEntity ()
public bool IsWalkable ()
{
return entity;
return Walkable;
}
public void setWalkable (bool walkable)
{
this.walkable = walkable;
}
public bool isWalkable ()
{
return walkable;
}
public void setWall(bool wall)
public void SetWall(bool wall)
{
this.wall = wall;
this.Wall = wall;
}
public bool isWall()
public bool IsWall()
{
return wall;
return Wall;
}
public void setForest (bool forest)
public void SetForest (bool forest)
{
this.forest = forest;
this.Forest = forest;
}
public bool isForest ()
public bool IsForest ()
{
return forest;
return Forest;
}
public void setHuntable (bool huntable)
public void SetHuntable (bool huntable)
{
this.huntable = huntable;
this.Huntable = huntable;
}
public bool isHuntable ()
public bool IsHuntable ()
{
return huntable;
return Huntable;
}
public void setWater (bool water)
public void SetWater (bool water)
{
this.water = water;
this.Water = water;
}
public bool isWater ()
public bool IsWater ()
{
return water;
return Water;
}
}
}