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
unit_formula_manager Class Reference

#include <formula_manager.hpp>

Public Member Functions

 unit_formula_manager ()
 
 unit_formula_manager (const unit_formula_manager &o)
 
const
game_logic::map_formula_callable_ptr
formula_vars () const
 
void add_formula_var (std::string str, variant var)
 
bool has_formula () const
 
bool has_loop_formula () const
 
bool has_priority_formula () const
 
const std::stringget_formula () const
 
const std::stringget_loop_formula () const
 
const std::stringget_priority_formula () const
 
void read (const config &ai)
 
void write (config &cfg)
 

Private Attributes

std::string unit_formula_
 
std::string unit_loop_formula_
 
std::string unit_priority_formula_
 
game_logic::map_formula_callable_ptr formula_vars_
 

Detailed Description

Definition at line 27 of file formula_manager.hpp.

Constructor & Destructor Documentation

unit_formula_manager::unit_formula_manager ( )
inline

Definition at line 29 of file formula_manager.hpp.

unit_formula_manager::unit_formula_manager ( const unit_formula_manager o)
inline

Definition at line 30 of file formula_manager.hpp.

Member Function Documentation

void unit_formula_manager::add_formula_var ( std::string  str,
variant  var 
)

Definition at line 24 of file formula_manager.cpp.

References formula_vars_.

const game_logic::map_formula_callable_ptr& unit_formula_manager::formula_vars ( ) const
inline

Definition at line 37 of file formula_manager.hpp.

References formula_vars_.

Referenced by unit_callable::get_value().

const std::string& unit_formula_manager::get_formula ( ) const
inline

Definition at line 42 of file formula_manager.hpp.

References unit_formula_.

const std::string& unit_formula_manager::get_loop_formula ( ) const
inline

Definition at line 43 of file formula_manager.hpp.

References unit_loop_formula_.

const std::string& unit_formula_manager::get_priority_formula ( ) const
inline

Definition at line 44 of file formula_manager.hpp.

References unit_priority_formula_.

bool unit_formula_manager::has_formula ( ) const
inline

Definition at line 39 of file formula_manager.hpp.

References unit_formula_.

Referenced by write().

bool unit_formula_manager::has_loop_formula ( ) const
inline

Definition at line 40 of file formula_manager.hpp.

References unit_loop_formula_.

Referenced by write().

bool unit_formula_manager::has_priority_formula ( ) const
inline

Definition at line 41 of file formula_manager.hpp.

References unit_priority_formula_.

Referenced by write().

void unit_formula_manager::read ( const config ai)
void unit_formula_manager::write ( config cfg)

Member Data Documentation

game_logic::map_formula_callable_ptr unit_formula_manager::formula_vars_
private

Definition at line 53 of file formula_manager.hpp.

Referenced by add_formula_var(), formula_vars(), read(), and write().

std::string unit_formula_manager::unit_formula_
private

Definition at line 50 of file formula_manager.hpp.

Referenced by get_formula(), has_formula(), read(), and write().

std::string unit_formula_manager::unit_loop_formula_
private

Definition at line 51 of file formula_manager.hpp.

Referenced by get_loop_formula(), has_loop_formula(), read(), and write().

std::string unit_formula_manager::unit_priority_formula_
private

Definition at line 52 of file formula_manager.hpp.

Referenced by get_priority_formula(), has_priority_formula(), read(), and write().


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