Hausmeisterarbeiten
This commit is contained in:
73
src/Entity.cs
Normal file
73
src/Entity.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user