Example #1
0
        /// <summary>
        /// Determines whether [is feat shape shift required] [the specified object feat].
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <param name="blnCharHasShapeShift">if set to <c>true</c> [BLN character has shape shift].</param>
        /// <returns></returns>
        static public bool IsFeatShapeShiftRequired(Feat objFeat, bool blnCharHasShapeShift)
        {
            bool blnIsShapeShiftQualified = false;

            if (objFeat.ShapeShiftRequired)
            {
                if (blnCharHasShapeShift)
                {
                    blnIsShapeShiftQualified = true;
                }
            }
            else
            {
                blnIsShapeShiftQualified = true;
            }
            return(blnIsShapeShiftQualified);
        }
Example #2
0
        /// <summary>
        /// Determines whether [is feat rage required] [the specified object feat].
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <param name="blnCharHasRage">if set to <c>true</c> [BLN character has rage].</param>
        /// <returns></returns>
        static public bool IsFeatRageRequired(Feat objFeat, bool blnCharHasRage)
        {
            bool blnIsRageQualified = false;

            if (objFeat.RageRequired)
            {
                if (blnCharHasRage)
                {
                    blnIsRageQualified = true;
                }
            }
            else
            {
                blnIsRageQualified = true;
            }
            return(blnIsRageQualified);
        }
Example #3
0
        /// <summary>
        /// Gets all feats character qualifed for.
        /// </summary>
        /// <param name="objChar">The object character.</param>
        /// <returns></returns>
        static public List <Feat> GetAllFeatsCharacterQualifedFor(Character objChar)
        {
            List <Feat> allFeatsCharQualifiedFor = new List <Feat>();
            List <Feat> allFeats    = new List <Feat>();
            Feat        objDumbFeat = new Feat();

            //allFeats = objDumbFeat.GetFeatList("Select_Feat", "FeatID IN (49,36,54) ", "FeatName");
            allFeats = objDumbFeat.GetFeatList("Select_Feat", "", "FeatName");

            foreach (Feat objFeat in allFeats)
            {
                if (objChar.QualifiedForFeat(objFeat))
                {
                    allFeatsCharQualifiedFor.Add(objFeat);
                }
            }

            return(allFeatsCharQualifiedFor);
        }
Example #4
0
        /// <summary>
        /// Determines whether [is feat dark side required] [the specified object feat].
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <param name="objChar">The object character.</param>
        /// <returns></returns>
        static public bool IsFeatDarkSideRequired(Feat objFeat, Character objChar)
        {
            bool blnIsDarkSideQualified = false;

            if ((objFeat.objFeatPrerequisiteDarkSide.DarkSideScore > 0))    //|| (objFeat.objFeatPrerequisiteDarkSide.TotalDarkSide  != null)
            {
                //Check them both one at a time
                if (objFeat.objFeatPrerequisiteDarkSide.TotalDarkSide)
                {
                    foreach (CharacterAbility objCharAbility in objChar.lstCharacterAbilities)
                    {
                        if (objCharAbility.objAbility.AbilityName.ToLower() == "wisdom")
                        {
                            if (objCharAbility.Score == objChar.DarkSidePoints)
                            {
                                blnIsDarkSideQualified = true;
                            }
                            else
                            {
                                blnIsDarkSideQualified = false;
                            }
                        }
                    }
                }
                else
                {
                    if (objChar.DarkSidePoints >= objFeat.objFeatPrerequisiteDarkSide.DarkSideScore)
                    {
                        blnIsDarkSideQualified = true;
                    }
                    else
                    {
                        blnIsDarkSideQualified = false;
                    }
                }
            }
            else
            {
                blnIsDarkSideQualified = true;
            }
            return(blnIsDarkSideQualified);
        }
