Hausmeisterarbeiten

This commit is contained in:
2014-04-03 11:47:37 +02:00
parent b4a84997fe
commit 06e069c052
10 changed files with 265 additions and 330 deletions

73
src/Entity.cs Normal file
View File

@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Frontend;
namespace WorldOfPeacecraft
{
public abstract class Entity : IPositionable
{
public int id;
public int posX;
public int posY;
public string desc;
public bool busy;
public Entity (int id, int posX, int posY, string desc, bool busy)
{
this.setId (id);
this.setPosX (posX);
this.setPosY (posY);
this.setDesc (desc);
this.setBusy (busy);
}
public void setId (int id)
{
this.id = id;
}
public int getId ()
{
return id;
}
public void setPosX (int x)
{
this.posX = x;
}
public int getXPosition ()
{
return posX;
}
public void setPosY (int y)
{
this.posY = y;
}
public int getYPosition ()
{
return posY;
}
public void setDesc (string desc)
{
this.desc = desc;
}
public void setBusy (bool busy)
{
this.busy = busy;
}
public bool getBusy ()
{
return busy;
}
}
}