Exemple #1
0
        public void ApplyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (!(obj is ApplyingFaction))
            {
                return(false);
            }
            ApplyingFaction a = (ApplyingFaction)obj;

            return(a.applierID == this.applierID && a.applier.Equals(this.applier) && a.faction.Equals(this.faction));
        }
 public void ApplyInfluence(Faction faction, Applier applier, int applierID)
 {
     ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);
     if (appliedFaction.Contains(a)) return;
     appliedFaction.Add(a);
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     try
     {
         this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
     }
     catch
     {
     }
 }
Exemple #4
0
        public void ApplyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            if (appliedFaction.Contains(a))
            {
                return;
            }
            appliedFaction.Add(a);
            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
Exemple #5
0
        public void PurifyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            if (!appliedFaction.Contains(a))
            {
                return;
            }
            appliedFaction.RemoveWhere((x) => { return(x.Equals(a)); });
            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.PurifyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
 public void PurifyInfluence(Faction faction, Applier applier, int applierID)
 {
     ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);
     if (!appliedFaction.Contains(a)) return;
     appliedFaction.RemoveWhere((x) => { return x.Equals(a); });
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     try
     {
         this.Kind.PurifyInfluenceKind(faction, this, applier, applierID);
     }
     catch
     {
     }
 }