Example #5
0
        /// <summary>
        /// Sets the reader to object.
        /// </summary>
        /// <param name="result">The result.</param>
        private void SetReaderToObject(ref SqlDataReader result)
        {
            if (result.HasRows)
            {
                this.TalentID          = (int)result.GetValue(result.GetOrdinal("TalentID"));
                this.TalentName        = result.GetValue(result.GetOrdinal("TalentName")).ToString();
                this.TalentDescription = result.GetValue(result.GetOrdinal("TalentDescription")).ToString();
                this.TalentTreeID      = (int)result.GetValue(result.GetOrdinal("TalentTreeID"));
                this.MultipleSelection = (int)result.GetValue(result.GetOrdinal("MultipleSelection"));
                this.BookID            = (int)result.GetValue(result.GetOrdinal("BookID"));
                this.TalentSpecial     = result.GetValue(result.GetOrdinal("TalentSpecial")).ToString();

                this._objComboBoxData.Add(this.TalentID, this.TalentName);

                TurnSegment objTurnSegment = new TurnSegment();
                if (!(this.TurnSegmentID == 0))
                {
                    objTurnSegment.GetTurnSegment(this.TurnSegmentID);
                }
                this.objTurnSegment = objTurnSegment;


                Talent objPreTalent = new Talent();
                this.objPrerequsiteTalent = objPreTalent.GetPrerequisteTalents(" otmTalentPrerequisteTalent.TalentID=" + this.TalentID.ToString(), "TalentName");

                //List<Ability> objPrerequisteAbility
                TalentPrerequisteAbility objTalentPrerequisteAbility = new TalentPrerequisteAbility();
                this.objTalentPrerequisteAbility = objTalentPrerequisteAbility.GetTalentPrerequisteAbilities("TalentID=" + this.TalentID.ToString(), "");

                Skill objSkill = new Skill();
                this.objTalentPrerequsiteSkill = objSkill.GetTalentRequiredSkills("TalentID=" + this.TalentID.ToString(), "");

                Feat objFeat = new Feat();
                this.objTalentPrerequsiteFeat = objFeat.GetTalentPrerequisiteFeats("TalentID=" + this.TalentID.ToString(), "");

                ForcePower objPreForcePower = new ForcePower();
                this.objTalentPrerequisteForcePower = objPreForcePower.GetTalentPrequisteForcePowers("TalentID=" + this.TalentID.ToString(), "");

                BaseAttack objBaseAttack = new BaseAttack();
                this.objBaseAttackPrerequisite = objBaseAttack.GetFeatPrequisiteBaseAttackBonus(this.TalentID);
            }
        }
Example #6
0
        /// <summary>
        /// Sets the reader to object.
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <param name="result">The result.</param>
        private void SetReaderToObject(ref Feat objFeat, ref SqlDataReader result)
        {
            if (result.HasRows)
            {
                objFeat.FeatID              = (int)result.GetValue(result.GetOrdinal("FeatID"));
                objFeat.FeatName            = result.GetValue(result.GetOrdinal("FeatName")).ToString();
                objFeat.FeatDescription     = result.GetValue(result.GetOrdinal("FeatDescription")).ToString();
                objFeat.FeatSpecial         = result.GetValue(result.GetOrdinal("FeatSpecial")).ToString();
                objFeat.RageRequired        = (bool)result.GetValue(result.GetOrdinal("RageRequired"));
                objFeat.ShapeShiftRequired  = (bool)result.GetValue(result.GetOrdinal("ShapeShiftRequired"));
                objFeat.MultipleSelection   = (int)result.GetValue(result.GetOrdinal("MultipleSelection"));
                objFeat.BookID              = (int)result.GetValue(result.GetOrdinal("BookID"));
                objFeat.SkillTrainingFeat   = (bool)result.GetValue(result.GetOrdinal("SkillTrainingFeat"));
                objFeat.SkillFocusFeat      = (bool)result.GetValue(result.GetOrdinal("SkillFocusFeat"));
                objFeat.WeaponProficiencyID = (bool)result.GetValue(result.GetOrdinal("WeaponProficiencyID"));
                objFeat.ArmorProficiencyID  = (bool)result.GetValue(result.GetOrdinal("ArmorProficiencyID"));

                FeatPrerequisiteAbility objFeatPrerequisiteAbility = new FeatPrerequisiteAbility();
                Feat       objPreReqFeat = new Feat();
                BaseAttack objBaseAttack = new BaseAttack();
                Skill      objSkill      = new Skill();
                Race       objRace       = new Race();
                Class      objClass      = new Class();
                Size       objSize       = new Size();
                FeatPrerequisiteDarkSide objFeatPrerequisiteDarkSide = new FeatPrerequisiteDarkSide();
                FeatPrereqORCondition    objFeatPrereqORCondition    = new FeatPrereqORCondition();

                objFeat.objFeatPrerequisiteAbilities = objFeatPrerequisiteAbility.GetFeatPrerequisiteAbilites(" FeatID=" + objFeat.FeatID.ToString(), "");
                objFeat.objFeatPrerequisiteFeats     = objPreReqFeat.GetFeatPrerequisiteFeats(" [otmFeatPrequisiteFeat].FeatID=" + objFeat.FeatID.ToString(), " FeatName");
                objFeat.objBaseAttackPrerequisite    = objBaseAttack.GetFeatPrequisiteBaseAttackBonus(objFeat.FeatID);
                objFeat.objSkillPrerequisite         = objSkill.GetFeatPrerequisiteSkill(objFeat.FeatID);
                objFeat.objFeatPrerequisiteClasses   = objClass.GetFeatPrerequisiteClass(objFeat.FeatID);
                objFeat.objRacePrerequisite          = objRace.GetFeatPrerequisiteRace(objFeat.FeatID);
                objFeat.objFeatPrerequisiteSize      = objSize.GetFeatPrerequisiteSize(objFeat.FeatID);
                objFeat.objFeatPrerequisiteDarkSide  = objFeatPrerequisiteDarkSide.GetFeatPrerequisiteDarkSide(objFeat.FeatID);
                objFeat.lstFeatPrereqORConditions    = objFeatPrereqORCondition.GetFeatPrereqORConditions(objFeat.FeatID);

                objFeat._objComboBoxData.Add(objFeat.FeatID, objFeat.FeatName);
            }
        }
Example #7
0
        /// <summary>
        /// Gets the feat list.
        /// </summary>
        /// <param name="strSprocName">Name of the string sproc.</param>
        /// <param name="strWhere">The string where.</param>
        /// <param name="strOrderBy">The string order by.</param>
        /// <returns></returns>
        private List <Feat> GetFeatList(string strSprocName, string strWhere, string strOrderBy)
        {
            List <Feat> feats = new List <Feat>();

            SqlDataReader      result;
            DatabaseConnection dbconn     = new DatabaseConnection();
            SqlCommand         command    = new SqlCommand();
            SqlConnection      connection = new SqlConnection(dbconn.SQLSEVERConnString);

            try
            {
                connection.Open();
                command.Connection  = connection;
                command.CommandType = CommandType.StoredProcedure;
                command.CommandText = strSprocName;
                command.Parameters.Add(dbconn.GenerateParameterObj("@strWhere", SqlDbType.VarChar, strWhere, 1000));
                command.Parameters.Add(dbconn.GenerateParameterObj("@strOrderBy", SqlDbType.VarChar, strOrderBy, 1000));
                result = command.ExecuteReader();

                while (result.Read())
                {
                    Feat objFeat = new Feat();
                    SetReaderToObject(ref objFeat, ref result);
                    feats.Add(objFeat);
                }
            }
            catch
            {
                Exception e = new Exception();
                throw e;
            }
            finally
            {
                command.Dispose();
                connection.Close();
            }
            return(feats);
        }
Example #8
0
        /// <summary>
        /// Is the Feat a Skill Training Feat and in the Character Skill List if so.
        /// </summary>
        /// <param name="objFeat">The Feat to check.</param>
        /// <param name="lstCharSkill">The List of Character Skills</param>
        /// <returns>Bool</returns>
        static public bool IsFeatSkillTrainingFeatAndInSkillList(Feat objFeat, List <CharacterSkill> lstCharSkill)
        {
            bool retVal = false;

            if (!objFeat.SkillTrainingFeat)
            {
                retVal = true;
            }
            else
            {
                //We want to have the skill show up (return true) if it makes it here, if they have the skill then we don't show it
                retVal = true;
                foreach (CharacterSkill objCharSkill in lstCharSkill)
                {
                    if (objCharSkill.objSkill.SkillTrainingFeatID == objFeat.FeatID)
                    {
                        retVal = false;
                    }
                }
            }

            return(retVal);
        }
