CvGameTrade::IsRecalledUnit(int)
- Defined in
- CvTradeClasses.cpp, line 1402
- Class
- CvGameTrade
- Hook name
CivHooks::CvGameTrade_IsRecalledUnit
Hooks
static bool BeforeCvGameTrade_IsRecalledUnit(CvGameTrade* self, int iIndex, bool& result);static void AfterCvGameTrade_IsRecalledUnit(CvGameTrade* self, int iIndex, bool& result);static bool ReplaceCvGameTrade_IsRecalledUnit(bool (*original)(CvGameTrade*, int), CvGameTrade* self, int iIndex);CivRegisterBefore<CivHooks::CvGameTrade_IsRecalledUnit>(host, &BeforeCvGameTrade_IsRecalledUnit);CivRegisterAfter<CivHooks::CvGameTrade_IsRecalledUnit>(host, &AfterCvGameTrade_IsRecalledUnit);CivRegisterReplace<CivHooks::CvGameTrade_IsRecalledUnit>(host, &ReplaceCvGameTrade_IsRecalledUnit);
Code
1401#if defined(MOD_API_TRADEROUTES)1402bool CvGameTrade::IsRecalledUnit (int iIndex) {1403 CvAssertMsg(iIndex >= 0 && iIndex < (int)m_aTradeConnections.size(), "iIndex out of bounds");1404 if (iIndex < 0 || iIndex >= (int)m_aTradeConnections.size())1405 {1406 return false;1407 }14081409 TradeConnection &kTradeConnection = m_aTradeConnections[iIndex];1410 return kTradeConnection.m_bTradeUnitRecalled;1411}
Calls
BaseVector::operator[]BaseVector::size