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

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:

getID

int getID();

Returns a unique ID for this damage type.

getName

std::string getName();

Returns the name of this damage type. For example DamageTypes::Explosive.getName() will return std::string("Explosive").

getDamageType

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

allDamageTypes

std::set<DamageType>& allDamageTypes();

Returns the set of all the DamageTypes, which are listed below:

DamageTypes

  • Concussive
  • Explosive
  • Ignore_Armor
  • Independent
  • Normal
  • None
  • Unknown

Sign in to add a comment
Powered by Google Project Hosting