CvPlot::showPopupText(PlayerTypes, const char *)
- Defined in
- CvPlot.cpp, line 10437
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_showPopupText
Hooks
static bool BeforeCvPlot_showPopupText(CvPlot* self, PlayerTypes ePlayer, const char* szMessage);static void AfterCvPlot_showPopupText(CvPlot* self, PlayerTypes ePlayer, const char* szMessage);static void ReplaceCvPlot_showPopupText(void (*original)(CvPlot*, PlayerTypes, const char*), CvPlot* self, PlayerTypes ePlayer, const char* szMessage);CivRegisterBefore<CivHooks::CvPlot_showPopupText>(host, &BeforeCvPlot_showPopupText);CivRegisterAfter<CivHooks::CvPlot_showPopupText>(host, &AfterCvPlot_showPopupText);CivRegisterReplace<CivHooks::CvPlot_showPopupText>(host, &ReplaceCvPlot_showPopupText);
Code
10436#if defined(SHOW_PLOT_POPUP)10437void CvPlot::showPopupText(PlayerTypes ePlayer, const char* szMessage)10438{10439 if (ePlayer == NO_PLAYER || isVisible(GET_PLAYER(ePlayer).getTeam()))10440 {10441 DLLUI->AddPopupText(getX(), getY(), szMessage, m_fPopupDelay);10442 m_fPopupDelay += 0.5;10443 }10444}
Calls
Called by
- CvCity::setDamage(int, bool)
- CvPlayer::ReportYieldFromKill(YieldTypes, int, int, int, int)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvPlayerTrade::PlunderTradeRoute(int, CvUnit *)
- CvUnit::DoAttrition()
- CvUnit::DoSpreadReligion()
- CvUnit::blastTourism()
- CvUnit::changeExperienceTimes100(int, int, bool, bool, bool)
- CvUnit::sellExoticGoods()
- CvUnit::setDamage(int, PlayerTypes, int, float, const CvString *)
- CvUnit::setExperienceTimes100(int, int)
- CvUnitCombat::ApplyPostCityCombatEffects(CvUnit *, CvCity *, int)
- CvUnitCombat::ApplyPostCombatTraitEffects(CvUnit *, CvUnit *)
- CvLuaPlot::lAddPopupMessage(lua_State *)