From 6cd1a38f1d3a0a45846d63a75475400372af1277 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 16:51:28 +0000 Subject: moved message functions into Player class --- src/core/player.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/core/player.h') 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 -- cgit v1.2.3