Continued person models

Signed-off-by: RosimInc <rosim_inc@hotmail.com>
This commit is contained in:
RosimInc 2015-08-14 00:06:32 -04:00
parent 67ea8902c5
commit bfef2ae1ab
2 changed files with 8 additions and 0 deletions

View File

@ -14,5 +14,12 @@ namespace DeathBook.Model
friend2 = p2;
importance = scale;
}
public Person GetFriend(Person p)
{
if (p == friend1)
return friend2;
return friend1;
}
}
}

View File

@ -135,6 +135,7 @@ namespace DeathBook.Model
//Person p = new Person(id, pos,);
Person p = new Person(id);
p.initialPosition = pos;
return p;
}