Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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