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
game_logic::user_formula_function Class Reference

#include <function.hpp>

Inheritance diagram for game_logic::user_formula_function:
Inheritance graph

Public Member Functions

 user_formula_function (const std::string &name, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &args)
 
function_expression_ptr generate_function_expression (const std::vector< expression_ptr > &args) const
 
- Public Member Functions inherited from game_logic::formula_function
 formula_function (const std::string name)
 
virtual ~formula_function ()
 

Private Attributes

const_formula_ptr formula_
 
const_formula_ptr precondition_
 
std::vector< std::stringargs_
 

Additional Inherited Members

- Protected Attributes inherited from game_logic::formula_function
std::string name_
 

Detailed Description

Definition at line 109 of file function.hpp.

Constructor & Destructor Documentation

game_logic::user_formula_function::user_formula_function ( const std::string name,
const_formula_ptr  formula,
const_formula_ptr  precondition,
const std::vector< std::string > &  args 
)
inline

Definition at line 114 of file function.hpp.

Member Function Documentation

function_expression_ptr game_logic::user_formula_function::generate_function_expression ( const std::vector< expression_ptr > &  args) const
virtual

Member Data Documentation

std::vector<std::string> game_logic::user_formula_function::args_
private

Definition at line 112 of file function.hpp.

Referenced by generate_function_expression().

const_formula_ptr game_logic::user_formula_function::formula_
private

Definition at line 110 of file function.hpp.

Referenced by generate_function_expression().

const_formula_ptr game_logic::user_formula_function::precondition_
private

Definition at line 111 of file function.hpp.

Referenced by generate_function_expression().


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