#include <callable_objects.hpp>
Public Types | |
typedef gamemap::location | location |
Public Member Functions | |
unit_callable (const std::pair< location, unit > &pair) | |
const unit & | get_unit () const |
variant | get_value (const std::string &key) const |
void | get_inputs (std::vector< game_logic::formula_input > *inputs) const |
Private Attributes | |
const location & | loc_ |
const unit & | u_ |
Definition at line 140 of file callable_objects.hpp.
Definition at line 142 of file callable_objects.hpp.
Definition at line 143 of file callable_objects.hpp.
const unit& unit_callable::get_unit | ( | ) | const [inline] |
variant unit_callable::get_value | ( | const std::string & | key | ) | const [virtual] |
Implements game_logic::formula_callable.
Definition at line 79 of file callable_objects.cpp.
References unit::can_recruit(), unit::cost(), unit::experience(), unit::formula_vars(), unit::hitpoints(), unit::id(), unit::level(), loc_, unit::max_experience(), unit::max_hitpoints(), unit::movement_left(), unit::side(), unit::total_movement(), unit::type_id(), u_, gamemap::location::x, and gamemap::location::y.
void unit_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 122 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
const location& unit_callable::loc_ [private] |
const unit& unit_callable::u_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |