An API for interacting with Starcraft: Broodwar (1.16.1)
|typedef std::deque< T >||list|
|typedef SetContainer< T >||set|
|Type (int id)|
|const char *||c_str () const|
|int||getID () const|
|const std::string &||getName () const|
|bool||isValid () const|
|operator int () const|
|const std::string &||toString () const|
|static T||getType (std::string name)|
|std::ostream &||operator<< (std::ostream &out, const Type< T, UnknownId > &t)|
|std::wostream &||operator<< (std::wostream &out, const Type< T, UnknownId > &t)|
Base superclass for all BWAPI Types.
|T||The type class that this Type is representing.|
|UnknownId||The enum ID of the unknown entry, which is also treated as the last entry for type validity.|
A set type that contains the current type.
A list type that contains the current type.
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.
|id||The 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.|
|BWAPI::Type< T, UnknownId >::operator int||(||)||const|
Conversion/convenience operator to convert this type to its primitive type.
|int BWAPI::Type< T, UnknownId >::getID||(||)||const|
Retrieves this type's identifier as an integer.
|bool BWAPI::Type< T, UnknownId >::isValid||(||)||const|
Checks if the current type has a valid identifier.
The purpose of this function is to prevent buffer overflows if a type has been handled improperly.
A type is valid if it is between 0 and Unknown (inclusive).
Referenced by BWAPI::Type< T, UnknownId >::getName().
|const char* BWAPI::Type< T, UnknownId >::c_str||(||)||const|
Output stream operator overload.
Allows printing of the type without calling Type::getName.
|out||The destination output stream.|
|t||The type to write as a string.|