BWAPI
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions
BWAPI::Error Class Reference

#include <Error.h>

List of all members.

Public Member Functions

 Error ()
 Error (int id)
 Error (const Error &other)
Erroroperator= (const Error &other)
 operator int () const
int getID () const
std::string toString () const

Detailed Description

Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError.


Constructor & Destructor Documentation

BWAPI::Error::Error ( int  id)
BWAPI::Error::Error ( const Error other)

Member Function Documentation

int BWAPI::Error::getID ( ) const

Returns a unique ID for this error.

BWAPI::Error::operator int ( ) const
Error& BWAPI::Error::operator= ( const Error other)
std::string BWAPI::Error::toString ( ) const

Returns the name of the error. For example Errors::Insufficient_Minerals?.toString() will return a std::string object containing "Insufficient Minerals".


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines