BWAPI  4.1.2
An API for interacting with Starcraft: Broodwar (1.16.1)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
Public Member Functions | List of all members
BWAPI::DamageType Class Reference
Inheritance diagram for BWAPI::DamageType:
Inheritance graph

Public Member Functions

 DamageType (int id=DamageTypes::Enum::None)
 

Detailed Description

Damage types are used in Broodwar to determine the amount of damage that will be done to a unit.

This corresponds with UnitSizeType to determine the damage done to a unit.

See also
WeaponType, DamageTypes, UnitSizeType

View on Liquipedia
View on Starcraft Campendium (Official Website)
View on Starcraft Wikia

Constructor & Destructor Documentation

BWAPI::DamageType::DamageType ( int  id = DamageTypes::Enum::None)

Expected type constructor.

If the type is an invalid type, then it becomes Types::Unknown. A type is invalid if its value is less than 0 or greater than Types::Unknown.

Parameters
idThe id that corresponds to this type. It is typically an integer value that corresponds to an internal Broodwar type. If the given id is invalid, then it becomes Types::Unknown.