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/player.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/player.h') diff --git a/src/core/player.h b/src/core/player.h index a9eb4b0..e68a219 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -200,7 +200,10 @@ public: } - /*----- server-side mesage functions ------------------------------ */ + /*----- server-side message functions ----------------------------- */ + + /// send a messagebox to the player + void messagebox(const char *text, const char *label1 = 0, const char *command1 = 0, const char *label2 = 0, const char *command2 = 0); /// send a message to the player on one of the message channels void message(core::Message::Channel channel, const std::string text); -- cgit v1.2.3