public int PowerTypeCount(OnGoingPower.PowerBaseType PowerType) { int cnt = 0; foreach (OnGoingPower Power in OnGoingPowers) { if (Power.PowerBase == PowerType) { cnt++; } } return(cnt); }
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); }