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

Define actions for the game's events mechanism. More...

#include "terrain/type_data.hpp"
#include <map>
#include <string>
Include dependency graph for action_wml.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  game_events::wml_action
 

Namespaces

 t_translation
 
 game_events
 Domain specific events.
 

Functions

void game_events::change_terrain (const map_location &loc, const t_translation::t_terrain &t, terrain_type_data::tmerge_mode mode, bool replace_if_failed)
 Changes a terrain location. More...
 

Detailed Description

Define actions for the game's events mechanism.

Events might be units moving or fighting, or when victory or defeat occurs. A scenario's configuration file will define actions to take when certain events occur. This module is responsible for implementing some of those actions (i.e. Action WML). The actions not implemented in this module are implemented in Lua.

Definition in file action_wml.hpp.