Ejemplo n.º 1
0
 public void DecreaseThreat(Creature threat, uint amount)
 {
     if (ThreatTableByCreature.ContainsKey(threat.Guid))
     {
         ThreatTableByCreature[threat.Guid].Threat -= amount;
     }
 }
Ejemplo n.º 2
0
 public void ClearThreat(Creature threat)
 {
     if (ThreatTableByCreature.ContainsKey(threat.Guid))
     {
         ThreatTableByCreature[threat.Guid].Threat = 0;
     }
 }
Ejemplo n.º 3
0
 public void IncreaseThreat(Creature threat, uint amount)
 {
     if (!ThreatTableByCreature.ContainsKey(threat.Guid))
     {
         AddNewThreat(threat, amount);
     }
     ThreatTableByCreature[threat.Guid].Threat += amount;
 }
Ejemplo n.º 4
0
 public bool ContainsAny(List <User> users) => users.Any(user => ThreatTableByCreature.ContainsKey(user.Guid));
Ejemplo n.º 5
0
 public bool ContainsThreat(Creature threat) => ThreatTableByCreature.ContainsKey(threat.Guid);