Bazaar developer reference

CvCity::canBeSelected() const

Defined in
CvCity.cpp, line 1951
Class
CvCity
Hook name
CivHooks::CvCity_canBeSelected

Hooks

static bool BeforeCvCity_canBeSelected(const CvCity* self, bool& result);static void AfterCvCity_canBeSelected(const CvCity* self, bool& result);static bool ReplaceCvCity_canBeSelected(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_canBeSelected>(host, &BeforeCvCity_canBeSelected);CivRegisterAfter<CivHooks::CvCity_canBeSelected>(host, &AfterCvCity_canBeSelected);CivRegisterReplace<CivHooks::CvCity_canBeSelected>(host, &ReplaceCvCity_canBeSelected);

Code

1951bool CvCity::canBeSelected() const1952{1953	VALIDATE_OBJECT1954	if((getTeam() == GC.getGame().getActiveTeam()) || GC.getGame().isDebugMode())1955	{1956		return true;1957	}19581959	return false;1960}

Calls