#include <callable_objects.hpp>


Public Member Functions | |
| unit_type_callable (const unit_type &u) | |
| const unit_type & | get_unit_type () const |
| variant | get_value (const std::string &key) const |
| void | get_inputs (std::vector< game_logic::formula_input > *inputs) const |
| int | do_compare (const formula_callable *callable) const |
Private Attributes | |
| const unit_type & | u_ |
Definition at line 171 of file callable_objects.hpp.
| unit_type_callable::unit_type_callable | ( | const unit_type & | u | ) | [inline] |
Definition at line 173 of file callable_objects.hpp.
References game_logic::formula_callable::type_.
| int unit_type_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 343 of file callable_objects.cpp.
References unit_type::id(), and u_.

| void unit_type_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 326 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
| const unit_type& unit_type_callable::get_unit_type | ( | ) | const [inline] |
Definition at line 179 of file callable_objects.hpp.
References u_.
| variant unit_type_callable::get_value | ( | const std::string & | key | ) | const [virtual] |
Implements game_logic::formula_callable.
Definition at line 280 of file callable_objects.cpp.
References unit_type::alignment(), unit_type::alignment_id(), unit_type::attacks(), unit_type::cost(), unit_type::experience_needed(), unit_type::get_ability_list(), unit_type::hitpoints(), unit_type::id(), unit_type::level(), unit_type::movement(), unit_type::not_living(), unit_type::type_name(), u_, and unit_type::usage().

const unit_type& unit_type_callable::u_ [private] |
Definition at line 185 of file callable_objects.hpp.
Referenced by do_compare(), get_unit_type(), and get_value().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:17:44 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |