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>2009-01-28 21:00:26 +0000
committerStijn Buys <ingar@osirion.org>2009-01-28 21:00:26 +0000
commit739f9dcb70d837697b6905e8256ba579a40d86fe (patch)
tree179b2b138dd731c35e41ddbd9b24cebf18507fe5 /src/core/player.h
parent6151cd514b735129563de7f3ad0fed4fbf09107e (diff)
interface cleanups, send_warn
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/player.h b/src/core/player.h
index 4620062..35a2f82 100644
--- a/src/core/player.h
+++ b/src/core/player.h
@@ -88,11 +88,24 @@ public:
/*----- messages -------------------------------------------------- */
- void send(const std::string name);
+ /// send a text message
+ void send(const std::string text);
+
+ /**
+ * @brief send a warning message
+ * Send the player a warning message abd set the warning
+ * message timestamp to the current application time
+ * @see last_warning()
+ */
+ void send_warning(const std::string text);
virtual void sound(const std::string name);
virtual void message(core::Message::Channel channel, const std::string text);
+
+ /// time of the last warning message
+ float last_warning() const { return player_warningtime; }
+
/*----- mutators -------------------------------------------------- */
@@ -204,6 +217,8 @@ private:
// bit to indicate zone has changed
bool player_zonechange;
+ float player_warningtime;
+
};
}