#include <action_wml.hpp>
Public Types | |
typedef void(* | handler )(const queued_event &, const vconfig &) |
typedef std::map< std::string, handler > | map |
Public Member Functions | |
wml_action (const std::string &tag, handler function) | |
Using this constructor for a static object outside action_wml.cpp will likely lead to a static initialization fiasco. More... | |
Static Public Member Functions | |
static map::const_iterator | begin () |
The first registered action. More... | |
static map::const_iterator | end () |
One past the last registered action. More... | |
static const map & | registry () |
Static Private Attributes | |
static map | registry_ |
Tracks the known action handlers. More... | |
Definition at line 49 of file action_wml.hpp.
typedef void(* game_events::wml_action::handler)(const queued_event &, const vconfig &) |
Definition at line 51 of file action_wml.hpp.
typedef std::map<std::string, handler> game_events::wml_action::map |
Definition at line 52 of file action_wml.hpp.
game_events::wml_action::wml_action | ( | const std::string & | tag, |
handler | function | ||
) |
Using this constructor for a static object outside action_wml.cpp will likely lead to a static initialization fiasco.
[in] | tag | The WML tag for this action. |
[in] | function | The callback for this action. |
Definition at line 215 of file action_wml.cpp.
References registry_.
|
inlinestatic |
|
inlinestatic |
One past the last registered action.
Definition at line 61 of file action_wml.hpp.
References registry_.
|
inlinestatic |
Definition at line 62 of file action_wml.hpp.
References registry_.
Referenced by game_lua_kernel::game_lua_kernel().
|
staticprivate |
Tracks the known action handlers.
Definition at line 65 of file action_wml.hpp.
Referenced by begin(), end(), registry(), and wml_action().