The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
ai::unit_advancements_aspect Class Reference

#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::stringget_advancements (const unit_map::const_iterator &unit) const
 
virtual ~unit_advancements_aspect ()
 
const std::string get_value () const
 

Private Attributes

std::string val_
 
lua_StateL_
 
int ref_
 

Detailed Description

Definition at line 27 of file aspect_advancements.hpp.

Constructor & Destructor Documentation

ai::unit_advancements_aspect::unit_advancements_aspect ( )

Definition at line 40 of file aspect_advancements.cpp.

ai::unit_advancements_aspect::unit_advancements_aspect ( lua_State L,
int  n 
)

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.

ai::unit_advancements_aspect::~unit_advancements_aspect ( )
virtual

Definition at line 61 of file aspect_advancements.cpp.

References L_, LUA_REGISTRYINDEX, luaL_unref(), and ref_.

Member Function Documentation

const std::vector< std::string > ai::unit_advancements_aspect::get_advancements ( const unit_map::const_iterator unit) const
const std::string ai::unit_advancements_aspect::get_value ( ) const

Member Data Documentation

lua_State* ai::unit_advancements_aspect::L_
private

Definition at line 39 of file aspect_advancements.hpp.

Referenced by get_advancements(), and ~unit_advancements_aspect().

int ai::unit_advancements_aspect::ref_
private
std::string ai::unit_advancements_aspect::val_
private

Definition at line 38 of file aspect_advancements.hpp.

Referenced by get_advancements(), and get_value().


The documentation for this class was generated from the following files: