My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
WeaponType  
Updated Apr 14, 2011 by AHein...@gmail.com

Class header file: BWAPI/WeaponType.h

List of all WeaponTypes.

Methods:

Non-member methods in WeaponTypes namespace:

getID

int getID() const;

Returns a unique ID for this weapon type.

getName

std::string getName() const;

Returns the name of the weapon.

getTech

TechType 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.

whatUses

UnitType whatUses() const;

Returns the unit that can use this weapon.

damageAmount

int damageAmount() const;

Returns the amount of damage that this weapon deals per attack.

damageBonus

int damageBonus() const;

damageCooldown

int damageCooldown() const;

Returns the amount of cooldown time between attacks.

damageFactor

int damageFactor() const;

Returns the amount that the damage increases per upgrade

See also: WeaponType::upgradeType.

upgradeType

UpgradeType upgradeType() const;

Returns the upgrade type that can be upgraded to increase the attack damage.

damageType

DamageType damageType() const;

Returns the type of damage that this weapon uses (i.e. concussive, normal, explosive, etc).

explosionType

ExplosionType explosionType() const;

Returns the type of explosion that this weapon uses.

minRange

int 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).

maxRange

int maxRange() const;

Returns the maximum attack range of the weapon, measured in pixels.

innerSplashRadius

int innerSplashRadius() const;

Inner radius used in splash damage calculations.

medianSplashRadius

int medianSplashRadius() const;

Median radius used in splash damage calculations.

outerSplashRadius

int outerSplashRadius() const;

Outer radius used in splash damage calculations.

targetsAir

bool targetsAir() const;

Returns true if this weapon can attack air units.

targetsGround

bool targetsGround() const;

Returns true if this weapon can attack ground units.

targetsMechanical

bool targetsMechanical() const;

targetsOrganic

bool targetsOrganic() const;

targetsNonBuilding

bool targetsNonBuilding() const;

targetsNonRobotic

bool targetsNonRobotic() const;

targetsTerrain

bool targetsTerrain() const;

targetsOrgOrMech

bool targetsOrgOrMech() const;

targetsOwn

bool targetsOwn() const;

getWeaponType

WeaponType getWeaponType(std::string name);

Given the name of a weapon, this will return the corresponding weapon type object.

allWeaponTypes

std::set<WeaponType>& allWeaponTypes();

Returns the set of all the WeaponTypes.

normalWeaponTypes

std::set<WeaponType>& normalWeaponTypes();

Returns the set of all normal weapons in WeaponTypes.

specialWeaponTypes

std::set<WeaponType>& specialWeaponTypes();

Returns the set of all special weapons in WeaponTypes.


Sign in to add a comment
Powered by Google Project Hosting