mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +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 =
|
||||
|
||||
//Person p = new Person(id, pos,);
|
||||
Person p = new Person(id);
|
||||
Person p = new Person(id, pos);
|
||||
p.initialPosition = pos;
|
||||
|
||||
return p;
|
||||
|
||||
@ -42,10 +42,15 @@ namespace DeathBook.Model
|
||||
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;
|
||||
initialPosition = new Vector3(x, y, z);
|
||||
initialPosition = pos;
|
||||
alive = true;
|
||||
|
||||
// Temporary
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user