2004-07-27 23:00:53 +02:00
|
|
|
#ifndef _Player_H
|
|
|
|
#define _Player_H
|
|
|
|
|
2004-08-16 17:19:17 +02:00
|
|
|
#include "CStr.h"
|
|
|
|
|
|
|
|
class CNetMessage;
|
|
|
|
|
2004-07-27 23:00:53 +02:00
|
|
|
class CPlayer
|
|
|
|
{
|
2004-08-16 17:19:17 +02:00
|
|
|
CStrW m_Name;
|
|
|
|
uint m_PlayerID;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CPlayer(uint playerID);
|
|
|
|
|
|
|
|
bool ValidateCommand(CNetMessage *pMsg);
|
|
|
|
|
|
|
|
inline const CStrW &GetName() const
|
|
|
|
{ return m_Name; }
|
2004-07-27 23:00:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|