DeathBook/Assets/Scripts/Models/FriendshipLink.cs
RosimInc 08f85edc51 Implemented color changes for friendship links
Online/offline functionality tested and running

Signed-off-by: RosimInc <rosim_inc@hotmail.com>
2015-08-16 00:43:36 -04:00

38 lines
933 B
C#

using System;
using System.Collections.Generic;
using DeathBook.Util;
namespace DeathBook.Model
{
public class FriendshipLink : Observable
{
private Person friend1, friend2;
public Person Friend1 { get { return friend1; } }
public Person Friend2 { get { return friend2; } }
private float importance; //on a scale from 0 to 1
public float Importance { get { return importance; } }
private float awareness = 0; //on a scale from 0 to 1
public float Awareness
{
get { return awareness; }
set { awareness = value; NotifyObservers(); }
}
private int killCount = 0; //Number of people dead in this relationship
public int KillCount
{
get { return killCount; }
set { killCount = value; NotifyObservers(); }
}
public FriendshipLink(Person p1, Person p2, float importance)
{
friend1 = p1;
friend2 = p2;
this.importance = importance;
}
}
}