Player online list

This commit is contained in:
2014-05-09 10:38:08 +02:00
parent d0c9ec348b
commit b74a7aa301
7 changed files with 68 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
namespace WorldOfPeacecraft
{
public class Player : Entity
public class Player : Entity, IPlayer
{
private int Score;
@@ -19,6 +19,11 @@ namespace WorldOfPeacecraft
return Score;
}
public string GetName ()
{
return Desc;
}
public override string ToString()
{
return "Player: " + Id + " " + Coord.X + " " + Coord.Y + " " + Desc + " " + Busy + " " + Score;