CyUnit
- BOOL IsSelected ()
- VOID NotifyEntity (MissionType eMission)
void (int EntityEventType)
- INT airBaseCombatStr ()
int ()
- INT airBombBaseRate ()
int ()
- INT airBombCurrRate ()
int ()
- INT airCombatDamage (CyUnit pDefender)
int (CyUnit* pDefender)
- INT airCombatLimit ()
int ()
- INT airCurrCombatStr (CyUnit pOther)
int (CyUnit* pOther)
- FLOAT airCurrCombatStrFloat (CyUnit pOther)
float (CyUnit* pOther)
- INT airMaxCombatStr (CyUnit pOther)
int (CyUnit* pOther)
- FLOAT airMaxCombatStrFloat (CyUnit pOther)
float (CyUnit* pOther)
- INT airRange ()
int ()
- BOOL alwaysInvisible ()
bool ()
- INT animalCombatModifier ()
int ()
- CyArea area ()
CyArea* ()
- BOOL at (INT iX, INT iY)
bool (int iX, int iY)
- BOOL atPlot (CyPlot pPlot)
bool (CyPlot* pPlot)
- VOID attackForDamage (CyUnit *defender, INT attakerDamageChange, INT defenderDamageChange)
void attackForDamage(CyUnit *defender, int attakerDamageChange, int defenderDamageChange)
- INT attackXPValue ()
int ()
- INT baseCombatStr ()
int ()
- INT baseMoves ()
int ()
- CyUnit bestInterceptor (CyPlot pPlot)
CyUnit* (CyPlot*)
- CyUnit bestSeaPillageInterceptor (CyPlot pPlot)
CyUnit* (CyPlot*)
- INT bombardRate ()
int ()
- CyCity bombardTarget (CyPlot pPlot)
CyCity* (CyPlot* pPlot)
- BOOL canAcquirePromotion (PromotionType ePromotion)
bool (int /*PromotionTypes*/ ePromotion)
- BOOL canAcquirePromotionAny ()
bool ()
- BOOL canAirAttack ()
bool ()
- BOOL canAirBomb (CyPlot pPlot)
bool ()
- BOOL canAirBombAt (CyPlot pPlot, INT iX, INT iY)
bool (CyPlot* pPlot, int iX, int iY)
- BOOL canAirDefend (CyPlot pPlot)
bool (CyPlot*)
- BOOL canAirPatrol (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canAirlift (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canAirliftAt (CyPlot pPlot, INT iX, INT iY)
bool (CyPlot* pPlot, int iX, int iY)
- BOOL canAttack ()
bool ()
- BOOL canAutomate (AutomateType eAutomate)
bool (int (AutomateTypes) eAutomate)
- BOOL canBombard (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canBuild (CyPlot pPlot, BuildType eBuild, BOOL bTestVisible)
bool (CyPlot* pPlot, int (BuildTypes) eBuild, bool bTestVisible)
- BOOL canBuildRoute ()
bool ()
- BOOL canCargoAllMove ()
bool ()
- BOOL canCoexistWithEnemyUnit (TeamType eTeam)
bool (int)
- BOOL canConstruct (CyPlot pPlot, BuildingType eBuilding)
bool (CyPlot* pPlot, int (BuildingTypes) eBuilding)
- BOOL canDefend (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canDestroy (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canDiscover (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canDoCommand (CommandType eCommand, INT iData1, INT iData2, BOOL bTestVisible)
bool (eCommand, iData1, iData2, bTestVisible = False) - can the unit perform eCommand?
- BOOL canEnterArea (TeamType eTeam, CyArea pArea, BOOL bIgnoreRightOfPassage)
bool (int (TeamTypes) eTeam, CyArea* pArea, bool bIgnoreRightOfPassage)
- BOOL canEnterTerritory (TeamType eTeam, BOOL bIgnoreRightOfPassage)
bool (int (TeamTypes) eTeam, bool bIgnoreRightOfPassage)
- BOOL canEspionage (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canFight ()
bool ()
- BOOL canFortify (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canFound (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canGift (BOOL bTestVisible)
bool (bool bTestVisible)
- INT canGiveExperience (CyPlot pPlot)
int (CyPlot* pPlot)
- BOOL canGoldenAge (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canGreatWork (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canHeal (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canHold (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canHurry (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canInfiltrate (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canJoin (CyPlot pPlot, SpecialistType eSpecialist)
bool (CyPlot* pPlot, int (SpecialistTypes) eSpecialist)
- INT canLead (CyPlot pPlot, INT iUnitId)
int (CyPlot* pPlot, int)
- BOOL canLoad (CyPlot pPlot)
bool ()
- BOOL canLoadUnit (CyUnit pUnit, CyPlot pPlot)
bool (CyUnit* pUnit, CyPlot* pPlot)
- BOOL canMove ()
bool ()
- BOOL canMoveAllTerrain ()
bool ()
- BOOL canMoveImpassable ()
bool ()
- BOOL canMoveInto (CyPlot pPlot, BOOL bAttack, BOOL bDeclareWar, BOOL bIgnoreLoad)
bool (CyPlot* pPlot, bool bAttack, bool bDeclareWar, bool bIgnoreLoad)
- BOOL canMoveOrAttackInto (CyPlot pPlot, BOOL bDeclareWar)
bool (CyPlot* pPlot, bool bDeclareWar)
- BOOL canMoveThrough (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canNuke (CyPlot pPlot)
bool ()
- BOOL canNukeAt (CyPlot pPlot, INT iX, INT iY)
bool (CyPlot* pPlot, int iX, int iY)
- BOOL canPillage (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canPlunder (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canPromote (PromotionType ePromotion, INT iLeaderUnitId)
bool (ePromotion, iLeaderUnitId)
- BOOL canRecon (CyPlot pPlot)
bool ()
- BOOL canReconAt (CyPlot pPlot, INT iX, INT iY)
bool (CyPlot* pPlot, int iX, int iY)
- BOOL canSabotage (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canScrap ()
bool ()
- BOOL canSeaPatrol (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canSentry (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canSiege (TeamType eTeam)
bool (int /*TeamTypes*/ eTeam)
- BOOL canSleep (CyPlot pPlot)
bool (CyPlot* pPlot)
- BOOL canSpread (CyPlot pPlot, ReligionType eReligion, BOOL bTestVisible)
bool (CyPlot* pPlot, int /*ReligionTypes*/ eReligion, bool bTestVisible)
- BOOL canStealPlans (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canTrade (CyPlot pPlot, BOOL bTestVisible)
bool (CyPlot* pPlot, bool bTestVisible)
- BOOL canUnload ()
bool ()
- BOOL canUnloadAll ()
bool ()
- BOOL canUpgrade (UnitType eUnit, BOOL bTestVisible)
bool (int /*UnitTypes*/ eUnit, bool bTestVisible)
- INT cargoSpace ()
int ()
- INT cargoSpaceAvailable (SpecialUnitType eSpecialCargo, DomainType eDomainCargo)
int ()
- VOID centerCamera ()
void () - Centers the Camera on the unit
- INT chanceFirstStrikes ()
int ()
- VOID changeCargoSpace (INT iChange)
void (int)
- VOID changeDamage (INT iChange, PlayerType ePlayer)
void (int iChange, int /*PlayerTypes*/ ePlayer)
- VOID changeExperience (INT iChange, INT iMax, BOOL bFromCombat, BOOL bInBorders, BOOL bUpdateGlobal)
void (int iChange, int iMax, bool bFromCombat, bool bInBorders, bool bUpdateGlobal)
- VOID changeLevel (INT iChange)
- VOID changeMoves (INT iChange)
void (int iChange)
- INT cityAttackModifier ()
int ()
- INT cityDefenseModifier ()
int ()
- INT collateralDamage ()
int ()
- INT collateralDamageLimit ()
int ()
- INT collateralDamageMaxUnits ()
int ()
- INT combatLimit ()
int ()
- VOID convert (CyUnit pUnit)
void (CyUnit* pUnit)
- INT currCombatStr (CyPlot pPlot, CyUnit pAttacker)
int (CyPlot* pPlot, CyUnit* pAttacker)
- FLOAT currCombatStrFloat (CyPlot pPlot, CyUnit pAttacker)
float (CyPlot* pPlot, CyUnit* pAttacker)
- INT currFirepower (CyPlot pPlot, CyUnit pAttacker)
int (CyPlot* pPlot, CyUnit* pAttacker)
- INT currHitPoints ()
bool ()
- INT currInterceptionProbability ()
int ()
- INT defenseXPValue ()
int ()
- INT destroyCost (CyPlot pPlot)
int (CyPlot* pPlot)
- INT destroyProb (CyPlot pPlot, ProbabilityType eProbStyle)
int (CyPlot* pPlot, int /*ProbabilityTypes*/ eProbStyle)
- VOID doCommand (CommandType eCommand, INT iData1, INT iData2)
void (eCommand, iData1, iData2) - force the unit to perform eCommand
- DomainType domainCargo ()
int ()
- INT domainModifier (DomainType eDomain)
int (int /*DomainTypes*/ eDomain)
- INT evasionProbability ()
int ()
- INT experienceNeeded ()
int ()
- INT featureAttackModifier (FeatureType eFeature)
int (int /*FeatureTypes*/ eFeature)
- INT featureDefenseModifier (FeatureType eFeature)
int (int /*FeatureTypes*/ eFeature)
- VOID finishMoves ()
void ()
- INT firstStrikes ()
int ()
- BOOL flatMovementCost ()
bool ()
- INT flavorValue (FlavorType eFlavor)
int (FlavorTypes eFlavor)
- INT fortifyModifier ()
int ()
- BOOL generatePath (CyPlot pToPlot, INT iFlags, BOOL bReuse, INT piPathTurns)
bool (CyPlot* pToPlot, int iFlags = 0, bool bReuse = false, int* piPathTurns = NULL)
- INT getAdjacentTileHeal ()
int ()
- INT getAmphibCount ()
int ()
- CvArtInfoUnit getArtInfo (INT i, EraType eEra)
CvArtInfoUnit* (int i, eEra)
- INT getBlitzCount ()
int ()
- BuildType getBuildType ()
int (BuildTypes) ()
- STRING getButton ()
std::string ()
- UnitType getCaptureUnitType (CivilizationType eCivilization)
int (int /*CivilizationTypes*/ eCivilization)
- INT getCargo ()
int ()
- CivilizationType getCivilizationType ()
int ()
- INT getCollateralDamageProtection ()
int ()
- INT getCombatOwner (TeamType iForTeam)
int (int)
- INT getDamage ()
int ()
- TeamType getDeclareWarMove (CyPlot pPlot)
TeamTypes (CyPlot* pPlot)
- INT getDiscoverResearch (TechType eTech)
int (int /*TechTypes*/ eTech)
- TechType getDiscoveryTech ()
int /*TechTypes*/ ()
- DomainType getDomainType ()
int ()
- INT getEspionagePoints (CyPlot pPlot)
int (CyPlot* pPlot)
- INT getExperience ()
int ()
- INT getExperiencePercent ()
int ()
- INT getExtraAirRange ()
int ()
- INT getExtraChanceFirstStrikes ()
int ()
- INT getExtraCityAttackPercent ()
int ()
- INT getExtraCityDefensePercent ()
int ()
- INT getExtraCollateralDamage ()
int ()
- INT getExtraCombatPercent ()
int ()
- INT getExtraDomainModifier (DomainType eIndex)
int ()
- INT getExtraEnemyHeal ()
int ()
- INT getExtraEvasion ()
int ()
- INT getExtraFeatureAttackPercent (FeatureType eIndex)
int ()
- INT getExtraFeatureDefensePercent (FeatureType eIndex)
int ()
- INT getExtraFirstStrikes ()
int ()
- INT getExtraFriendlyHeal ()
int ()
- INT getExtraHillsAttackPercent ()
int ()
- INT getExtraHillsDefensePercent ()
int ()
- INT getExtraIntercept ()
int ()
- INT getExtraMoveDiscount ()
int ()
- INT getExtraMoves ()
int ()
- INT getExtraNeutralHeal ()
int ()
- INT getExtraTerrainAttackPercent (TerrainType eIndex)
int ()
- INT getExtraTerrainDefensePercent (TerrainType eIndex)
int ()
- INT getExtraUnitCombatModifier (UnitCombatType eIndex)
int ()
- INT getExtraVisibilityRange ()
int ()
- INT getExtraWithdrawal ()
int ()
- INT getFacingDirection ()
int ()
- INT getFortifyTurns ()
int ()
- INT getGameTurnCreated ()
int ()
- INT getGreatWorkCulture (CyPlot pPlot)
int (CyPlot* pPlot)
- CySelectionGroup getGroup ()
CySelectionGroup* ()
- INT getGroupID ()
int ()
- HandicapType getHandicapType ()
int ()
- INT getHotKeyNumber ()
int () - returns the HotKey number for this unit
- INT getHurryProduction (CyPlot pPlot)
int (CyPlot* pPlot)
- INT getID ()
int ()
- INT getImmobileTimer ()
int ()
- InvisibleType getInvisibleType ()
int (InvisibleTypes) ()
- INT getKamikazePercent ()
int ()
- UnitType getLeaderUnitType ()
int ()
- INT getLevel ()
int ()
- INT getMaxHurryProduction (CyCity pCity)
int (CyCity* pCity)
- INT getMoves ()
int ()
- STRING getName ()
str () - Returns the name of a unit along with its type description in parens if using a custom name
- STRING getNameForm (INT iForm)
str (int iForm)
- STRING getNameKey ()
str ()
- STRING getNameNoDesc ()
str () - Returns the name of a unit without any description afterwards
- INT getNumSeeInvisibleTypes ()
int ()
- INT getOwner ()
int ()
- CyPlot getPathEndTurnPlot ()
CyPlot* ()
- INT getPillageChange ()
int ()
- CyPlot getReconPlot ()
CyPlot* ()
- INT getRevoltProtection ()
int ()
- INT getRiverCount ()
int ()
- INT getSameTileHeal ()
int ()
- STRING getScriptData ()
str ()
- InvisibleType getSeeInvisibleType (INT i)
int (InvisibleTypes) (int)
- SpecialUnitType getSpecialUnitType ()
int ()
- INT getTeam ()
int ()
- INT getTradeGold (CyPlot pPlot)
int (CyPlot* pPlot)
- CyUnit getTransportUnit ()
CyUnit* ()
- INT getUnitAICargo (UnitAIType eUnitAI)
int (int (UnitAITypes) eUnitAI)
- UnitAIType getUnitAIType ()
int UnitAIType () - returns the int value of the UnitAIType
- UnitClassType getUnitClassType ()
int ()
- UnitCombatType getUnitCombatType ()
int ()
- UnitType getUnitType ()
int ()
- INT getUpgradeDiscount ()
int ()
- INT getVisualOwner ()
int ()
- INT getX ()
int ()
- INT getY ()
int ()
- BOOL giveExperience ()
bool ()
- BOOL hasCargo ()
bool ()
- BOOL hasMoved ()
bool ()
- BOOL hasUpgrade (BOOL bSearch)
bool (bool bSearch)
- INT hillsAttackModifier ()
int ()
- INT hillsDefenseModifier ()
int ()
- BOOL ignoreBuildingDefense ()
bool ()
- BOOL ignoreTerrainCost ()
bool ()
- BOOL immuneToFirstStrikes ()
bool ()
- BOOL isActionRecommended (INT i)
int (int i)
- BOOL isAlwaysHeal ()
bool ()
- BOOL isAmphib ()
bool ()
- BOOL isAnimal ()
bool ()
- BOOL isAttacking ()
bool ()
- BOOL isAutomated ()
bool ()
- BOOL isBarbarian ()
bool ()
- BOOL isBetterDefenderThan (CyUnit pDefender, CyUnit pAttacker)
bool (CyUnit* pDefender, CyUnit* pAttacker)
- BOOL isBlitz ()
bool ()
- BOOL isCargo ()
bool ()
- BOOL isCombat ()
bool ()
- BOOL isCounterSpy ()
bool ()
- BOOL isDead ()
bool ()
- BOOL isDefending ()
bool ()
- BOOL isEnemyRoute ()
bool ()
- BOOL isFeatureDoubleMove (FeatureType eIndex)
bool (FeatureType)
- BOOL isFighting ()
bool ()
- BOOL isFortifyable ()
bool ()
- BOOL isFound ()
bool ()
- BOOL isFull ()
bool ()
- BOOL isGoldenAge ()
bool ()
- BOOL isGroupHead ()
bool ()
- BOOL isHasPromotion (PromotionType ePromotion)
bool (int /*PromotionTypes*/ ePromotion)
- BOOL isHillsDoubleMove ()
bool ()
- BOOL isHuman ()
bool ()
- BOOL isHurt ()
bool ()
- BOOL isInGroup ()
bool ()
- BOOL isInvestigate ()
bool ()
- BOOL isInvisible (TeamType eTeam, BOOL bDebug)
bool (int (TeamTypes) eTeam, bool bDebug)
- BOOL isMadeAttack ()
bool ()
- BOOL isMadeInterception ()
bool ()
- BOOL isMilitaryHappiness ()
bool ()
- BOOL isNeverInvisible ()
bool ()
- BOOL isNoBadGoodies ()
bool ()
- BOOL isNoCapture ()
bool ()
- BOOL isNone ()
bool () - Is this a valid unit instance?
- BOOL isNukeImmune ()
bool ()
- BOOL isNukeVictim (CyPlot pPlot, TeamType eTeam)
bool (CyPlot* pPlot, int eTeam)
- BOOL isOnlyDefensive ()
bool ()
- BOOL isPromotionReady ()
bool ()
- BOOL isPromotionValid (PromotionType ePromotion)
bool (int /*PromotionTypes*/ ePromotion)
- BOOL isRanged ()
bool ()
- BOOL isRivalTerritory ()
bool ()
- BOOL isRiver ()
bool ()
- BOOL isTerrainDoubleMove (TerrainType eIndex)
bool (TerrainType)
- BOOL isWaiting ()
bool ()
- BOOL jumpToNearestValidPlot ()
bool ()
- VOID kill (BOOL bDelay, PlayerType ePlayer)
void (bool bDelay, int /*PlayerTypes*/ ePlayer)
- BOOL lead (INT iUnitId)
bool (int)
- INT maxCombatStr (CyPlot pPlot, CyUnit pAttacker)
int (CyPlot* pPlot, CyUnit* pAttacker)
- FLOAT maxCombatStrFloat (CyPlot pPlot, CyUnit pAttacker)
float (CyPlot* pPlot, CyUnit* pAttacker)
- INT maxFirstStrikes ()
int ()
- INT maxHitPoints ()
bool ()
- INT maxInterceptionProbability ()
int ()
- INT maxMoves ()
int ()
- INT maxXPValue ()
int ()
- INT movesLeft ()
int ()
- BOOL noDefensiveBonus ()
bool ()
- INT nukeRange ()
int ()
- CyPlot plot ()
CyPlot* ()
- VOID promote (PromotionType ePromotion, INT iLeaderUnitId)
bool (ePromotion)
- VOID rangeStrike (INT iX, INT iY)
void rangeStrike(int iX, int iY)
- VOID rotateFacingDirectionClockwise ()
void ()
- VOID rotateFacingDirectionCounterClockwise ()
void ()
- INT sabotageCost (CyPlot pPlot)
int (CyPlot* pPlot)
- INT sabotageProb (CyPlot pPlot, ProbabilityType eProbStyle)
int (CyPlot* pPlot, int /*ProbabilityTypes*/ eProbStyle)
- VOID setBaseCombatStr (INT iCombat)
void (int)
- VOID setDamage (INT iNewValue, PlayerType ePlayer)
void (int iNewValue, int /*PlayerTypes*/ ePlayer)
- VOID setExperience (INT iNewValue, INT iMax)
void (int iNewValue)
- VOID setHasPromotion (PromotionType eIndex, BOOL bNewValue)
void (int (PromotionTypes) eIndex, bool bNewValue)
- VOID setHotKeyNumber (INT iNewValue)
void (int iNewValue)
- VOID setImmobileTimer (INT iNewValue)
void (int)
- VOID setLeaderUnitType (UnitType leaderUnitType)
void (int iNewValue)
- VOID setLevel (INT iNewLevel)
- VOID setMadeAttack (BOOL bNewValue)
void (int iNewValue)
- VOID setMadeInterception (BOOL bNewValue)
void (int iNewValue)
- VOID setMoves (INT iNewValue)
void (int iNewValue)
- VOID setName (STRING szNewValue)
void (str)
- VOID setPromotionReady (BOOL bNewValue)
void (int iNewValue)
- VOID setReconPlot (CyPlot pNewValue)
void (CyPlot)
- VOID setScriptData (STRING szNewValue)
void (str)
- VOID setTransportUnit (CyUnit pTransportUnit)
void (CyUnit* pTransportUnit)
- VOID setUnitAIType (UnitAIType iNewValue)
void UnitAIType (int iUnitAIType) - sets the unit's UnitAIType
- VOID setXY (INT iX, INT iY, BOOL bGroup, BOOL bUpdate, BOOL bShow)
int (int iX, int iY)
- SpecialUnitType specialCargo ()
int ()
- INT stealPlansCost (CyPlot pPlot)
int (CyPlot* pPlot)
- INT stealPlansProb (CyPlot pPlot, ProbabilityType eProbStyle)
int (CyPlot* pPlot, int /*ProbabilityTypes*/ eProbStyle)
- INT terrainAttackModifier (TerrainType eTerrain)
int (int /*TerrainTypes*/ eTerrain)
- INT terrainDefenseModifier (TerrainType eTerrain)
int (int /*TerrainTypes*/ eTerrain)
- INT unitClassAttackModifier (UnitClassType eUnitClass)
int (int /*UnitClassTypes*/ eUnitClass)
- INT unitClassDefenseModifier (UnitClassType eUnitClass)
int (int /*UnitClassTypes*/ eUnitClass)
- INT unitCombatModifier (UnitCombatType eUnitCombat)
int (int /*UnitCombatTypes*/ eUnitCombat)
- BOOL upgradeAvailable (UnitType eFromUnit, UnitClassType eToUnitClass, INT iCount)
bool (int /*UnitTypes*/ eFromUnit, int /*UnitClassTypes*/ eToUnitClass, int iCount)
- INT upgradePrice (UnitType eUnit)
int (UnitTypes eUnit)
- INT visibilityRange ()
int ()
- INT withdrawalProbability ()
int ()
- INT workRate (BOOL bMax)
int (bool bMax)