CvPlot::setLayoutDirty(bool)
- Defined in
- CvPlot.cpp, line 10918
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_setLayoutDirty
Hooks
static bool BeforeCvPlot_setLayoutDirty(CvPlot* self, bool bDirty);static void AfterCvPlot_setLayoutDirty(CvPlot* self, bool bDirty);static void ReplaceCvPlot_setLayoutDirty(void (*original)(CvPlot*, bool), CvPlot* self, bool bDirty);CivRegisterBefore<CivHooks::CvPlot_setLayoutDirty>(host, &BeforeCvPlot_setLayoutDirty);CivRegisterAfter<CivHooks::CvPlot_setLayoutDirty>(host, &AfterCvPlot_setLayoutDirty);CivRegisterReplace<CivHooks::CvPlot_setLayoutDirty>(host, &ReplaceCvPlot_setLayoutDirty);
Code
10918void CvPlot::setLayoutDirty(bool bDirty)10919{10920 if(bDirty == true)10921 {10922 GC.GetEngineUserInterface()->setDirty(PlotData_DIRTY_BIT,true);10923 }10924 m_bPlotLayoutDirty = bDirty;10925}
Calls
- CvGlobals::GetEngineUserInterface()
ICvUserInterface1::setDirty
Called by
- CvMap::updateLayout(bool)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::SetImprovementPillaged(bool, bool)
- CvPlot::SetRoutePillaged(bool, bool)
- CvPlot::SetTradeRoute(PlayerTypes, bool)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setPlotType(PlotTypes, bool, bool, bool)
- CvPlot::setResourceType(ResourceTypes, int, bool)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::setRevealedImprovementType(TeamTypes, ImprovementTypes)
- CvPlot::setRevealedRouteType(TeamTypes, RouteTypes)
- CvPlot::updateVisibility()
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::processTech(TechTypes, int)
- CvTeam::setForceRevealedResource(ResourceTypes, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvUnit::build(BuildTypes)