Proxy table for the AI context. More...
#include <core.hpp>
Public Member Functions | |
~lua_ai_context () | |
void | update_state () |
void | get_persistent_data (config &) const |
void | set_persistent_data (const config &) |
void | get_arguments (config &) const |
void | set_arguments (const config &) |
void | push_ai_table () |
void | apply_micro_ai (const config &cfg) |
Static Public Member Functions | |
static void | init (lua_State *L) |
Private Member Functions | |
lua_ai_context (lua_State *l, int num, int side) | |
Static Private Member Functions | |
static lua_ai_context * | create (lua_State *L, char const *code, engine_lua *engine) |
Private Attributes | |
lua_State * | L |
int | num_ |
int | side_ |
Friends | |
class | ::game_lua_kernel |
class | lua_ai_load |
|
inlineprivate |
ai::lua_ai_context::~lua_ai_context | ( | ) |
void ai::lua_ai_context::apply_micro_ai | ( | const config & | cfg | ) |
Definition at line 971 of file core.cpp.
References L, luaW_getglobal(), luaW_pcall(), and luaW_pushconfig().
|
staticprivate |
Definition at line 978 of file core.cpp.
References ERR_LUA, ai::generate_and_push_ai_state(), ai::engine::get_readonly_context(), ai::side_context::get_side(), L, and lua_ai_context().
Referenced by game_lua_kernel::create_lua_ai_context().
void ai::lua_ai_context::get_arguments | ( | config & | cfg | ) | const |
void ai::lua_ai_context::get_persistent_data | ( | config & | cfg | ) | const |
|
static |
Definition at line 53 of file core.cpp.
Referenced by game_lua_kernel::game_lua_kernel().
void ai::lua_ai_context::set_arguments | ( | const config & | cfg | ) |
void ai::lua_ai_context::set_persistent_data | ( | const config & | cfg | ) |
void ai::lua_ai_context::update_state | ( | ) |
Definition at line 999 of file core.cpp.
References L, and luaW_pcall().
|
friend |
|
friend |
|
private |
Definition at line 36 of file core.hpp.
Referenced by apply_micro_ai(), create(), get_arguments(), get_persistent_data(), init(), set_arguments(), set_persistent_data(), update_state(), and ~lua_ai_context().
|
private |
Definition at line 37 of file core.hpp.
Referenced by get_arguments(), get_persistent_data(), ai::lua_ai_load::lua_ai_load(), set_arguments(), set_persistent_data(), and ~lua_ai_context().