bool CvTacticalAnalysisCell::CanUseForOperationGathering() { if(IsImpassableTerrain() || IsImpassableTerritory() || IsEnemyCombatUnit() || IsNeutralCombatUnit() || IsFriendlyTurnEndTile() || IsEnemyCity() || IsNeutralCity()) { return false; } return true; }
bool CvTacticalAnalysisCell::CanUseForOperationGatheringCheckWater(bool bWater) { if(bWater != IsWater() || IsImpassableTerrain() || IsImpassableTerritory() || GetEnemyMilitaryUnit() || GetNeutralMilitaryUnit() || GetNeutralCivilianUnit() || IsFriendlyTurnEndTile() || IsEnemyCity() || IsNeutralCity()) { return false; } return true; }