#include <map>
#include "formula_callable.hpp"
#include "map.hpp"
#include "unit.hpp"
#include "foreach.hpp"
Go to the source code of this file.
Classes | |
class | terrain_callable |
class | location_callable |
class | move_callable |
class | move_map_callable |
class | unit_callable |
Defines | |
#define | CALLABLE_WRAPPER_START(klass) |
#define | CALLABLE_WRAPPER_INPUT(VAR) inputs->push_back(game_logic::formula_input(#VAR, FORMULA_READ_ONLY)); |
#define | CALLABLE_WRAPPER_INPUT_END |
#define | CALLABLE_WRAPPER_VAR(VAR) |
#define | CALLABLE_WRAPPER_FN(VAR) |
#define | CALLABLE_WRAPPER_END |
Functions | |
CALLABLE_WRAPPER_INPUT_END | if (key=="terrain") |
#define CALLABLE_WRAPPER_END |
#define CALLABLE_WRAPPER_FN | ( | VAR | ) |
Value:
if(key == #VAR) { \ return variant(object_.VAR()); \ } else
Definition at line 36 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_INPUT | ( | VAR | ) | inputs->push_back(game_logic::formula_input(#VAR, FORMULA_READ_ONLY)); |
Definition at line 23 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_INPUT_END |
Value:
} \ \ variant get_value(const std::string& key) const {
Definition at line 26 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_START | ( | klass | ) |
Value:
class klass##_callable : public game_logic::formula_callable { \ const klass& object_; \ public: \ explicit klass##_callable(const klass& object) : object_(object) \ {} \ \ const klass& get_##klass() const { return object_; } \ void get_inputs(std::vector<game_logic::formula_input>* inputs) const \ { \ using game_logic::FORMULA_READ_ONLY;
Definition at line 11 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_VAR | ( | VAR | ) |
Value:
if(key == #VAR) { \ return variant(object_.VAR); \ } else
Definition at line 31 of file callable_objects.hpp.
CALLABLE_WRAPPER_INPUT_END if | ( | key | = = "terrain" |
) |
Definition at line 67 of file callable_objects.hpp.
References loc.
Referenced by reports::generate_report(), and game::remove_player().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |