|
DamageType
Class header file: BWAPI/DamageType.h Each type of Unit in Starcraft: Broodwar has a particular WeaponType for its ground weapon and air weapon (either of which could be WeaponTypes::None). Each type of Weapon has a particular damage type, which could be explosive, concussive, or something else. Here is the list of all the possible DamageTypes. Methods: Non-member methods in Orders namespace: getIDint getID(); Returns a unique ID for this damage type. getNamestd::string getName(); Returns the name of this damage type. For example DamageTypes::Explosive.getName() will return std::string("Explosive"). getDamageTypeDamageType getDamageType(std::string name); Given the name of a damage type, this will return a corresponding DamageType object. For example, DamageTypes::getDamageType("Concussive") will return DamageTypes::Concussive. allDamageTypesstd::set<DamageType>& allDamageTypes(); Returns the set of all the DamageTypes, which are listed below: DamageTypes
| |