mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-25 21:10:57 +00:00
Merged and fixed the person constructor.
Signed-off-by: RosimInc <rosim_inc@hotmail.com>
This commit is contained in:
parent
46f1f7a320
commit
1b71e17d99
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user