duncan
Mom and Dad were wrong!
/home/malcolm/tmp/duncan/prototype/0/server/playerpacket.h
00001 #ifndef SERVER_PLAYERPACKET_H_
00002 #define SERVER_PLAYERPACKET_H_
00003 
00004 #include <tr1/memory>
00005 #include "player.h"
00006 #include "../network/network.h"
00007 
00008 namespace server {
00009 
00018 struct PlayerPacket {
00019         public:
00021                 typedef std::tr1::shared_ptr<PlayerPacket> pointer_t;
00022 
00024                 Player* player;
00025 
00027                 net::Packet* packet;
00028 
00034                 PlayerPacket(Player* pl, net::Packet* p) : player(pl), packet(p) {}
00035 };
00036 
00037 } // namespace
00038 
00039 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations