#include <aspect_advancements.hpp>
Public Member Functions | |
unit_advancements_aspect () | |
unit_advancements_aspect (lua_State *L, int n) | |
unit_advancements_aspect (const std::string &val) | |
const std::vector< std::string > | get_advancements (const unit_map::const_iterator &unit) const |
virtual | ~unit_advancements_aspect () |
const std::string | get_value () const |
Private Attributes | |
std::string | val_ |
lua_State * | L_ |
int | ref_ |
Definition at line 27 of file aspect_advancements.hpp.
ai::unit_advancements_aspect::unit_advancements_aspect | ( | ) |
Definition at line 40 of file aspect_advancements.cpp.
Definition at line 45 of file aspect_advancements.cpp.
References LUA_REGISTRYINDEX, lua_settop(), luaL_ref(), and ref_.
ai::unit_advancements_aspect::unit_advancements_aspect | ( | const std::string & | val | ) |
Definition at line 57 of file aspect_advancements.cpp.
|
virtual |
Definition at line 61 of file aspect_advancements.cpp.
References L_, LUA_REGISTRYINDEX, luaL_unref(), and ref_.
const std::vector< std::string > ai::unit_advancements_aspect::get_advancements | ( | const unit_map::const_iterator & | unit | ) | const |
Definition at line 69 of file aspect_advancements.cpp.
References ERR_LUA, L_, LOG_LUA, lua_isfunction, lua_isstring(), lua_pcall, lua_pop, lua_pushinteger(), lua_rawgeti(), LUA_REFNIL, LUA_REGISTRYINDEX, lua_tostring, ref_, utils::split(), val_, and unit_map::iterator_base< iter_types >::valid().
Referenced by ai::impl_ai_aspect_get().
const std::string ai::unit_advancements_aspect::get_value | ( | ) | const |
Definition at line 138 of file aspect_advancements.cpp.
References val_.
Referenced by ai::config_value_translator< unit_advancements_aspect >::value_to_cfg().
|
private |
Definition at line 39 of file aspect_advancements.hpp.
Referenced by get_advancements(), and ~unit_advancements_aspect().
|
private |
Definition at line 40 of file aspect_advancements.hpp.
Referenced by get_advancements(), unit_advancements_aspect(), and ~unit_advancements_aspect().
|
private |
Definition at line 38 of file aspect_advancements.hpp.
Referenced by get_advancements(), and get_value().