Esempio n. 1
0
        public static TargetingStrategy GetFromPool()
        {
            TargetingStrategy FreeStrategy = null;
            bool b = FreeStrategyPool.TryPop(out FreeStrategy);

            if (!b)
            {
                FreeStrategy = ActiveStrategy.Clone();
            }

            return(FreeStrategy);
        }
Esempio n. 2
0
        public static AssignmentStrategy GetFromPool()
        {
            AssignmentStrategy FreeStrategy = null;
            bool b = FreeStrategyPool.TryPop(out FreeStrategy);

            if (!b)
            {
                FreeStrategy = ActiveStrategy.Clone();
            }

            return(FreeStrategy);
        }