Projektdatei committed

This commit is contained in:
2014-04-03 10:33:41 +02:00
parent aa1e295425
commit 46b820f2b6
21 changed files with 58 additions and 0 deletions

111
src/Tile.cs Normal file
View File

@@ -0,0 +1,111 @@
using System;
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 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 void setX(int x)
{
this.x = x;
}
public int getX()
{
return x;
}
public void setY(int y)
{
this.y = y;
}
public int getY()
{
return y;
}
public void setDragon(Dragon drag)
{
this.drag = drag;
}
public Dragon getDragon()
{
return drag;
}
public void setPlayer(Player playr)
{
this.playr = playr;
}
public Player getPlayer()
{
return playr;
}
public void setWalkable(bool walkable)
{
this.isWalkable = walkable;
}
public bool getWalkable()
{
return isWalkable;
}
public void setForest(bool forest)
{
this.isForest = forest;
}
public bool getForest()
{
return isForest;
}
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;
}
}