mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
26 lines
449 B
C#
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;
|
|
}
|
|
}
|
|
}
|