public static IPower initPower(this PowerID pe) { switch (pe) { case (PowerID.P_MIGHTY_BLOW): return(new P_Mighty_Blow()); case (PowerID.POWER_GROW_PLAYER): return(new Power_GrowPlayer()); default: return(null); } }
public static string getPowerName(this PowerID pe) { switch (pe) { case (PowerID.P_MIGHTY_BLOW): return(P_Mighty_Blow.powerName); case (PowerID.POWER_GROW_PLAYER): return("Grow Player"); default: return(null); } }