/* * Gets the number of invested stat points in a selected stat * @Param StatType - The Stat Type of requested stat * @Return int - Returns the value of statpoints invested */ public int GetStatPoints(StatType stat) { int points = 0; switch (stat) { case StatType.sta: points = sta.GetStatPoints(); break; case StatType.str: points = str.GetStatPoints(); break; case StatType.dex: points = dex.GetStatPoints(); break; case StatType.def: points = def.GetStatPoints(); break; } return(points); }