The Battle for Wesnoth  1.19.7+dev
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 "events.hpp"
#include "hotkey/hotkey_command.hpp"
#include "key.hpp"
#include "quit_confirmation.hpp"
#include <chrono>
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
 
class  controller_base::keyup_listener
 

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.