示例#1
0
 static public bool ExtortionIsAggression(this GameFactions.IDs x)
 {
     if (GameFactions.IDs.ThePolice == x)
     {
         return(true);                           // law enforcement
     }
     if (GameFactions.IDs.TheArmy == x)
     {
         return(true);                           // martial law enforcement
     }
     return(false);
 }
示例#2
0
 static public bool LawIgnoresExtortion(this GameFactions.IDs x)
 {
     if (GameFactions.IDs.TheBikers == x)
     {
         return(true);                           // enemy of police
     }
     if (GameFactions.IDs.TheGangstas == x)
     {
         return(true);                           // enemy of police
     }
     if (GameFactions.IDs.TheFerals == x)
     {
         return(true);                           // people are more important than dogs
     }
     return(false);
 }
示例#3
0
        public Faction(string name, string memberName, GameFactions.IDs id, bool leadOnlyBySameFaction = false)
        {
#if DEBUG
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (string.IsNullOrEmpty(memberName))
            {
                throw new ArgumentNullException(nameof(memberName));
            }
#endif
            ID                    = id;
            Name                  = name;
            MemberName            = memberName;
            LeadOnlyBySameFaction = leadOnlyBySameFaction;
        }
示例#4
0
 public ImplicitRadio(RadioFaction faction)
 {
     Threats     = faction.Threats;
     Investigate = faction.Investigate;
     FactionID   = faction.FactionID;
 }
示例#5
0
 public RadioFaction(GameFactions.IDs faction, Gameplay.GameItems.IDs radio)
 {
     FactionID = faction;
     RadioID   = radio;
 }