Пример #1
0
 public bool UpdateEntry(eSymptom symp)
 {
     foreach (SymptomChangeStatus scs in PotionEffects)
     {
         if (scs.Symptom.symptom == symp)
         {
             if (scs.IsRevealled)
             {
                 return(false);
             }
             else
             {
                 scs.IsRevealled = true;
                 return(true);
             }
         }
     }
     return(false);
 }
Пример #2
0
    public void ResetPatient()
    {
        // Randomly generate a symptom
        symptoms.Clear();
        eSymptom randSymptom = (eSymptom)Helpers.RandomIntExceptOne(0, numberOfSymptomsPossible, (int)lastRandomSymptom);

        symptoms.Add(randSymptom);
        lastRandomSymptom = randSymptom;

        string msg = "Patient with symptoms: ";

        foreach (eSymptom symp in symptoms)
        {
            msg += $"{symp.ToString()}, ";
        }
        Debug.Log(msg);

        // Send event to UI
        OnNewPatient?.Invoke(symptoms);
    }
Пример #3
0
 public SymptomChange(eSymptom symptom, int change)
 {
     this.symptom = symptom;
     this.change  = change;
 }