From 493e4317e19725e2de2d51753e5c1906bf9c64ba Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Dec 2014 23:27:31 +0000 Subject: Implemented messageboxes and the ability for the game module to send them to remote clients, send a messagebox if the player's ship is destroyed, this fixes having to press the respawn button twice. added messageboxes on network connection failures. --- src/core/gameserver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/gameserver.h') diff --git a/src/core/gameserver.h b/src/core/gameserver.h index 4f25a9b..3e9c50a 100644 --- a/src/core/gameserver.h +++ b/src/core/gameserver.h @@ -80,7 +80,8 @@ public: /// broadcast a sound to all players void broadcast_sound(std::string const sound, Player *ignore_player = 0); - + /// send a messagebox to a single player + void messagebox(Player *player, const std::string & text, const std::string &label1, const std::string command1, const std::string &label2, const std::string command2); /// a player sends a command to the game server void exec(Player *player, std::string const &cmdline); -- cgit v1.2.3