The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
hotkey_handler_mp.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Chris Beck <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /**
16  * @file
17  * An extension of playsingle_controller::hotkey_handler, which has support for
18  * MP wesnoth features like network traffic
19  */
20 
21 #ifndef HOTKEY_HANDLER_MP_HPP_INCL_
22 #define HOTKEY_HANDLER_MP_HPP_INCL_
23 
24 #include "playmp_controller.hpp"
26 
28 
29 protected:
31 
32 public:
35 
36  virtual void speak();
37  virtual void whisper();
38  virtual void shout();
39  virtual void start_network();
40  virtual void stop_network();
41  virtual bool can_execute_command(const hotkey::hotkey_command& command, int index=-1) const;
42 
43 };
44 
45 #endif
hotkey_handler(playmp_controller &, saved_game &)
Stores all information related to functions that can be bound to hotkeys.
An extension of play_controller::hotkey_handler, which has support for SP wesnoth features like white...
GLuint index
Definition: glew.h:1782
virtual bool can_execute_command(const hotkey::hotkey_command &command, int index=-1) const
Check if a command can be executed.