DeathBook/Assets/Scripts/Models/Friendship.cs
RosimInc bfef2ae1ab Continued person models
Signed-off-by: RosimInc <rosim_inc@hotmail.com>
2015-08-14 00:06:32 -04:00

26 lines
449 B
C#

using System;
using System.Collections.Generic;
namespace DeathBook.Model
{
public class Friendship
{
public Person friend1, friend2;
private int importance; //on a scale from 1 to 100
public Friendship(Person p1, Person p2, int scale)
{
friend1 = p1;
friend2 = p2;
importance = scale;
}
public Person GetFriend(Person p)
{
if (p == friend1)
return friend2;
return friend1;
}
}
}