#include <callable_objects.hpp>
Public Member Functions | |
location_callable (const gamemap::location &loc) | |
const gamemap::location & | loc () const |
void | serialize_to_string (std::string &str) const |
Private Member Functions | |
variant | get_value (const std::string &key) const |
void | get_inputs (std::vector< game_logic::formula_input > *inputs) const |
int | do_compare (const game_logic::formula_callable *callable) const |
Private Attributes | |
gamemap::location | loc_ |
Definition at line 83 of file callable_objects.hpp.
location_callable::location_callable | ( | const gamemap::location & | loc | ) | [inline, explicit] |
variant location_callable::get_value | ( | const std::string & | key | ) | const [private, virtual] |
Implements game_logic::formula_callable.
Definition at line 4 of file callable_objects.cpp.
References get_adjacent_tiles(), loc_, location_callable(), gamemap::location::x, and gamemap::location::y.
void location_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 26 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
int location_callable::do_compare | ( | const game_logic::formula_callable * | callable | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 33 of file callable_objects.cpp.
References loc(), loc_, gamemap::location::x, and gamemap::location::y.
const gamemap::location& location_callable::loc | ( | ) | const [inline] |
void location_callable::serialize_to_string | ( | std::string & | str | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 48 of file callable_objects.cpp.
References loc_, gamemap::location::x, and gamemap::location::y.
gamemap::location location_callable::loc_ [private] |
Definition at line 84 of file callable_objects.hpp.
Referenced by do_compare(), get_value(), and serialize_to_string().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |