#include <callable_objects.hpp>


Public Types | |
| typedef map_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 |
| int | do_compare (const formula_callable *callable) const |
Private Attributes | |
| const location | loc_ |
| const terrain_type & | t_ |
Definition at line 65 of file callable_objects.hpp.
Definition at line 67 of file callable_objects.hpp.
| terrain_callable::terrain_callable | ( | const terrain_type & | t, | |
| const location & | loc | |||
| ) | [inline] |
Definition at line 68 of file callable_objects.hpp.
References game_logic::formula_callable::type_.
| int terrain_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 376 of file callable_objects.cpp.
References map_location::do_compare(), and loc_.

| void terrain_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 367 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
| variant terrain_callable::get_value | ( | const std::string & | key | ) | const [virtual] |
Implements game_logic::formula_callable.
Definition at line 353 of file callable_objects.cpp.
References terrain_type::id(), loc_, t_, map_location::x, and map_location::y.

const location terrain_callable::loc_ [private] |
Definition at line 79 of file callable_objects.hpp.
Referenced by do_compare(), and get_value().
const terrain_type& terrain_callable::t_ [private] |
Definition at line 80 of file callable_objects.hpp.
Referenced by get_value().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:16:31 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |