Removed unnecessary #include, and disabled copying of STKPeer.
This commit is contained in:
parent
a102d97e3a
commit
c59f958c2f
@ -24,11 +24,14 @@
|
||||
#ifndef EVENT_HPP
|
||||
#define EVENT_HPP
|
||||
|
||||
#include "network/stk_peer.hpp"
|
||||
#include "network/network_string.hpp"
|
||||
#include "utils/leak_check.hpp"
|
||||
#include "utils/types.hpp"
|
||||
|
||||
#include "enet/enet.h"
|
||||
|
||||
class STKPeer;
|
||||
|
||||
/*!
|
||||
* \enum EVENT_TYPE
|
||||
* \brief Represents a network event type.
|
||||
|
@ -34,17 +34,6 @@ STKPeer::STKPeer()
|
||||
m_token_set = false;
|
||||
} // STKPeer
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/** Copy constructor.
|
||||
*/
|
||||
STKPeer::STKPeer(const STKPeer& peer)
|
||||
{
|
||||
m_enet_peer = peer.m_enet_peer;
|
||||
m_player_profile = peer.m_player_profile;
|
||||
m_client_server_token = peer.m_client_server_token;
|
||||
m_token_set = peer.m_token_set;
|
||||
} // STKPeer
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/** Destructor.
|
||||
*/
|
||||
|
@ -23,6 +23,7 @@
|
||||
#ifndef STK_PEER_HPP
|
||||
#define STK_PEER_HPP
|
||||
|
||||
#include "utils/no_copy.hpp"
|
||||
#include "utils/types.hpp"
|
||||
|
||||
#include <enet/enet.h>
|
||||
@ -36,7 +37,7 @@ class TransportAddress;
|
||||
* \brief Represents a peer.
|
||||
* This class is used to interface the ENetPeer structure.
|
||||
*/
|
||||
class STKPeer
|
||||
class STKPeer : public NoCopy
|
||||
{
|
||||
friend class Event;
|
||||
protected:
|
||||
@ -53,7 +54,6 @@ protected:
|
||||
|
||||
public:
|
||||
STKPeer();
|
||||
STKPeer(const STKPeer& peer);
|
||||
virtual ~STKPeer();
|
||||
|
||||
virtual void sendPacket(const NetworkString& data, bool reliable = true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user