The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
conditional_wml.cpp File Reference

Implementations of conditional action WML tags. More...

#include "global.hpp"
#include "conditional_wml.hpp"
#include "config.hpp"
#include "game_board.hpp"
#include "game_data.hpp"
#include "log.hpp"
#include "recall_list_manager.hpp"
#include "resources.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "serialization/string_utils.hpp"
#include "team.hpp"
#include "terrain/filter.hpp"
#include "units/unit.hpp"
#include "units/filter.hpp"
#include "units/map.hpp"
#include "util.hpp"
#include "variable.hpp"
#include <boost/assign/list_of.hpp>
Include dependency graph for conditional_wml.cpp:

Go to the source code of this file.

Namespaces

 game_events
 Domain specific events.
 

Macros

#define WRN_NG   LOG_STREAM(warn, log_engine)
 
#define TEST_STR_ATTR(name, test)
 
#define TEST_NUM_ATTR(name, test)
 
#define TEST_BOL_ATTR(name, test)
 

Functions

bool game_events::conditional_passed (const vconfig &cond)
 
bool game_events::matches_special_filter (const config &cfg, const vconfig &filter)
 

Variables

static lg::log_domain log_engine ("engine")
 

Detailed Description

Implementations of conditional action WML tags.

Definition in file conditional_wml.cpp.

Macro Definition Documentation

#define TEST_BOL_ATTR (   name,
  test 
)
Value:
do { \
if (values.has_attribute(name)) { \
bool attr_bool = values[name].to_bool(); \
bool bool_value = value.to_bool(); \
if (!(test)) return false; \
} \
} while (0)
GLboolean GLenum GLenum GLvoid * values
Definition: glew.h:3799
GLsizei const GLfloat * value
Definition: glew.h:1817
GLuint const GLchar * name
Definition: glew.h:1782
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")
static void test()
#define TEST_NUM_ATTR (   name,
  test 
)
Value:
do { \
if (values.has_attribute(name)) { \
double attr_num = values[name].to_double(); \
double num_value = value.to_double(); \
if (!(test)) return false; \
} \
} while (0)
GLboolean GLenum GLenum GLvoid * values
Definition: glew.h:3799
GLsizei const GLfloat * value
Definition: glew.h:1817
GLuint const GLchar * name
Definition: glew.h:1782
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")
static void test()
#define TEST_STR_ATTR (   name,
  test 
)
Value:
do { \
if (values.has_attribute(name)) { \
std::string attr_str = values[name].str(); \
std::string str_value = value.str(); \
if (!(test)) return false; \
} \
} while (0)
GLboolean GLenum GLenum GLvoid * values
Definition: glew.h:3799
GLsizei const GLfloat * value
Definition: glew.h:1817
GLuint const GLchar * name
Definition: glew.h:1782
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")
GLsizei const GLcharARB ** string
Definition: glew.h:4503
static void test()
#define WRN_NG   LOG_STREAM(warn, log_engine)

Definition at line 42 of file conditional_wml.cpp.

Referenced by game_events::matches_special_filter().

Variable Documentation

lg::log_domain log_engine("engine")
static