Skip to content

Abstract Unit Types

Actual values might differ from person to person

Abstract unit types are defined right after the end of protounits in the proto XML file. Since mods can add or remove units, unit type IDs can change. That is why there is no value here.

Abstract Unit Types
extern const int cUnitTypeUnit;
extern const int cUnitTypeShip;
extern const int cUnitTypeBuilding;
extern const int cUnitTypeMilitaryBuilding;
extern const int cUnitTypeEconomicBuilding;
extern const int cUnitTypeDropsite;
extern const int cUnitTypeResource;
extern const int cUnitTypeHuntedResource;
extern const int cUnitTypeMinedResource;
extern const int cUnitTypeLandResource;
extern const int cUnitTypeWaterResource;
extern const int cUnitTypeProjectile;
extern const int cUnitTypeNature;
extern const int cUnitTypeSpecialPowers;
extern const int cUnitTypeUnattackable;
extern const int cUnitTypeAbstractTemple;
extern const int cUnitTypeMilitary;
extern const int cUnitTypeHero;
extern const int cUnitTypeTree;
extern const int cUnitTypeAbstractInfantry;
extern const int cUnitTypeAbstractCavalry;
extern const int cUnitTypeAbstractArcher;
extern const int cUnitTypeAbstractVillager;
extern const int cUnitTypeAbstractFarm;
extern const int cUnitTypeAbstractDock;
extern const int cUnitTypeInventoryHolder;
extern const int cUnitTypeInventoryItem;
extern const int cUnitTypeUseableItem;
extern const int cUnitTypeStrengthBonus;
extern const int cUnitTypeTradeableTo;
extern const int cUnitTypeTradeableFrom;
extern const int cUnitTypeAbstractSiegeWeapon;
extern const int cUnitTypeFlyingUnit;
extern const int cUnitTypeMythUnit;
extern const int cUnitTypeEconomic;
extern const int cUnitTypeRanged;
extern const int cUnitTypeFastSpeed;
extern const int cUnitTypeAverageSpeed;
extern const int cUnitTypeSlowSpeed;
extern const int cUnitTypeGeneric;
extern const int cUnitTypeUnitClass;
extern const int cUnitTypeBuildingClass;
extern const int cUnitTypeNatureClass;
extern const int cUnitTypeEmbellishmentClass;
extern const int cUnitTypeTestClass;
extern const int cUnitTypeE3Class;
extern const int cUnitTypeAll;
extern const int cUnitTypeActionGather;
extern const int cUnitTypeActionTrain;
extern const int cUnitTypeActionBuild;
extern const int cUnitTypeActionAttack;
extern const int cUnitTypeActionTrickle;
extern const int cUnitTypeFish;
extern const int cUnitTypeTransport;
extern const int cUnitTypeAbstractWall;
extern const int cUnitTypeHerdable;
extern const int cUnitTypeAbstractSettlement;
extern const int cUnitTypeBuildingsThatShoot;
extern const int cUnitTypeMythUnitGodPower;
extern const int cUnitTypeParticipatesInBattlecries;
extern const int cUnitTypeAffectedByTownBell;
extern const int cUnitTypeMinimapFilterMilitary;
extern const int cUnitTypeMinimapFilterEconomic;
extern const int cUnitTypeTradeUnit;
extern const int cUnitTypeHealable;
extern const int cUnitTypeFavoriteUnit;
extern const int cUnitTypeRailroadUnit;
extern const int cUnitTypeAbstractRailroadStation;
extern const int cUnitTypeAbstractFort;
extern const int cUnitTypeAbstractImperialArmy;
extern const int cUnitTypeAbstractResourceCrate;
extern const int cUnitTypeAbstractArtillery;
extern const int cUnitTypeAbstractCavalryInfantry;
extern const int cUnitTypeAbstractPet;
extern const int cUnitTypeConvertsHerds;
extern const int cUnitTypeSocket;
extern const int cUnitTypeAircraft;
extern const int cUnitTypeAbstractLightInfantry;
extern const int cUnitTypeAbstractHeavyCavalry;
extern const int cUnitTypeHuntable;
extern const int cUnitTypeGuardian;
extern const int cUnitTypeAbstractSiegeTrooper;
extern const int cUnitTypeAbstractCommunityPlaza;
extern const int cUnitTypeAbstractCanSeeStealth;
extern const int cUnitTypeMercenary;
extern const int cUnitTypeAbstractWarShip;
extern const int cUnitTypeAbstractLightCavalry;
extern const int cUnitTypeAbstractTradeMarket;
extern const int cUnitTypeAbstractShrine;
extern const int cUnitTypeAbstractWonder;
extern const int cUnitTypeAbstractTypeHuntableMagnet;
extern const int cUnitTypeAbstractTypeHerdableMagnet;
extern const int cUnitTypeAbstractBannerArmy;
extern const int cUnitTypeAbstractMonk;
extern const int cUnitTypeAbstractZamburak;
extern const int cUnitTypeAbstractSepoy;
extern const int cUnitTypeAbstractRajput;
extern const int cUnitTypeAbstractUrumi;
extern const int cUnitTypeAbstractSowar;
extern const int cUnitTypeAbstractMahout;
extern const int cUnitTypeAbstractHowdah;
extern const int cUnitTypeAbstractMercFlailiphant;
extern const int cUnitTypeAbstractSiegeElephant;
extern const int cUnitTypeTrade;
extern const int cUnitTypeXP;
extern const int cUnitTypeAbstractDaimyo;
extern const int cUnitTypeAbstractElephant;
extern const int cUnitTypeAbstractCamel;
extern const int cUnitTypeAbstractMilitaryWonder;
extern const int cUnitTypeAbstractPoliticalWonder;
extern const int cUnitTypeAbstractReligiousWonder;
extern const int cUnitTypeAbstractHandElephant;
extern const int cUnitTypeAbstractGurkha;
extern const int cUnitTypeAbstractMansabdar;
extern const int cUnitTypeAbstractChineseMonk;
extern const int cUnitTypeAbstractGunpowderTrooper;
extern const int cUnitTypeAbstractHandInfantry;
extern const int cUnitTypeAbstractHeavyInfantry;
extern const int cUnitTypeAbstractNativeWarrior;
extern const int cUnitTypeAbstractRangedInfantry;
extern const int cUnitTypeAbstractRangedCavalry;
extern const int cUnitTypeAbstractHandCavalry;
extern const int cUnitTypeAbstractGunpowderCavalry;
extern const int cUnitTypeAbstractFishingBoat;
extern const int cUnitTypeGiantBuddha;
extern const int cUnitTypeWaterGuardian;
extern const int cUnitTypeCannotConvertHill;
extern const int cUnitTypeAbstractJapaneseMonk;
extern const int cUnitTypeFame;
extern const int cUnitTypeAbstractFoodCrate;
extern const int cUnitTypeAbstractWoodCrate;
extern const int cUnitTypeAbstractCoinCrate;
extern const int cUnitTypeAbstractGrenadier;
extern const int cUnitTypeAbstractDoubleVillager;
extern const int cUnitTypeAbstractInfiniteCrate;
extern const int cUnitTypeGold;
extern const int cUnitTypeAnimalPrey;
extern const int cUnitTypeFood;
extern const int cUnitTypeWood;
extern const int cUnitTypeFoodDropsite;
extern const int cUnitTypeHack;
extern const int cUnitTypeWoodDropsite;
extern const int cUnitTypeGoldDropsite;
extern const int cUnitTypeLogicalTypeVillagersRespondToAttack;
extern const int cUnitTypeLogicalTypeHandUnitsAutoAttack;
extern const int cUnitTypeLogicalTypeVillagersAttack;
extern const int cUnitTypeLogicalTypeNeededForVictory;
extern const int cUnitTypeLogicalTypeAffectedByTownBell;
extern const int cUnitTypeNativeBuilding;
extern const int cUnitTypeAbstractHouse;
extern const int cUnitTypeLogicalTypeEasySelectAvoid;
extern const int cUnitTypeColonyBuilding;
extern const int cUnitTypeLogicalTypeLandMilitary;
extern const int cUnitTypeLogicalTypeNavalMilitary;
extern const int cUnitTypeLogicalTypeGarrisonInShips;
extern const int cUnitTypeAbstractPikeman;
extern const int cUnitTypeAbstractMine;
extern const int cUnitTypeLifespanUnit;
extern const int cUnitTypeTradePostSocket;
extern const int cUnitTypeNativeSocket;
extern const int cUnitTypeHasBountyValue;
extern const int cUnitTypeAbstractLancer;
extern const int cUnitTypeValidIdleVillager;
extern const int cUnitTypeMercType2;
extern const int cUnitTypeMercType3;
extern const int cUnitTypeMercType4;
extern const int cUnitTypeMercType5;
extern const int cUnitTypeVictoryPointBuilding;
extern const int cUnitTypeLogicalTypeBuildingsNotWalls;
extern const int cUnitTypeLogicalTypeValidSPCUnitsDeadCondition;
extern const int cUnitTypeAbstractTownCenter;
extern const int cUnitTypeLogicalTypeTCBuildLimit;
extern const int cUnitTypeCountsTowardEconomicScore;
extern const int cUnitTypeCountsTowardMilitaryScore;
extern const int cUnitTypeLogicalTypeRangedUnitsAttack;
extern const int cUnitTypeLogicalTypeRangedUnitsAutoAttack;
extern const int cUnitTypeLogicalTypeHandUnitsAttack;
extern const int cUnitTypeLogicalTypeValidSharpshoot;
extern const int cUnitTypeAbstractFruit;
extern const int cUnitTypeAbstractNugget;
extern const int cUnitTypeMercType1;
extern const int cUnitTypeLogicalTypeMinimapFilterEconomic;
extern const int cUnitTypeLogicalTypeMinimapFilterMilitary;
extern const int cUnitTypeLogicalTypeScout;
extern const int cUnitTypeLogicalTypeShipsAndBuildings;
extern const int cUnitTypeLogicalTypeHealed;
extern const int cUnitTypeAbstractWagon;
extern const int cUnitTypeAbstractWhale;
extern const int cUnitTypeAbstractFish;
extern const int cUnitTypeAbstractHandSiege;
extern const int cUnitTypeAbstractIndianMonk;
extern const int cUnitTypeAbstractJunk;
extern const int cUnitTypeAbstractConsulateUnit;
extern const int cUnitTypeAbstractConsulateSiegeFortress;
extern const int cUnitTypeAbstractConsulateSiegeIndustrial;
extern const int cUnitTypeAbstractAgraFort;
extern const int cUnitTypeAbstractWokou;
extern const int cUnitTypeAbstractIrregular;
extern const int cUnitTypeAbstractCaptureable;
extern const int cUnitTypeAbstractBarracks2;
extern const int cUnitTypeAbstractStables;
extern const int cUnitTypeAbstractFoundry;
extern const int cUnitTypeAbstractConsulateUnitColonial;
extern const int cUnitTypeAbstractCoyoteMan;
extern const int cUnitTypeWater;
extern const int cUnitTypeAbstractNuggetLand;
extern const int cUnitTypeAbstractNuggetWater;
extern const int cUnitTypeLogicalTypeValidSabotage;
extern const int cUnitTypeAbstractPig;
extern const int cUnitTypeLogicalTypeBuildingsNotWallsOrGroves;
extern const int cUnitTypeAbstractHealer;
extern const int cUnitTypeAbstractDinghy;
extern const int cUnitTypeAbstractBank;
extern const int cUnitTypeAbstractChurch;
extern const int cUnitTypeAbstractMercenaryBuilding;
extern const int cUnitTypeAbstractFindBarracks;
extern const int cUnitTypeAbstractFindFort;
extern const int cUnitTypeAbstractOutpost;
extern const int cUnitTypeAbstractTradingPost;
extern const int cUnitTypeAbstractFindOtherMilitaryBuilding;
extern const int cUnitTypeAbstractFindOtherEconomicBuilding;
extern const int cUnitTypeAbstractFindMilitaryWonder;
extern const int cUnitTypeAbstractFindEconomicWonder;
extern const int cUnitTypeAbstractFindScout;
extern const int cUnitTypeLogicalTypeLandEconomy;
extern const int cUnitTypeAbstractBerryBush;
extern const int cUnitTypeAnimalGuardian;
extern const int cUnitTypeExclusiveUniqueUnit;
extern const int cUnitTypeAbstractRangedHeavyCavalry;
extern const int cUnitTypeAbstractFindHealer;
extern const int cUnitTypeAbstractMarket;
extern const int cUnitTypeAbstractGatherAfterBuild;
extern const int cUnitTypeAbstractCallMinutemen;
extern const int cUnitTypeAbstractRifleman;
extern const int cUnitTypeAbstractFootArcher;
extern const int cUnitTypeAbstractMusketeer;
extern const int cUnitTypeAbstractOutlaw;
extern const int cUnitTypeAbstractArchaicInfantry;
extern const int cUnitTypeLogicalTypeSettlerBuildLimit;
extern const int cUnitTypeLogicalTypePickableMerc;
extern const int cUnitTypeAbstractXPCrate;
extern const int cUnitTypeLogicalTypePickableOutlaw;
extern const int cUnitTypeHCGatherPointPri1;
extern const int cUnitTypeHCGatherPointPri2;
extern const int cUnitTypeHCGatherPointPri3;
extern const int cUnitTypeInfluence;
extern const int cUnitTypeAbstractLivestockMarket;
extern const int cUnitTypeAbstractField;
extern const int cUnitTypeAbstractAfricanHero;
extern const int cUnitTypeCapturableTradingPost;
extern const int cUnitTypeExcludeFromRansom;
extern const int cUnitTypeAbstractEmpowerer;
extern const int cUnitTypeAbstractCaprine;
extern const int cUnitTypeAbstractBovine;
extern const int cUnitTypeAbstractTradeCrate;
extern const int cUnitTypeAbstractTradeFoodCrate;
extern const int cUnitTypeAbstractTradeWoodCrate;
extern const int cUnitTypeAbstractTradeCoinCrate;
extern const int cUnitTypeDrawsGatherers;
extern const int cUnitTypeColonialMercenary;
extern const int cUnitTypeFortressMercenary;
extern const int cUnitTypeIndustrialMercenary;
extern const int cUnitTypeEconomicUnit;
extern const int cUnitTypeAbstractCallRaiders;
extern const int cUnitTypeAbstractAbusGun;
extern const int cUnitTypeAbstractCountAsGatherer;
extern const int cUnitTypeLogicalTypeAccumulateMinedResources;
extern const int cUnitTypeAbstractBerberNomad;
extern const int cUnitTypeAbstractLightHandInfantry;
extern const int cUnitTypeAbstractMeleeSkirmisher;
extern const int cUnitTypeNone;
extern const int cUnitTypeAbstractMapControlBuilding;
extern const int cUnitTypeLogicalTypeInfantryVolleyTactic;
extern const int cUnitTypeAbstractRangedShockInfantry;
extern const int cUnitTypeCountsTowardEconomyModeScore;
extern const int cUnitTypeLogicalTypeValidSPCBuildingsDeadCondition;
extern const int cUnitTypeAbstractHandInfantryMerc;
extern const int cUnitTypeAbstractHandCavalryMerc;
extern const int cUnitTypeAgeUpBuilding;
extern const int cUnitTypeAbstractFreeBuilder;
extern const int cUnitTypeCapturableSocket;
extern const int cUnitTypeLogicalTypeRangedUnitsAutoAttackNoVillagers;
extern const int cUnitTypeInvestmentBuilding;
extern const int cUnitTypeTowerSocket;
extern const int cUnitTypeAbstractSPCVillageBuilding;
extern const int cUnitTypeValidColonyBuilding;
extern const int cUnitTypeAbstractSkirmisher;
extern const int cUnitTypeAbstractCounterSkirmisher;
extern const int cUnitTypeAbstractBasilicaUnit;
extern const int cUnitTypeLogicalTypePickableMercOutlaw;
extern const int cUnitTypeAbstractSPCEuroTower;
extern const int cUnitTypeDisplayAbilitiesOnHUD;
extern const int cUnitTypeAbstractDefensiveBuilding;
extern const int cUnitTypeLogicalTypeBuildingsHasRangedAttack;
extern const int cUnitTypeLogicalTypeBuildingsNoRangedAttack;
extern const int cUnitTypeLogicalTypeMalteseCivBonus;
extern const int cUnitTypeAbstractCrossbowman;
extern const int cUnitTypeLogicalTypeAffectedByVillagerUpgrades;
extern const int cUnitTypeLogicalTypeMalteseCivBonusArtilleryAndShips;
extern const int cUnitTypeLogicalTypeImmuneToSharpshoot;
extern const int cUnitTypeLogicalTypeMalteseCivBonusHealsWhenIdle;
extern const int cUnitTypeAbstractMountainMonastery;
extern const int cUnitTypeAbstractFishOrWhale;
extern const int cUnitTypeAbstractFarmBuilding;
extern const int cUnitTypeLogicalTypeRomanTactics;
extern const int cUnitTypeBuildsWonders;
extern const int cUnitTypeMilitaryProductionBuilding;
extern const int cUnitTypeAbstractTorp;
extern const int cUnitTypeLogicalTypeImprovedByWaterCeremony;
extern const int cUnitTypeAbstractConsulate;
extern const int cUnitTypeAbstractResourceEnclosure;