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

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

#include "config.hpp"
#include "utils/smart_list.hpp"
#include <memory>
#include <set>
#include <string>
Include dependency graph for handlers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  game_events::event_handler
 
class  game_events::handler_list
 This is a wrapper for a list of weak pointers to handlers. More...
 
class  game_events::handler_list::iterator
 Handler list iterators are rather limited. More...
 

Namespaces

 game_events
 Domain specific events.
 

Typedefs

typedef std::shared_ptr
< event_handler > 
game_events::handler_ptr
 Shared pointer to handler objects. More...
 
typedef std::vector< handler_ptr > game_events::handler_vec
 Storage of event handlers. More...
 

Detailed Description

Define the handlers 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 tracking these definitions.

Definition in file handlers.hpp.