Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetChatMsg Class Reference

#include <NetData.h>

Inheritance diagram for NetChatMsg:
NetData

List of all members.

Public Types

enum  {
  TYPE = NET_CHAT_MESSAGE, SIZE = 210, MAX_CHAT = 160, HDR_LEN = 4,
  NAME_LEN = 32
}

Public Member Functions

 NetChatMsg ()
virtual BYTE * Pack ()
virtual bool Unpack (const BYTE *data)
virtual int Type () const
virtual int Length () const
virtual DWORD GetDstID () const
virtual void SetDstID (DWORD d)
const TextGetName () const
void SetName (const char *m)
const TextGetText () const
void SetText (const char *m)
- Public Member Functions inherited from NetData
 NetData ()
virtual ~NetData ()
virtual DWORD GetObjID () const
virtual void SetObjID (DWORD o)

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 705 of file NetData.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
TYPE 
SIZE 
MAX_CHAT 
HDR_LEN 
NAME_LEN 

Definition at line 712 of file NetData.h.


Constructor & Destructor Documentation

NetChatMsg::NetChatMsg ( )
inline

Definition at line 710 of file NetData.h.


Member Function Documentation

virtual DWORD NetChatMsg::GetDstID ( ) const
inlinevirtual

Definition at line 719 of file NetData.h.

const Text& NetChatMsg::GetName ( ) const
inline

Definition at line 721 of file NetData.h.

const Text& NetChatMsg::GetText ( ) const
inline

Definition at line 723 of file NetData.h.

virtual int NetChatMsg::Length ( ) const
inlinevirtual

Reimplemented from NetData.

Definition at line 717 of file NetData.h.

BYTE * NetChatMsg::Pack ( )
virtual

Reimplemented from NetData.

Definition at line 998 of file NetData.cpp.

virtual void NetChatMsg::SetDstID ( DWORD  d)
inlinevirtual

Definition at line 720 of file NetData.h.

void NetChatMsg::SetName ( const char *  m)
inline

Definition at line 722 of file NetData.h.

void NetChatMsg::SetText ( const char *  m)
inline

Definition at line 724 of file NetData.h.

virtual int NetChatMsg::Type ( ) const
inlinevirtual

Reimplemented from NetData.

Definition at line 716 of file NetData.h.

static const char* NetChatMsg::TYPENAME ( )
inlinestatic

Reimplemented from NetData.

Definition at line 708 of file NetData.h.

bool NetChatMsg::Unpack ( const BYTE *  data)
virtual

Reimplemented from NetData.

Definition at line 1024 of file NetData.cpp.


The documentation for this class was generated from the following files: