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

controller_base framework: controller_base is roughly analogous to a "dialog" class in a GUI toolkit which is appropriate for deriving wesnoth game modes, e.g. More...

#include "global.hpp"
#include "events.hpp"
#include "hotkey/hotkey_command.hpp"
#include "joystick.hpp"
#include "key.hpp"
#include "video.hpp"
#include "quit_confirmation.hpp"
Include dependency graph for controller_base.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  controller_base
 

Namespaces

 events
 Handling of system events.
 
 hotkey
 Keyboard shortcuts for game actions.
 
 soundsource
 

Detailed Description

controller_base framework: controller_base is roughly analogous to a "dialog" class in a GUI toolkit which is appropriate for deriving wesnoth game modes, e.g.

single player mode, multiplayer mode, replay mode, editor mode.

It provides implementation details for:

Other than this it functions as an abstract interface, enforcing that controllers derive from events::sdl_handler, hotkey_command_executor, and provide some accessors needed for event handling.

Definition in file controller_base.hpp.