24 #ifndef GAME_EVENTS_HANDLERS_H_INCLUDED
25 #define GAME_EVENTS_HANDLERS_H_INCLUDED
30 #include <boost/noncopyable.hpp>
31 #include <boost/scoped_ptr.hpp>
32 #include <boost/shared_ptr.hpp>
33 #include <boost/weak_ptr.hpp>
150 #endif // GAME_EVENTS_HANDLERS_H_INCLUDED
void push_back(const handler_ptr &p)
handler_ptr operator*()
Dereference.
boost::shared_ptr< event_handler > handler_ptr
Shared pointer to handler objects.
bool is_menu_item() const
void push_front(const handler_ptr &p)
list_t data_
The actual list.
utils::smart_list< internal_ptr > list_t
The underlying list.
boost::weak_ptr< event_handler > internal_ptr
The weak pointers that are used internally.
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Handler list iterators are rather limited.
Definitions for the interface to Wesnoth Markup Language (WML).
iterator & operator++()
Increment.
bool matches_name(const std::string &name, const game_data *data) const
void handle_event(const queued_event &event_info, handler_ptr &handler_p, game_lua_kernel &)
Handles the queued event, according to our WML instructions.
This is a wrapper for a list of weak pointers to handlers.
std::vector< handler_ptr > handler_vec
Storage of event handlers.
const config & get_config() const
const_iterator begin() const
handler_vec::size_type index_
handler_list()
Default constructor.
void disable()
Disables *this, removing it from the game.
list_t::iterator iter_
The current element.
const_iterator end() const
void push_back(const value_type &d)
handler_list & operator=(const handler_list &)
No implementation of operator=() since smart_list does not support it.
The game event manager loads the scenario configuration object, and ensures that events are handled a...
iterator(const list_t::iterator &base_iter)
Initialized constructor (to be called by handler_list).
GLuint const GLchar * name
handler_vec::size_type index() const
The index of *this should only be of interest when controlling iterations.
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
event_handler(const config &cfg, bool is_menu_item, handler_vec::size_type index, manager &)
void push_front(const value_type &d)