#include <callable_objects.hpp>
Public Types | |
typedef gamemap::location | location |
Public Member Functions | |
terrain_callable (const terrain_type &t, const location loc) | |
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 terrain_type & | t_ |
Definition at line 48 of file callable_objects.hpp.
Definition at line 50 of file callable_objects.hpp.
terrain_callable::terrain_callable | ( | const terrain_type & | t, | |
const location | loc | |||
) | [inline] |
Definition at line 51 of file callable_objects.hpp.
variant terrain_callable::get_value | ( | const std::string & | key | ) | const [virtual] |
Implements game_logic::formula_callable.
Definition at line 140 of file callable_objects.cpp.
References terrain_type::id(), loc_, t_, gamemap::location::x, and gamemap::location::y.
void terrain_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 154 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
const location terrain_callable::loc_ [private] |
const terrain_type& terrain_callable::t_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |