mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 14:09:14 +00:00
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/*
|
|
Copyright (C) 2014 - 2015 by Chris Beck <render787@gmail.com>
|
|
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY.
|
|
|
|
See the COPYING file for more details.
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* An extension of playsingle_controller::hotkey_handler, which has support for
|
|
* MP wesnoth features like network traffic
|
|
*/
|
|
|
|
#ifndef HOTKEY_HANDLER_MP_HPP_INCL_
|
|
#define HOTKEY_HANDLER_MP_HPP_INCL_
|
|
|
|
#include "playmp_controller.hpp"
|
|
#include "hotkey_handler_sp.hpp"
|
|
|
|
class playmp_controller::hotkey_handler : public playsingle_controller::hotkey_handler {
|
|
|
|
protected:
|
|
playmp_controller & playmp_controller_;
|
|
|
|
public:
|
|
hotkey_handler(playmp_controller &, saved_game &);
|
|
~hotkey_handler();
|
|
|
|
virtual void speak();
|
|
virtual void whisper();
|
|
virtual void shout();
|
|
virtual void start_network();
|
|
virtual void stop_network();
|
|
virtual bool can_execute_command(const hotkey::hotkey_command& command, int index=-1) const;
|
|
|
|
};
|
|
|
|
#endif
|