Merged and fixed the person constructor.

Signed-off-by: RosimInc <rosim_inc@hotmail.com>
This commit is contained in:
RosimInc 2015-08-14 00:31:03 -04:00
parent 46f1f7a320
commit 1b71e17d99
2 changed files with 8 additions and 3 deletions

View File

@ -134,7 +134,7 @@ namespace DeathBook.Model
//Vector2 times = //Vector2 times =
//Person p = new Person(id, pos,); //Person p = new Person(id, pos,);
Person p = new Person(id); Person p = new Person(id, pos);
p.initialPosition = pos; p.initialPosition = pos;
return p; return p;

View File

@ -42,10 +42,15 @@ namespace DeathBook.Model
get { return numFriends; } get { return numFriends; }
} }
public Person(int id, float x, float y, float z) public bool Connected
{
get { return connected; }
}
public Person(int id, Vector3 pos)
{ {
this.id = id; this.id = id;
initialPosition = new Vector3(x, y, z); initialPosition = pos;
alive = true; alive = true;
// Temporary // Temporary