diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-08 16:51:28 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-08 16:51:28 +0000 |
commit | 6cd1a38f1d3a0a45846d63a75475400372af1277 (patch) | |
tree | 35bc79e34fe727fc387103a183f80b203c6dfa12 /src/core/netplayer.h | |
parent | 731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (diff) |
moved message functions into Player class
Diffstat (limited to 'src/core/netplayer.h')
-rw-r--r-- | src/core/netplayer.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/core/netplayer.h b/src/core/netplayer.h new file mode 100644 index 0000000..bbabea6 --- /dev/null +++ b/src/core/netplayer.h @@ -0,0 +1,40 @@ +/* + core/netplayer.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_CORE_NETPLAYER_H__ +#define __INCLUDED_CORE_NETPLAYER_H__ + +namespace core +{ +class NetPlayer; +} + +#include "core/player.h" +#include "core/netclient.h" +#include "core/message.h" + +namespace core +{ + +class NetPlayer : public Player +{ +public: + NetPlayer(NetClient *client); + virtual ~NetPlayer(); + + NetClient *client() { return player_client; } + + virtual void message(Message::Channel const channel, const std::string text); + virtual void sound(const std::string name); + +private: + NetClient *player_client; +}; + +} + +#endif // __INCLUDED_CORE_NETCLIENT_H__ + |