Class to switch current mode to Execute Mode. More...
#include <ai_execmode.hpp>
Public Member Functions | |
AIExecMode () | |
Creating instance of this class switches the build mode to Execute. | |
~AIExecMode () | |
Destroying this instance reset the building mode to the mode it was in when the instance was created. | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. | |
Static Protected Member Functions | |
static bool | ModeProc () |
The callback proc for Execute mode. | |
Private Attributes | |
AIModeProc * | last_mode |
AIObject * | last_instance |
Class to switch current mode to Execute Mode.
If you create an instance of this class, the mode will be switched to Execute. The original mode is stored and recovered from when ever the instance is destroyed. In Execute mode all commands you do are executed for real.
Definition at line 24 of file ai_execmode.hpp.
AIExecMode::AIExecMode | ( | ) |
Creating instance of this class switches the build mode to Execute.
Definition at line 25 of file ai_execmode.cpp.
References AIObject::GetDoCommandMode(), AIObject::GetDoCommandModeInstance(), ModeProc(), and AIObject::SetDoCommandMode().
static const char* AIExecMode::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Definition at line 27 of file ai_execmode.hpp.