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>2008-11-08 16:51:28 +0000
committerStijn Buys <ingar@osirion.org>2008-11-08 16:51:28 +0000
commit6cd1a38f1d3a0a45846d63a75475400372af1277 (patch)
tree35bc79e34fe727fc387103a183f80b203c6dfa12 /src/core/player.h
parent731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (diff)
moved message functions into Player class
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/player.h b/src/core/player.h
index 04f9615..620f086 100644
--- a/src/core/player.h
+++ b/src/core/player.h
@@ -13,6 +13,7 @@ class Player;
}
#include "core/entity.h"
+#include "core/message.h"
#include "core/zone.h"
#include "math/mathlib.h"
@@ -29,7 +30,7 @@ public:
/// default constructor
Player();
/// default destructor
- ~Player();
+ virtual ~Player();
/*----- inspectors ------------------------------------------------ */
@@ -75,6 +76,14 @@ public:
/// view
inline Entity *view() { return player_view; }
+/*----- messages -------------------------------------------------- */
+
+ void send(const std::string name);
+
+ virtual void sound(const std::string name);
+
+ virtual void message(core::Message::Channel channel, const std::string text);
+
/*----- mutators -------------------------------------------------- */
/// serialize player info to a stream