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::ExplosionType Class Reference
Inheritance diagram for BWAPI::ExplosionType:
Inheritance graph

Public Member Functions

 ExplosionType (int id=ExplosionTypes::Enum::None)

Detailed Description

A representation of a weapon's explosion type.

This indicates how the weapon behaves, such as if it deals splash damage or causes an effect to occur.

See also

Constructor & Destructor Documentation

BWAPI::ExplosionType::ExplosionType ( int  id = ExplosionTypes::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.

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.