|
WeaponType
Class header file: BWAPI/WeaponType.h List of all WeaponTypes. Methods:
Non-member methods in WeaponTypes namespace: getIDint getID() const; Returns a unique ID for this weapon type. getNamestd::string getName() const; Returns the name of the weapon. getTechTechType getTech() const; Returns the tech type that must be researched before this weapon can be used, or TechTypes::None if no tech type is required. whatUsesUnitType whatUses() const; Returns the unit that can use this weapon. damageAmountint damageAmount() const; Returns the amount of damage that this weapon deals per attack. damageBonusint damageBonus() const; damageCooldownint damageCooldown() const; Returns the amount of cooldown time between attacks. damageFactorint damageFactor() const; Returns the amount that the damage increases per upgrade See also: WeaponType::upgradeType. upgradeTypeUpgradeType upgradeType() const; Returns the upgrade type that can be upgraded to increase the attack damage. damageTypeDamageType damageType() const; Returns the type of damage that this weapon uses (i.e. concussive, normal, explosive, etc). explosionTypeExplosionType explosionType() const; Returns the type of explosion that this weapon uses. minRangeint minRange() const; Returns the minimum attack range of the weapon, measured in pixels, 0 for most things except WeaponTypes::Arclite_Shock_Cannon (the weapon of the Terran Siege Tank in Siege Mode). maxRangeint maxRange() const; Returns the maximum attack range of the weapon, measured in pixels. innerSplashRadiusint innerSplashRadius() const; Inner radius used in splash damage calculations. medianSplashRadiusint medianSplashRadius() const; Median radius used in splash damage calculations. outerSplashRadiusint outerSplashRadius() const; Outer radius used in splash damage calculations. targetsAirbool targetsAir() const; Returns true if this weapon can attack air units. targetsGroundbool targetsGround() const; Returns true if this weapon can attack ground units. targetsMechanicalbool targetsMechanical() const; targetsOrganicbool targetsOrganic() const; targetsNonBuildingbool targetsNonBuilding() const; targetsNonRoboticbool targetsNonRobotic() const; targetsTerrainbool targetsTerrain() const; targetsOrgOrMechbool targetsOrgOrMech() const; targetsOwnbool targetsOwn() const; getWeaponTypeWeaponType getWeaponType(std::string name); Given the name of a weapon, this will return the corresponding weapon type object. allWeaponTypesstd::set<WeaponType>& allWeaponTypes(); Returns the set of all the WeaponTypes. normalWeaponTypesstd::set<WeaponType>& normalWeaponTypes(); Returns the set of all normal weapons in WeaponTypes. specialWeaponTypesstd::set<WeaponType>& specialWeaponTypes(); Returns the set of all special weapons in WeaponTypes. | |