using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlubbSmitning
{
internal class Person
{
public string Name { get; set; }
public bool Infected { get; set; }
public bool Immune { get; set; }
public int Hours { get; set; }
public Person(string name, bool infected, bool immune, int hours)
{
Name = name;
Infected = infected;
Immune = immune;
Hours = hours;
}
public void timer()
{
Hours++;
if (Hours == 5)
{
Immune = true;
Infected = false;
}
}
}
}