CvGame::getActiveTeam()
- Defined in
- CvGame.cpp, line 4250
- Class
- CvGame
- Hook name
CivHooks::CvGame_getActiveTeam
Hooks
static bool BeforeCvGame_getActiveTeam(CvGame* self, TeamTypes& result);static void AfterCvGame_getActiveTeam(CvGame* self, TeamTypes& result);static TeamTypes ReplaceCvGame_getActiveTeam(TeamTypes (*original)(CvGame*), CvGame* self);CivRegisterBefore<CivHooks::CvGame_getActiveTeam>(host, &BeforeCvGame_getActiveTeam);CivRegisterAfter<CivHooks::CvGame_getActiveTeam>(host, &AfterCvGame_getActiveTeam);CivRegisterReplace<CivHooks::CvGame_getActiveTeam>(host, &ReplaceCvGame_getActiveTeam);
Code
4250TeamTypes CvGame::getActiveTeam()4251{4252 PlayerTypes eActivePlayer = getActivePlayer();4253 if(eActivePlayer == NO_PLAYER)4254 {4255 return NO_TEAM;4256 }4257 else4258 {4259 return (TeamTypes)GET_PLAYER(eActivePlayer).getTeam();4260 }4261}
Calls
Called by
68 functions in 16 files
- CvArea::changeYieldRateModifier(PlayerTypes, YieldTypes, int)
- PathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- TacticalAnalysisMapPathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvCity::ChangeBaseYieldRateFromBuildings(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromMisc(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromReligion(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromSpecialists(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromTerrain(YieldTypes, int)
- CvCity::PreKill(bool)
- CvCity::canBeSelected() const
- CvCity::popOrder(int, bool, bool)
- CvCity::pushOrder(OrderTypes, int, int, bool, bool, bool, bool)
- CvCity::swapOrder(int)
- CvDealAI::DoTradeScreenOpened()
- CvDllGame::GetActiveTeam()
- CvDllGameAsynch::GetActiveTeam()
- CvGame::cycleCities(bool, bool)
- CvGame::getPlotUnit(CvPlot *, int)
- CvGame::getPlotUnits(CvPlot *, std::vector<CvUnit *> &)
- CvGame::saveReplay()
- CvPlayer::DoAnnounceReligionAdoption()
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::changeMilitaryFoodProductionCount(int)
- CvPlayer::changeYieldRateModifier(YieldTypes, int)
- CvPlayer::clearResearchQueue()
- CvPlayer::popResearch(TechTypes)
- CvPlayer::pushResearch(TechTypes, bool)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::GetActiveFogOfWarMode() const
- CvPlot::SetRoutePillaged(bool, bool)
- CvPlot::SetTradeRoute(PlayerTypes, bool)
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::changeInvisibleVisibilityCount(TeamTypes, InvisibleTypes, int)
- CvPlot::changeVisibilityCount(TeamTypes, int, InvisibleTypes, bool, bool, CvUnit *)
- CvPlot::defenseModifier(TeamTypes, bool, bool) const
- CvPlot::getVisibleImprovementState(ImprovementTypes &, bool &)
- CvPlot::getVisibleResourceState(ResourceTypes &, bool &, bool &)
- CvPlot::isActiveVisible() const
- CvPlot::isActiveVisible(bool) const
- CvPlot::isRevealedBarbarian() const
- CvPlot::isVisibleWorked() const
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::setRevealedImprovementType(TeamTypes, ImprovementTypes)
- CvPlot::setRevealedRouteType(TeamTypes, RouteTypes)
- CvPlot::updateCenterUnit()
- CvPlot::updateLayout(bool)
- CvPlot::updateVisibility()
- CvTeam::DoDeclareWar(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::DoMakePeace(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::SetAllowsOpenBordersToTeam(TeamTypes, bool)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::SetHasDefensivePact(TeamTypes, bool)
- CvTeam::SetHasEmbassyAtTeam(TeamTypes, bool)
- CvTeam::SetHasResearchAgreement(TeamTypes, bool)
- CvTeam::SetHasTradeAgreement(TeamTypes, bool)
- CvTeam::changeBridgeBuildingCount(int)
- CvTeam::makeHasMet(TeamTypes, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTeam::setMapCentering(bool)
- CvTeamTechs::SetResearchProgressTimes100(TechTypes, int, PlayerTypes, int, int)
- CvPlayerTrade::GetPlotMouseoverToolTips(CvPlot *)
- CvUnit::build(BuildTypes)
- CvUnit::getVisualOwner(TeamTypes) const
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnitCombat::AttackNuclear(CvUnit &, int, int, ATTACK_OPTION)
- CvUnitCombat::ResolveCombat(const CvCombatInfo &, uint)
- CvLuaGame::lGetActiveTeam(lua_State *)
- CvLuaPlot::lIsResourceConnectedByImprovement(lua_State *)