#include <callable_objects.hpp>


Public Member Functions | |
| safe_call_result (const formula_callable *callable, int status, const map_location &loc=map_location()) | |
Private Member Functions | |
| variant | get_value (const std::string &key) const |
| void | get_inputs (std::vector< game_logic::formula_input > *inputs) const |
Private Attributes | |
| const formula_callable * | failed_callable_ |
| const map_location | current_unit_location_ |
| const int | status_ |
Definition at line 231 of file callable_objects.hpp.
| game_logic::safe_call_result::safe_call_result | ( | const formula_callable * | callable, | |
| int | status, | |||
| const map_location & | loc = map_location() | |||
| ) | [inline] |
Definition at line 241 of file callable_objects.hpp.
| void game_logic::safe_call_result::get_inputs | ( | std::vector< game_logic::formula_input > * | inputs | ) | const [private, virtual] |
Reimplemented from game_logic::formula_callable.
Definition at line 319 of file callable_objects.cpp.
References current_unit_location_, and game_logic::FORMULA_READ_ONLY.
| variant game_logic::safe_call_result::get_value | ( | const std::string & | key | ) | const [private, virtual] |
Implements game_logic::formula_callable.
Definition at line 302 of file callable_objects.cpp.
References current_unit_location_, failed_callable_, and status_.
const map_location game_logic::safe_call_result::current_unit_location_ [private] |
Definition at line 233 of file callable_objects.hpp.
Referenced by get_inputs(), and get_value().
const formula_callable* game_logic::safe_call_result::failed_callable_ [private] |
Definition at line 232 of file callable_objects.hpp.
Referenced by get_value().
const int game_logic::safe_call_result::status_ [private] |
Definition at line 234 of file callable_objects.hpp.
Referenced by get_value().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:48 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |