Esempio n. 1
0
File: Player.cs Progetto: paeh/OTMA
 public NpcPlayer(String name, String role, Hint text)
     : base()
 {
     this.name = name;
     this.role = role;
     this.hints = new HashSet<Hint>();
     hints.Add(text);
 }
Esempio n. 2
0
 /// <summary>
 /// Logs a given hint, so that hint must not be found again.
 /// </summary>
 /// <param name="hint">The hint to log</param>
 public void logHint(Hint hint)
 {
     if (hint != null && !human.foundHints.Contains(hint))
     {
         human.foundHints.Add(hint);
     }
 }