Ejemplo n.º 1
0
        public int PowerTypeCount(OnGoingPower.PowerBaseType PowerType)
        {
            int cnt = 0;

            foreach (OnGoingPower Power in OnGoingPowers)
            {
                if (Power.PowerBase == PowerType)
                {
                    cnt++;
                }
            }
            return(cnt);
        }
Ejemplo n.º 2
0
        public List <string> PowerSourceList(OnGoingPower.PowerBaseType PowerType)
        {
            List <string> temp = new List <string>();
            string        hold = string.Empty;

            foreach (OnGoingPower Power in OnGoingPowers)
            {
                if (Power.PowerBase == PowerType)
                {
                    hold = Power.PowerSource;
                    if (PowerType == OnGoingPower.PowerBaseType.Class)
                    {
                        hold = Power.Name;
                    }
                    temp.Add(hold);
                }
            }
            return(temp);
        }