CvGame::selectAll(CvPlot *)
- Defined in
- CvGame.cpp, line 2846
- Class
- CvGame
- Hook name
CivHooks::CvGame_selectAll
Hooks
static bool BeforeCvGame_selectAll(CvGame* self, CvPlot* pPlot);static void AfterCvGame_selectAll(CvGame* self, CvPlot* pPlot);static void ReplaceCvGame_selectAll(void (*original)(CvGame*, CvPlot*), CvGame* self, CvPlot* pPlot);CivRegisterBefore<CivHooks::CvGame_selectAll>(host, &BeforeCvGame_selectAll);CivRegisterAfter<CivHooks::CvGame_selectAll>(host, &AfterCvGame_selectAll);CivRegisterReplace<CivHooks::CvGame_selectAll>(host, &ReplaceCvGame_selectAll);
Code
2846void CvGame::selectAll(CvPlot* pPlot)2847{2848 CvUnit* pSelectUnit = NULL;28492850 if(pPlot != NULL)2851 {2852 CvUnit* pCenterUnit = pPlot->getCenterUnit().pointer();28532854 if((pCenterUnit != NULL) && (pCenterUnit->getOwner() == getActivePlayer()))2855 {2856 pSelectUnit = pCenterUnit;2857 }2858 }28592860 if(pSelectUnit != NULL)2861 {2862 auto_ptr<ICvUnit1> pDllSelectUnit = GC.WrapUnitPointer(pSelectUnit);2863 GC.GetEngineUserInterface()->selectGroup(pDllSelectUnit.get(), false, false, true);2864 }2865}
Calls
- CvGame::getActivePlayer() const
- CvGlobals::GetEngineUserInterface()
- CvGlobals::WrapUnitPointer(CvUnit *)
- CvPlot::getCenterUnit()
- CvUnit::getOwner() const
FObjectHandle::pointerICvUserInterface1::selectGroupstd::auto_ptr::auto_ptrstd::auto_ptr::getstd::auto_ptr::operator auto_ptr_ref