A throw-class that is given when the VM wants to suspend. More...
#include <ai_instance.hpp>
Public Member Functions | |
AI_VMSuspend (int time, AISuspendCallbackProc *callback) | |
Create the suspend exception. | |
int | GetSuspendTime () |
Get the amount of ticks the AI should be suspended. | |
AISuspendCallbackProc * | GetSuspendCallback () |
Get the callback to call when the AI can run again. | |
Private Attributes | |
int | time |
Amount of ticks to suspend the AI. | |
AISuspendCallbackProc * | callback |
Callback function to call when the AI can run again. |
A throw-class that is given when the VM wants to suspend.
Definition at line 25 of file ai_instance.hpp.
AI_VMSuspend::AI_VMSuspend | ( | int | time, | |
AISuspendCallbackProc * | callback | |||
) | [inline] |
Create the suspend exception.
time | The amount of ticks to suspend. | |
callback | The callback to call when the AI may resume again. |
Definition at line 32 of file ai_instance.hpp.
AISuspendCallbackProc* AI_VMSuspend::GetSuspendCallback | ( | ) | [inline] |
Get the callback to call when the AI can run again.
Definition at line 47 of file ai_instance.hpp.
References callback.
Referenced by AIInstance::GameLoop().
int AI_VMSuspend::GetSuspendTime | ( | ) | [inline] |
Get the amount of ticks the AI should be suspended.
Definition at line 41 of file ai_instance.hpp.
References time.
Referenced by AIInstance::GameLoop().