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
lua_callable Class Reference
Inheritance diagram for lua_callable:
Inheritance graph

Public Member Functions

 lua_callable (lua_State *L, int i)
 
variant get_value (const std::string &key) const
 
void get_inputs (std::vector< formula_input > *inputs) const
 
int do_compare (const formula_callable *other) const
 
- Public Member Functions inherited from game_logic::formula_callable
 formula_callable (bool has_self=true)
 
variant query_value (const std::string &key) const
 
void mutate_value (const std::string &key, const variant &value)
 
std::vector< formula_inputinputs () const
 
bool equals (const formula_callable *other) const
 
bool less (const formula_callable *other) const
 
void serialize (std::string &str) const
 
bool has_key (const std::string &key) const
 
- Public Member Functions inherited from reference_counted_object
 reference_counted_object ()
 
 reference_counted_object (const reference_counted_object &)
 
reference_counted_objectoperator= (const reference_counted_object &)
 
virtual ~reference_counted_object ()
 
void add_ref () const
 
void dec_ref () const
 
int refcount () const
 

Private Attributes

lua_StatemState
 
int table_i
 

Additional Inherited Members

- Protected Types inherited from game_logic::formula_callable
enum  TYPE {
  FORMULA_C, TERRAIN_C, LOCATION_C, UNIT_TYPE_C,
  UNIT_C, ATTACK_TYPE_C, MOVE_PARTIAL_C, MOVE_C,
  ATTACK_C, MOVE_MAP_C
}
 
- Protected Member Functions inherited from game_logic::formula_callable
virtual ~formula_callable ()
 
virtual void set_value (const std::string &key, const variant &value)
 
virtual void serialize_to_string (std::string &) const
 
- Protected Member Functions inherited from reference_counted_object
void turn_reference_counting_off () const
 
- Protected Attributes inherited from game_logic::formula_callable
TYPE type_
 

Detailed Description

Definition at line 35 of file lua_formula_bridge.cpp.

Constructor & Destructor Documentation

lua_callable::lua_callable ( lua_State L,
int  i 
)
inline

Definition at line 39 of file lua_formula_bridge.cpp.

Member Function Documentation

int lua_callable::do_compare ( const formula_callable other) const
inlinevirtual
void lua_callable::get_inputs ( std::vector< formula_input > *  inputs) const
inlinevirtual
variant lua_callable::get_value ( const std::string key) const
inlinevirtual

Member Data Documentation

lua_State* lua_callable::mState
private

Definition at line 36 of file lua_formula_bridge.cpp.

Referenced by do_compare().

int lua_callable::table_i
private

Definition at line 37 of file lua_formula_bridge.cpp.

Referenced by do_compare().


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