Example #9
0
        /// <summary>
        /// Checks the feat count.
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <param name="objListFeats">The object list feats.</param>
        /// <returns></returns>
        static public bool CheckFeatCount(Feat objFeat, List <Feat> objListFeats)
        {
            bool blnReturnVal = true;
            int  intFeatCount = 0;

            foreach (Feat objListFeat in objListFeats)
            {
                if (objListFeat == objFeat)
                {
                    intFeatCount++;
                }
            }

            if (intFeatCount + 1 <= objFeat.MultipleSelection)
            {
                blnReturnVal = true;
            }
            else
            {
                blnReturnVal = false;
            }

            return(blnReturnVal);
        }
Example #10
0
        static public bool FeatOrConditionsMeet(Character objChar, Feat objFeat)
        {
            bool returnVal = false;
            List <FeatPrereqORCondition> lstFPORCond = new List <FeatPrereqORCondition>();
            FeatPrereqORCondition        objFPORCond = new FeatPrereqORCondition();


            List <Talent> lstORTalents = new List <Talent>();
            List <Feat>   lstORFeats   = new List <Feat>();
            List <Race>   lstORRaces   = new List <Race>();
            List <TalentTalentTreeRequirement> lstORTalentTrees = new List <TalentTalentTreeRequirement>();
            List <TalentAbilityRequirement>    lstORAbility     = new List <TalentAbilityRequirement>();
            List <Skill> lstORSkill = new List <Skill>();

            lstFPORCond = objFPORCond.GetFeatPrereqORConditions(objFeat.FeatID);

            if (lstFPORCond.Count == 0)
            {
                returnVal = true;
            }
            else
            {
                foreach (FeatPrereqORCondition objOrCond in lstFPORCond)
                {
                    if (objOrCond.FeatRequirementID != 0)
                    {
                        Feat objFR = new Feat();
                        objFR.GetFeat(objOrCond.FeatRequirementID);
                        lstORFeats.Add(objFR);
                    }
                    if (objOrCond.TalentID != 0)
                    {
                        Talent objTalent = new Talent();
                        objTalent.GetTalent(objOrCond.TalentID);
                        lstORTalents.Add(objTalent);
                    }
                    if (objOrCond.RaceID != 0)
                    {
                        Race objRace = new Race();
                        objRace.GetRace(objOrCond.RaceID);
                        lstORRaces.Add(objRace);
                    }
                    if (objOrCond.TalentTreeID != 0)
                    {
                        TalentTalentTreeRequirement objTTTR = new TalentTalentTreeRequirement();
                        objTTTR.TalentTreeID             = objOrCond.TalentTreeID;
                        objTTTR.TalentTreeTalentQuantity = objOrCond.TalentTreeTalentQuantity;
                        lstORTalentTrees.Add(objTTTR);
                    }
                    if (objOrCond.AbilityID != 0)
                    {
                        TalentAbilityRequirement objTAR = new TalentAbilityRequirement();
                        objTAR.AbilityID     = objOrCond.AbilityID;
                        objTAR.AbilityMinium = objOrCond.AbilityMinimum;
                        lstORAbility.Add(objTAR);
                    }
                    if (objOrCond.SkillID != 0)
                    {
                        Skill objSkill = new Skill();
                        objSkill.GetSkill(objOrCond.SkillID);
                        lstORSkill.Add(objSkill);
                    }
                }

                //Got all the lists full, have to check to see if the character has ANY of these, if they do then we jump out and are done
                //Talent
                bool blnTalentFound = false;
                foreach (Talent objSearchTalent in lstORTalents)
                {
                    if (Talent.IsTalentInList(objSearchTalent, objChar.lstTalents))
                    {
                        blnTalentFound = true;
                    }
                }

                if (blnTalentFound)
                {
                    return(blnTalentFound);
                }

                //Feat
                bool blnFeatFound = false;
                foreach (Feat objSearchFeat in lstORFeats)
                {
                    if (Feat.IsFeatInList(objSearchFeat, objChar.lstFeats))
                    {
                        blnFeatFound = true;
                    }
                }

                if (blnFeatFound)
                {
                    return(blnFeatFound);
                }

                //Race
                bool blnRaceFound = false;
                foreach (Race objSearchRace in lstORRaces)
                {
                    if (objSearchRace.RaceID == objChar.RaceID)
                    {
                        blnRaceFound = true;
                    }
                }

                if (blnRaceFound)
                {
                    return(blnRaceFound);
                }

                //TalentTree talents (Has x number of talents in a particular tree
                bool blnTalentTreeQuantityFound = false;
                foreach (Talent objSearchTalent in lstORTalents)
                {
                    if (Talent.IsTalentInList(objSearchTalent, objChar.lstTalents))
                    {
                        blnTalentTreeQuantityFound = true;
                    }
                }

                if (blnTalentTreeQuantityFound)
                {
                    return(blnTalentTreeQuantityFound);
                }


                //Ability
                bool blnAbilityFound = false;
                foreach (TalentAbilityRequirement objSearchAbility in lstORAbility)
                {
                    if (Ability.AblityRequirementMet(objSearchAbility.AbilityID, objSearchAbility.AbilityMinium, objChar))
                    {
                        blnAbilityFound = true;
                    }
                }

                if (blnTalentTreeQuantityFound)
                {
                    return(blnAbilityFound);
                }

                //public int SkillID { get; set; }
                //Race
                bool blnSkillFound = false;
                foreach (Skill objSearchSkill in lstORSkill)
                {
                    if (CharacterSkill.IsSkillInList(objSearchSkill, objChar.lstCharacterSkills))
                    {
                        blnSkillFound = true;
                    }
                }

                if (blnSkillFound)
                {
                    return(blnSkillFound);
                }
            }

            //went thru everything, nothing found return false;
            return(returnVal);
        }
