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

View File

@@ -1,89 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorldOfPeacecraft
{
public class Player : Entity
{
private int Score;
public Player (int id, int posX, int posY, string desc, bool busy, int score) : base(id, posX, posY, desc, busy)
{
this.SetScore(score);
}
public class Player
{
public int id;
public int posX;
public int posY;
public int points;
public string type;
public bool busy;
public Player(int id, int posX, int posY, int points, string type, bool busy)
{
this.setId(id);
this.setPosX(posX);
this.setPosY(posY);
this.setPoints(points);
this.setType(type);
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 getPosX()
{
return posX;
}
public void setPosY(int y)
{
this.posY = y;
}
public int getPosY()
{
return posY;
}
public void setPoints(int points)
{
this.points = points;
}
public int getPoints()
{
return points;
}
public void setType(string type)
{
this.type = type;
}
public string getType()
{
return type;
}
public void setBusy(bool busy)
{
this.busy = busy;
}
public bool getBusy()
{
return busy;
}
}
public void SetScore(int score)
{
this.Score = score;
}
public int GetScore ()
{
return Score;
}
}
}