diff options
Diffstat (limited to 'src/core/player.cc')
-rw-r--r-- | src/core/player.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index 865c859..ca985ab 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -10,6 +10,7 @@ #include "sys/sys.h" #include "core/player.h" #include "core/cvar.h" +#include "core/application.h" namespace core { @@ -40,6 +41,22 @@ void Player::clear() player_control = 0; } + +void Player::send(const std::string text) +{ + message(core::Message::Info, text); +} + +void Player::sound(const std::string name) +{ + application()->notify_sound(name.c_str()); +} + +void Player::message(Message::Channel channel, const std::string text) +{ + application()->notify_message(channel, text); +} + void Player::set_control(EntityControlable *entitycontrolable) { player_control = entitycontrolable; |