The Battle for Wesnoth  1.15.1+dev
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::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_StateL_
 
int ref_
 

Detailed Description

Definition at line 27 of file aspect_advancements.hpp.

Constructor & Destructor Documentation

◆ unit_advancements_aspect() [1/3]

ai::unit_advancements_aspect::unit_advancements_aspect ( )

Definition at line 39 of file aspect_advancements.cpp.

◆ unit_advancements_aspect() [2/3]

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

Definition at line 44 of file aspect_advancements.cpp.

References LUA_REGISTRYINDEX, lua_settop(), luaL_ref(), and ref_.

◆ unit_advancements_aspect() [3/3]

ai::unit_advancements_aspect::unit_advancements_aspect ( const std::string &  val)

Definition at line 56 of file aspect_advancements.cpp.

◆ ~unit_advancements_aspect()

ai::unit_advancements_aspect::~unit_advancements_aspect ( )
virtual

Definition at line 60 of file aspect_advancements.cpp.

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

Member Function Documentation

◆ get_advancements()

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

◆ get_value()

const std::string ai::unit_advancements_aspect::get_value ( ) const

Member Data Documentation

◆ L_

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().

◆ ref_

int ai::unit_advancements_aspect::ref_
private

◆ val_

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: