예제 #1
0
        /// <summary>
        /// Retrieves the type of Star Power based on a given StarPowerTypes.
        /// </summary>
        /// <param name="starPowerType">The type of Star Power to get.</param>
        /// <returns>StarSpiritPower or CrystalStarPower if the respective type is passed in. Otherwise, it returns null.</returns>
        public StarPowerBase GetStarPowerFromType(StarPowerGlobals.StarPowerTypes starPowerType)
        {
            if (starPowerType == StarPowerGlobals.StarPowerTypes.StarSpirit)
            {
                return(SSStarPower);
            }
            else if (starPowerType == StarPowerGlobals.StarPowerTypes.CrystalStar)
            {
                return(CSStarPower);
            }

            return(null);
        }
예제 #2
0
 public sealed override StarPowerBase GetStarPower(StarPowerGlobals.StarPowerTypes starPowerType)
 {
     return(MStats.GetStarPowerFromType(starPowerType));
 }
예제 #3
0
 public sealed override StarPowerBase GetStarPower(StarPowerGlobals.StarPowerTypes starPowerType)
 {
     return(BattleManager.Instance.GetMario().MStats.GetStarPowerFromType(starPowerType));
 }
 /// <summary>
 /// Gets the BattlePlayer's Star Power.
 /// Mario returns his own, while Partners use Mario's.
 /// </summary>
 /// <returns>A StarPowerBase with the StarPower the BattlePlayer uses.</returns>
 public abstract StarPowerBase GetStarPower(StarPowerGlobals.StarPowerTypes starPowerType);