Bazaar developer reference

CvTraitEntry::IsRiverTradeRoad() const

Defined in
CvTraitClasses.cpp, line 780
Class
CvTraitEntry
Hook name
CivHooks::CvTraitEntry_IsRiverTradeRoad

Hooks

static bool BeforeCvTraitEntry_IsRiverTradeRoad(const CvTraitEntry* self, bool& result);static void AfterCvTraitEntry_IsRiverTradeRoad(const CvTraitEntry* self, bool& result);static bool ReplaceCvTraitEntry_IsRiverTradeRoad(bool (*original)(const CvTraitEntry*), const CvTraitEntry* self);CivRegisterBefore<CivHooks::CvTraitEntry_IsRiverTradeRoad>(host, &BeforeCvTraitEntry_IsRiverTradeRoad);CivRegisterAfter<CivHooks::CvTraitEntry_IsRiverTradeRoad>(host, &AfterCvTraitEntry_IsRiverTradeRoad);CivRegisterReplace<CivHooks::CvTraitEntry_IsRiverTradeRoad>(host, &ReplaceCvTraitEntry_IsRiverTradeRoad);

Code

779/// Accessor: Do rivers count as trade roads780bool CvTraitEntry::IsRiverTradeRoad() const781{782	return m_bRiverTradeRoad;783}

Called by