-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diseases.cs
131 lines (115 loc) · 4.12 KB
/
Diseases.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClanCreatorApp
{
[Serializable]
public class Disease
{
public int counter;
public string type;
public bool treated;
public Disease(int c, string s)
{
counter = c;
type = s;
treated = false;
}
}
public class DiseaseType
{
public string type;
public string[] actions;
//Threshold of getting worse
public int untreatedThreshold;
public int treatedThreshold;
public DiseaseType(string t, string[] a, int ut, int tt)
{
type = t;
actions = a;
untreatedThreshold = ut;
treatedThreshold = tt;
}
}
public static class Diseases
{
public static DiseaseType[] randomDiseases =
{
new DiseaseType("Greencough", respiratoryStrings, 70, 20),
new DiseaseType("Whitecough", respiratoryStrings, 40, 10),
new DiseaseType("Bellyache", gastrointestnalStrings, 80, 5),
new DiseaseType("Fever", feverStrings, 50, 10),
new DiseaseType("Sore Throat", soreThroatStrings, 10, 2),
};
public static DiseaseType[] diseases =
{
new DiseaseType("Greencough", respiratoryStrings, 70, 20),
new DiseaseType("Whitecough", respiratoryStrings, 40, 10),
new DiseaseType("Bellyache", gastrointestnalStrings, 80, 5),
new DiseaseType("Fever", feverStrings, 50, 10),
new DiseaseType("Sore Throat", soreThroatStrings, 10, 2),
new DiseaseType("Poisoning", gastrointestnalStrings, 50, 5),
new DiseaseType("Arthritis", arthritisStrings, 30, 5),
new DiseaseType("Infection", infectionStrings, 70, 15)
};
public static Dictionary<string, DiseaseType> diseaseDict = new Dictionary<string, DiseaseType>()
{
{"Greencough", diseases[0]},
{"Whitecough", diseases[1]},
{"Bellyache", diseases[2]},
{"Fever", diseases[3]},
{"Sore Throat", diseases[4]},
{"Poisoning", diseases[5] },
{"Arthritis", diseases[6] },
{"Infection", diseases[7] }
};
public static string[] infectionStrings =
{
" vomited up everything they ate.",
" has awful cramps in their stomach.",
" doesn't want to eat anything.",
" has awfully hot ears today.",
" keeps rubbing their nose.",
" is breathing awfully quickly.",
"'s voice sounds odd today.",
" doesn't want to do anything today."
};
public static string[] respiratoryStrings =
{
" wakes up their denmate by coughing.",
" coughs through the night.",
" has an awful, scratchy cough.",
" can't seem to stop coughing.",
" has snot dripping from their nose.",
" has weepy eyes."
};
public static string[] gastrointestnalStrings =
{
" vomited up everything they ate.",
" has awful cramps in their stomach.",
" doesn't want to eat anything."
};
public static string[] feverStrings =
{
" has awfully hot ears today.",
" keeps rubbing their nose.",
" is breathing awfully quickly.",
"'s voice sounds odd today.",
" doesn't want to do anything today."
};
public static string[] arthritisStrings =
{
" has an odd limp today.",
" doesn't want to get up.",
" is complaining of pain in the joints."
};
public static string[] soreThroatStrings =
{
" has a gravelly voice today.",
" keeps coughing.",
" complains of pain when swallowing"
};
}
}