Example #11
0
        /// <summary>
        /// Clones the specified object feat.
        /// </summary>
        /// <param name="objFeat">The object feat.</param>
        /// <returns>Feat</returns>
        static public Feat Clone(Feat objFeat)
        {
            Feat objCFeat = new Feat(objFeat.FeatID);

            return(objCFeat);
        }
Example #12
0
        /// <summary>
        /// Sets the reader to object.
        /// </summary>
        /// <param name="result">The result.</param>
        private void SetReaderToObject(ref SqlDataReader result)
        {
            if (result.HasRows)
            {
                this.RaceID           = (int)result.GetValue(result.GetOrdinal("RaceID"));
                this.RaceName         = result.GetValue(result.GetOrdinal("RaceName")).ToString();
                this.RaceDescription  = result.GetValue(result.GetOrdinal("RaceDescription")).ToString();
                this.OtherDescription = result.GetValue(result.GetOrdinal("OtherDescription")).ToString();
                this.Sex               = result.GetValue(result.GetOrdinal("Sex")).ToString();
                this.RageAbility       = (bool)result.GetValue(result.GetOrdinal("RageAbility"));
                this.ShapeShiftAbility = (bool)result.GetValue(result.GetOrdinal("ShapeShiftAbility"));
                this.Primitive         = (bool)result.GetValue(result.GetOrdinal("Primitive"));
                this.BonusFeat         = (bool)result.GetValue(result.GetOrdinal("BonusFeat"));
                this.BonusSkill        = (bool)result.GetValue(result.GetOrdinal("BonusSkill"));
                this.AverageHeight     = (decimal)result.GetValue(result.GetOrdinal("AverageHeight"));
                this.AverageWeight     = (decimal)result.GetValue(result.GetOrdinal("AverageWeight"));
                this.SizeID            = (int)result.GetValue(result.GetOrdinal("SizeID"));
                this.SpeedID           = (int)result.GetValue(result.GetOrdinal("SpeedID"));

                List <RaceAbilityModifier> objRaceAbilityModifiers = new List <RaceAbilityModifier>();
                RaceAbilityModifier        objRaceAbilityModifier  = new RaceAbilityModifier();
                Speed objSpeed = new Speed();

                if (!(this.RaceID == 0))
                {
                    objRaceAbilityModifiers = objRaceAbilityModifier.GetRaceAbilityModifiers(" RaceID=" + this.RaceID.ToString(), "");
                }
                this.objRaceAbilityModifiers = objRaceAbilityModifiers;

                List <Skill> objRaceSkills = new List <Skill>();
                Skill        objSkill      = new Skill();
                if (!(this.RaceID == 0))
                {
                    objRaceSkills = objSkill.GetSkillsForRace(" RaceID=" + this.RaceID.ToString(), "");
                }
                this.lstRaceSkills = objRaceSkills;

                Size objLocalSize = new Size();
                if (!(this.RaceID == 0))
                {
                    objLocalSize = objLocalSize.GetSize(this.SizeID);
                }
                this.objSize = objLocalSize;

                List <Speed> objSpeeds = new List <Speed>();
                if (!(this.SpeedID == 0))
                {
                    objSpeeds = objSpeed.GetRaceSpeeds(this.RaceID);
                }
                this.objSpeeds = objSpeeds;

                Feat objFeat = new Feat();
                lstBonusFeats = objFeat.GetBonusFeatsForRace(this.RaceID);

                RaceDefenseTypeModifier objRaceDefenseTypeModifier = new RaceDefenseTypeModifier();
                lstRaceDefenseTypeModifier = objRaceDefenseTypeModifier.GetRaceDefenseTypeModifiersByRace(this.RaceID, "");

                RaceFeatConditionalFeat objRaceFeatConditionalFeat = new RaceFeatConditionalFeat();
                lstConditionalFeatsByFeat = objRaceFeatConditionalFeat.GetRaceFeatConditionalFeatsByRaceID(this.RaceID);

                RaceSkillConditionalFeat objRaceSkillConditionalFeat = new RaceSkillConditionalFeat();
                lstConditionalFeatsBySkill = objRaceSkillConditionalFeat.GetRaceSkillConditionalFeatsByRaceID(this.RaceID);

                Language objLanguage = new Language();
                lstLanguages = objLanguage.GetRaceLanguages(this.RaceID, "LanguageName");

                RaceLanguage objRaceLang = new RaceLanguage();
                lstRaceLanguages = objRaceLang.GetRaceLanguages("RaceID=" + this.RaceID.ToString(), "");

                RaceSpecialAbility objRSA = new RaceSpecialAbility();
                lstRaceSpecialAbilities = objRSA.GetRaceSpecialAbilitysByRace(this.RaceID);

                this._objComboBoxData.Add(this.RaceID, this.RaceName);
            }
        }
