diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-07 23:27:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-07 23:27:31 +0000 |
commit | 493e4317e19725e2de2d51753e5c1906bf9c64ba (patch) | |
tree | c46831d6d661a79b5da6580d4472d39a615fedea /src/core/player.h | |
parent | 941c64546ca22b87a9153d36e9e3fe59c18abafe (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.h | 5 |
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); |