#include <callable_objects.hpp>


Public Member Functions | |
| location_callable (const map_location &loc) | |
| location_callable (int x, int y) | |
| const map_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 | |
| map_location | loc_ |
Definition at line 104 of file callable_objects.hpp.
| location_callable::location_callable | ( | const map_location & | loc | ) | [inline, explicit] |
Definition at line 112 of file callable_objects.hpp.
| location_callable::location_callable | ( | int | x, | |
| int | y | |||
| ) | [inline, explicit] |
Definition at line 116 of file callable_objects.hpp.
| int location_callable::do_compare | ( | const game_logic::formula_callable * | callable | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 60 of file callable_objects.cpp.
References map_location::do_compare(), loc(), and loc_.

| void location_callable::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 53 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
| variant location_callable::get_value | ( | const std::string & | key | ) | const [private, virtual] |
Implements game_logic::formula_callable.
Definition at line 42 of file callable_objects.cpp.
References loc_, map_location::x, and map_location::y.
| const map_location& location_callable::loc | ( | ) | const [inline] |
Definition at line 119 of file callable_objects.hpp.
Referenced by do_compare().

| void location_callable::serialize_to_string | ( | std::string & | str | ) | const [virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 71 of file callable_objects.cpp.
References loc_, map_location::x, and map_location::y.
map_location location_callable::loc_ [private] |
Definition at line 105 of file callable_objects.hpp.
Referenced by do_compare(), get_value(), and serialize_to_string().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:27 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |