mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 20:40:57 +00:00
Online/offline functionality tested and running Signed-off-by: RosimInc <rosim_inc@hotmail.com>
38 lines
933 B
C#
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;
|
|
}
|
|
}
|
|
}
|