CvGlobals::getCommandInfo(CommandTypes)
- Defined in
- CvGlobals.cpp, line 3456
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getCommandInfo_with_CommandTypes
Hooks
static bool BeforeCvGlobals_getCommandInfo_with_CommandTypes(CvGlobals* self, CommandTypes eCommandNum, CvCommandInfo*& result);static void AfterCvGlobals_getCommandInfo_with_CommandTypes(CvGlobals* self, CommandTypes eCommandNum, CvCommandInfo*& result);static CvCommandInfo* ReplaceCvGlobals_getCommandInfo_with_CommandTypes(CvCommandInfo* (*original)(CvGlobals*, CommandTypes), CvGlobals* self, CommandTypes eCommandNum);CivRegisterBefore<CivHooks::CvGlobals_getCommandInfo_with_CommandTypes>(host, &BeforeCvGlobals_getCommandInfo_with_CommandTypes);CivRegisterAfter<CivHooks::CvGlobals_getCommandInfo_with_CommandTypes>(host, &AfterCvGlobals_getCommandInfo_with_CommandTypes);CivRegisterReplace<CivHooks::CvGlobals_getCommandInfo_with_CommandTypes>(host, &ReplaceCvGlobals_getCommandInfo_with_CommandTypes);
Code
3456CvCommandInfo* CvGlobals::getCommandInfo(CommandTypes eCommandNum)3457{3458 CvAssert(eCommandNum > -1);3459 CvAssert(eCommandNum < NUM_COMMAND_TYPES);3460 if(eCommandNum > -1 && eCommandNum < (int)m_paCommandInfo.size())3461 return m_paCommandInfo[eCommandNum];3462 else3463 return NULL;3464}
Calls
std::vector::operator[]std::vector::size
Called by
- CvDllDatabaseUtility::SetGlobalActionInfo()
- CvDllNetMessageHandler::ResponseDoCommand(PlayerTypes, int, CommandTypes, int, int, bool)
- CvActionInfo::getAutomateType() const
- CvActionInfo::getCommandData() const
- CvActionInfo::getHotkeyInfo() const
- CvActionInfo::isConfirmCommand() const
- CvActionInfo::isVisible() const