The Battle for Wesnoth  1.19.5+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_State * L_
 
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 36 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 41 of file aspect_advancements.cpp.

References n, and ref_.

◆ unit_advancements_aspect() [3/3]

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

Definition at line 53 of file aspect_advancements.cpp.

◆ ~unit_advancements_aspect()

ai::unit_advancements_aspect::~unit_advancements_aspect ( )
virtual

Definition at line 57 of file aspect_advancements.cpp.

References L_, 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

Definition at line 65 of file aspect_advancements.cpp.

References ERR_LUA, L_, LOG_LUA, ref_, utils::split(), and val_.

Referenced by ai::impl_ai_aspect_get().

◆ 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: