22 #include "CBot/CBotUtils.h" 24 #include "CBot/CBotDefines.h" 84 typedef bool (*RuntimeFunc)(
CBotVar* args,
CBotVar* result,
int& exception,
void* user);
98 virtual ~CBotExternalCallDefault();
123 bool AddFunction(
const std::string& name, std::unique_ptr<CBotExternalCall> call);
143 bool CheckCall(
const std::string& name);
177 void SetUserPtr(
void* pUser);
185 std::map<std::string, std::unique_ptr<CBotExternalCall>> m_list{};
186 void* m_user =
nullptr;
Class for mangaging CBot external calls.
Definition: CBotExternalCall.h:114
The execution stack.
Definition: CBotStack.h:44
Interface for external CBot calls.
Definition: CBotExternalCall.h:45
virtual CBotTypResult Compile(CBotVar *thisVar, CBotVar *args, void *user)=0
Compile the function.
A CBot variable.
Definition: CBotVar.h:42
Some enum values used across the CBot engine.
The CBotCStack class Management of the stack of compilation.
Definition: CBotCStack.h:35
CBotExternalCall()
Constructor.
Definition: CBotExternalCall.cpp:119
Default implementation of CBot external call, using compilation and runtime functions.
Definition: CBotExternalCall.h:81
Class to define the complete type of a variable.
Definition: CBotTypResult.h:47
CBot engine.
Definition: CBotCallMethode.cpp:28
virtual ~CBotExternalCall()
Destructor.
Definition: CBotExternalCall.cpp:123
virtual bool Run(CBotVar *thisVar, CBotStack *pStack)=0
Execute the function.
Class representing one token of a program.
Definition: CBotToken.h:80