Example #1
0
        public void ActivateConditionSet(List <ConditionVO> voSet)
        {
            this.CancelCurrentConditions();
            this.Successes = new List <string>();
            this.Failures  = new List <string>();
            this.currentVictoryConditions = new List <AbstractCondition>();
            AbstractCondition abstractCondition = null;

            for (int i = 0; i < voSet.Count; i++)
            {
                abstractCondition = ConditionFactory.GenerateCondition(voSet[i], this);
                this.currentVictoryConditions.Add(abstractCondition);
                abstractCondition.Start();
            }
            for (int j = voSet.Count; j < 3; j++)
            {
                abstractCondition = ConditionFactory.GenerateCondition(abstractCondition.GetConditionVo(), this);
                this.currentVictoryConditions.Add(abstractCondition);
                abstractCondition.Start();
            }
        }
Example #2
0
 public void ActivateFailureCondition(ConditionVO condition)
 {
     this.failureCondition = ConditionFactory.GenerateCondition(condition, this);
     this.failureCondition.Start();
 }
Example #3
0
 public static AbstractCondition GenerateCondition(ConditionVO vo, IConditionParent parent)
 {
     return(ConditionFactory.GenerateCondition(vo, parent, 0));
 }
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ConditionFactory.GenerateCondition((ConditionVO)GCHandledObjects.GCHandleToObject(*args), (IConditionParent)GCHandledObjects.GCHandleToObject(args[1]), *(int *)(args + 2))));
 }