BWAPI
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions
BWAPI::WeaponType Class Reference

#include <WeaponType.h>

List of all members.

Public Member Functions

 WeaponType ()
 WeaponType (int id)
 WeaponType (const WeaponType &other)
WeaponTypeoperator= (const WeaponType &other)
 operator int () const
int getID () const
std::string getName () const
TechType getTech () const
UnitType whatUses () const
int damageAmount () const
int damageBonus () const
int damageCooldown () const
int damageFactor () const
UpgradeType upgradeType () const
DamageType damageType () const
ExplosionType explosionType () const
int minRange () const
int maxRange () const
int innerSplashRadius () const
int medianSplashRadius () const
int outerSplashRadius () const
bool targetsAir () const
bool targetsGround () const
bool targetsMechanical () const
bool targetsOrganic () const
bool targetsNonBuilding () const
bool targetsNonRobotic () const
bool targetsTerrain () const
bool targetsOrgOrMech () const
bool targetsOwn () const

Constructor & Destructor Documentation


Member Function Documentation

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

Returns the amount of cooldown time between attacks.

Returns the amount that the damage increases per upgrade.

See also:
WeaponType::upgradeType.

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

Returns the type of explosion that this weapon uses.

int BWAPI::WeaponType::getID ( ) const

Returns a unique ID for this weapon type.

std::string BWAPI::WeaponType::getName ( ) const

Returns the name of the weapon.

Returns the tech type that must be researched before this weapon can be used, or TechTypes::None if no tech type is required.

Inner radius used in splash damage calculations.

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

Median radius used in splash damage calculations.

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

BWAPI::WeaponType::operator int ( ) const
WeaponType& BWAPI::WeaponType::operator= ( const WeaponType other)

Outer radius used in splash damage calculations.

Returns true if this weapon can attack air units.

Returns true if this weapon can attack ground units.

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

Returns the unit that can use this weapon.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines