Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-07 23:27:31 +0000
committerStijn Buys <ingar@osirion.org>2014-12-07 23:27:31 +0000
commit493e4317e19725e2de2d51753e5c1906bf9c64ba (patch)
treec46831d6d661a79b5da6580d4472d39a615fedea /src/core/player.h
parent941c64546ca22b87a9153d36e9e3fe59c18abafe (diff)
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.
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h5
1 files changed, 4 insertions, 1 deletions
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);