CvUnitEntry::GetUnitClassType() const
- Defined in
- CvUnitClasses.cpp, line 817
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_GetUnitClassType
Hooks
static bool BeforeCvUnitEntry_GetUnitClassType(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetUnitClassType(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetUnitClassType(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetUnitClassType>(host, &BeforeCvUnitEntry_GetUnitClassType);CivRegisterAfter<CivHooks::CvUnitEntry_GetUnitClassType>(host, &AfterCvUnitEntry_GetUnitClassType);CivRegisterReplace<CivHooks::CvUnitEntry_GetUnitClassType>(host, &ReplaceCvUnitEntry_GetUnitClassType);
Code
816/// Class of unit817int CvUnitEntry::GetUnitClassType() const818{819 return m_iUnitClassType;820}
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCity::doCheckProduction()
- CvCity::isProductionLimited() const
- CvCity::popOrder(int, bool, bool)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::pushOrder(OrderTypes, int, int, bool, bool, bool, bool)
- CvCityCitizens::DoSpawnGreatPerson(UnitTypes, bool, bool, bool)
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetCsGiftSpawnUnitType(PlayerTypes, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGame::isUnitEverActive(UnitTypes) const
- CvPlayer::DoSpawnGreatPerson(PlayerTypes, bool)
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::setCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::setNavalCombatExperienceTimes100(int, CvUnit *)
- CvReligionAI::GetDesiredFaithGreatPerson() const
- CvUnit::getUnitClassType() const
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::kill(bool, PlayerTypes)