mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
Added Friendship Created a namespace for models Signed-off-by: RosimInc <rosim_inc@hotmail.com>
34 lines
675 B
C#
34 lines
675 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
namespace DeathBook.Model
|
|
{
|
|
public class Person
|
|
{
|
|
private string name;
|
|
private Friendship[] friendList;
|
|
private int friendCount; //lazy
|
|
private int timeBetweenPosts; // f = 1/T;
|
|
private int connectionTime;
|
|
private int disconnectionTime;
|
|
private int awarenessLevel;
|
|
private bool alive;
|
|
|
|
private int happiness;
|
|
private bool connected;
|
|
|
|
//private Node node;
|
|
|
|
|
|
private bool isConnected(int time)
|
|
{
|
|
return disconnectionTime > time && time > connectionTime;
|
|
}
|
|
|
|
private int calculateWeight()
|
|
{
|
|
//friendCount * ____ + 1/timeBetweenPosts + }
|
|
return 0;
|
|
}
|
|
}
|
|
} |