CvGlobals::WrapPlotPointer(CvPlot *)
- Defined in
- CvGlobals.cpp, line 2338
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_WrapPlotPointer
Hooks
static bool BeforeCvGlobals_WrapPlotPointer(CvGlobals* self, CvPlot* pPlot, auto_ptr<ICvPlot1>& result);static void AfterCvGlobals_WrapPlotPointer(CvGlobals* self, CvPlot* pPlot, auto_ptr<ICvPlot1>& result);static auto_ptr<ICvPlot1> ReplaceCvGlobals_WrapPlotPointer(auto_ptr<ICvPlot1> (*original)(CvGlobals*, CvPlot*), CvGlobals* self, CvPlot* pPlot);CivRegisterBefore<CivHooks::CvGlobals_WrapPlotPointer>(host, &BeforeCvGlobals_WrapPlotPointer);CivRegisterAfter<CivHooks::CvGlobals_WrapPlotPointer>(host, &AfterCvGlobals_WrapPlotPointer);CivRegisterReplace<CivHooks::CvGlobals_WrapPlotPointer>(host, &ReplaceCvGlobals_WrapPlotPointer);
Code
2338auto_ptr<ICvPlot1> CvGlobals::WrapPlotPointer(CvPlot* pPlot)2339{2340 return auto_ptr<ICvPlot1>((NULL != pPlot)? new CvDllPlot(pPlot) : NULL);2341}
Calls
- CvDllPlot::CvDllPlot(CvPlot *)
std::auto_ptr::auto_ptrstd::auto_ptr::auto_ptrstd::auto_ptr::operator auto_ptr_ref
Called by
- AttackPathAdd(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- UIPathAdd(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvCity::rangeStrike(int, int)
- CvNotifications::Activate(Notification &)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvUnit::found()
- CvUnitCombat::Attack(CvUnit &, CvPlot &, ATTACK_OPTION)
- CvUnitCombat::AttackAir(CvUnit &, CvPlot &, ATTACK_OPTION)
- CvUnitCombat::AttackAirSweep(CvUnit &, CvPlot &, ATTACK_OPTION)
- CvUnitCombat::AttackCity(CvUnit &, CvPlot &, CvUnitCombat::ATTACK_OPTION)
- CvUnitCombat::AttackNuclear(CvUnit &, int, int, ATTACK_OPTION)
- CvUnitCombat::AttackRanged(CvUnit &, int, int, CvUnitCombat::ATTACK_OPTION)
- CvUnitMission::ContinueMission(UnitHandle, int, int)