Example #13
0
        /// <summary>
        /// Sets the reader to object.
        /// </summary>
        /// <param name="objClass">The object class.</param>
        /// <param name="result">The result.</param>
        private void SetReaderToObject(ref Class objClass, ref SqlDataReader result)
        {
            if (result.HasRows)
            {
                objClass.ClassID             = (int)result.GetValue(result.GetOrdinal("ClassID"));
                objClass.IsPrestige          = (bool)result.GetValue(result.GetOrdinal("IsPrestige"));
                objClass.ClassName           = result.GetValue(result.GetOrdinal("ClassName")).ToString();
                objClass.HitDieType          = (int)result.GetValue(result.GetOrdinal("HitDieType"));
                objClass.StartingSkillNumber = (int)result.GetValue(result.GetOrdinal("StartingSkillNumber"));

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("StartingSkills")).ToString()))
                {
                    objClass.StartingSkills = (int)result.GetValue(result.GetOrdinal("StartingSkills"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("StartCreditDie")).ToString()))
                {
                    objClass.StartCreditDie = (int)result.GetValue(result.GetOrdinal("StartCreditDie"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("StartCreditDieNumber")).ToString()))
                {
                    objClass.StartCreditDieNumber = (int)result.GetValue(result.GetOrdinal("StartCreditDieNumber"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("StartCreditDieModifier")).ToString()))
                {
                    objClass.StartCreditDieModifier = (int)result.GetValue(result.GetOrdinal("StartCreditDieModifier"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredTalents")).ToString()))
                {
                    objClass.PrestigeRequiredTalents = (int)result.GetValue(result.GetOrdinal("PrestigeRequiredTalents"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredForceTech")).ToString()))
                {
                    objClass.PrestigeRequiredForceTech = (bool)result.GetValue(result.GetOrdinal("PrestigeRequiredForceTech"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredDarkside")).ToString()))
                {
                    objClass.PrestigeRequiredDarkside = (bool)result.GetValue(result.GetOrdinal("PrestigeRequiredDarkside"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredFeats")).ToString()))
                {
                    objClass.PrestigeRequiredFeats = (int)result.GetValue(result.GetOrdinal("PrestigeRequiredFeats"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredBaseAttack")).ToString()))
                {
                    objClass.PrestigeRequiredBaseAttack = (int)result.GetValue(result.GetOrdinal("PrestigeRequiredBaseAttack"));
                }

                if (!string.IsNullOrEmpty(result.GetValue(result.GetOrdinal("PrestigeRequiredLevel")).ToString()))
                {
                    objClass.PrestigeRequiredLevel = (int)result.GetValue(result.GetOrdinal("PrestigeRequiredLevel"));
                }
                objClass._objComboBoxData.Clear();
                objClass._objComboBoxData.Add(objClass.ClassID, objClass.ClassName);
            }
            if (objClass.IsPrestige)
            {
                Feat                objFeat = new Feat();;
                ClassDefenseType    objClassDefenseTypes   = new ClassDefenseType();
                PrestigeRequirement objPrestigeRequirement = new PrestigeRequirement();
                TalentTree          objTalentTree          = new TalentTree();
                Talent              objTalent     = new Talent();
                ForcePower          objForcePower = new ForcePower();
                Skill               objSkill      = new Skill();
                Race                objRace       = new Race();

                objClass.StartingFeats = objFeat.GetStartingFeats(" ClassID=" + objClass.ClassID.ToString(), "FeatName");

                objClass.objClassDefenseTypes = objClassDefenseTypes.GetClassDefenseTypes(" ClassID=" + objClass.ClassID.ToString(), "");

                objClass.objPrestigeRequirement = objPrestigeRequirement.GetPrestigeRequirementPrestigeClass(" ClassID=" + objClass.ClassID.ToString(), "PrestigeRequirementDescription");

                objClass.objPrestigeRequiredTalentTree = objTalentTree.GetTalentTreesPrestigeClass("ClassID=" + objClass.ClassID.ToString(), "TalentTreeName");

                objClass.objPrestigeRequiredTalents = objTalent.GetPrestigeRequiredTalents("ClassID=" + objClass.ClassID.ToString(), "TalentName");

                objClass.objPrestigeRequiredFeats = objFeat.GetPrestigeRequiredFeats(" ClassID=" + objClass.ClassID.ToString(), "FeatName");

                objClass.objPrestigeRequiredFeatGroup = objFeat.GetPrestigeRequiredFeatGroups(" ClassID=" + objClass.ClassID.ToString(), "FeatName");

                objClass.objPrestigeRequiredForcePowers = objForcePower.GetPrestigeRequiredForcePowers(" ClassID=" + objClass.ClassID.ToString(), "ForcePowerName");

                objClass.objPrestigeRequiredSkills = objSkill.GetPrestigeRequiredSkills(" ClassID=" + objClass.ClassID.ToString(), "SkillName");

                objClass.objPrestigeRequiredRaces = objRace.GetRaceRequirementForClass(" mtmPrestigeRequirementClassRace.ClassID=" + objClass.ClassID.ToString(), "RaceName");
            }
        }