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.cc
parent6151cd514b735129563de7f3ad0fed4fbf09107e (diff)
interface cleanups, send_warn
Diffstat (limited to 'src/core/player.cc')
-rw-r--r--src/core/player.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/player.cc b/src/core/player.cc
index a642371..6385992 100644
--- a/src/core/player.cc
+++ b/src/core/player.cc
@@ -42,6 +42,7 @@ void Player::clear()
player_ping = 0;
player_level = 1;
+ player_warningtime = 0;
}
@@ -64,6 +65,12 @@ void Player::send(const std::string text)
message(core::Message::Info, text);
}
+void Player::send_warning(const std::string text)
+{
+ message(core::Message::Info, text);
+ player_warningtime = application()->time();
+}
+
void Player::sound(const std::string name)
{
application()->notify_sound(name.c_str());