예제 #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
            {
            }
        }
예제 #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));
        }
예제 #3
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
     {
     }
 }
예제 #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
            {
            }
        }
예제 #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
            {
            }
        }
예제 #6
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
     {
     }
 }