CvPlot::isEnemyCity(const CvUnit &) const
- Defined in
- CvPlot.h, line 270
- Class
- CvPlot
- Not a hook point
- written in a header
Code
270 bool isEnemyCity(const CvUnit& kUnit) const271 {272 CvCity* pCity = getPlotCity();273 if(pCity != NULL)274 return kUnit.isEnemy(pCity->getTeam(), this);275276 return false;277 }
Calls
Called by
- AttackPathAdd(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- AttackPathDestEval(int, int, const void *, CvAStar *, bool, bool)
- PathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvDllPlot::IsEnemyCity(ICvUnit1 *) const
- CvTacticalAI::ExecuteMoveOfBlockingUnit(UnitHandle)
- CvUnit::UnitAttack(int, int, int, int)
- CvUnit::UnitMove(CvPlot *, bool, CvUnit *, bool)
- CvUnit::UnitPathTo(int, int, int, int, bool)
- CvUnit::canAdvance(const CvPlot &, int) const
- CvUnit::canEnterTerrain(const CvPlot &, byte) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnitMovement::IsSlowedByZOC(const CvUnit *, const CvPlot *, const CvPlot *)
- CvLuaPlot::lIsEnemyCity(lua_State *)