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

#include <NetPacket.h>

List of all members.

Public Member Functions

 NetPacket (NetMsg *g)
 NetPacket (DWORD netid, BYTE type)
 ~NetPacket ()
bool Send (NetLink &link)
DWORD NetID () const
BYTE Type () const
DWORD GetPingSequence ()
void SetPingSequence (DWORD seq)
DWORD GetNetID ()
void SetNetID (DWORD id)
Point GetShipLocation ()
void SetShipLocation (const Point &loc)
Point GetShipVelocity ()
void SetShipVelocity (const Point &vel)
Point GetShipOrientation ()
void SetShipOrientation (const Point &rpy)
double GetThrottle ()
void SetThrottle (double t)
const char * GetName ()
void SetName (const char *name)
const char * GetDesign ()
void SetDesign (const char *design)
const char * GetRegion ()
void SetRegion (const char *rgn_name)
bool GetTrigger (int i)
void SetTrigger (int i, bool trigger)

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

NetMsgmsg

Detailed Description

Definition at line 29 of file NetPacket.h.


Constructor & Destructor Documentation

NetPacket::NetPacket ( NetMsg g)

Definition at line 33 of file NetPacket.cpp.

NetPacket::NetPacket ( DWORD  netid,
BYTE  type 
)

Definition at line 37 of file NetPacket.cpp.

NetPacket::~NetPacket ( )

Definition at line 58 of file NetPacket.cpp.


Member Function Documentation

const char * NetPacket::GetDesign ( )

Definition at line 312 of file NetPacket.cpp.

const char * NetPacket::GetName ( )

Definition at line 289 of file NetPacket.cpp.

DWORD NetPacket::GetNetID ( )

Definition at line 120 of file NetPacket.cpp.

DWORD NetPacket::GetPingSequence ( )

Definition at line 98 of file NetPacket.cpp.

const char * NetPacket::GetRegion ( )

Definition at line 335 of file NetPacket.cpp.

Point NetPacket::GetShipLocation ( )

Definition at line 142 of file NetPacket.cpp.

Point NetPacket::GetShipOrientation ( )

Definition at line 205 of file NetPacket.cpp.

Point NetPacket::GetShipVelocity ( )

Definition at line 175 of file NetPacket.cpp.

double NetPacket::GetThrottle ( )

Definition at line 235 of file NetPacket.cpp.

bool NetPacket::GetTrigger ( int  i)

Definition at line 259 of file NetPacket.cpp.

DWORD NetPacket::NetID ( ) const

Definition at line 78 of file NetPacket.cpp.

bool NetPacket::Send ( NetLink link)

Definition at line 64 of file NetPacket.cpp.

void NetPacket::SetDesign ( const char *  design)

Definition at line 324 of file NetPacket.cpp.

void NetPacket::SetName ( const char *  name)

Definition at line 301 of file NetPacket.cpp.

void NetPacket::SetNetID ( DWORD  id)

Definition at line 131 of file NetPacket.cpp.

void NetPacket::SetPingSequence ( DWORD  seq)

Definition at line 109 of file NetPacket.cpp.

void NetPacket::SetRegion ( const char *  rgn_name)

Definition at line 347 of file NetPacket.cpp.

void NetPacket::SetShipLocation ( const Point loc)

Definition at line 157 of file NetPacket.cpp.

void NetPacket::SetShipOrientation ( const Point rpy)

Definition at line 221 of file NetPacket.cpp.

void NetPacket::SetShipVelocity ( const Point vel)

Definition at line 191 of file NetPacket.cpp.

void NetPacket::SetThrottle ( double  t)

Definition at line 247 of file NetPacket.cpp.

void NetPacket::SetTrigger ( int  i,
bool  trigger 
)

Definition at line 272 of file NetPacket.cpp.

BYTE NetPacket::Type ( ) const

Definition at line 87 of file NetPacket.cpp.

static const char* NetPacket::TYPENAME ( )
inlinestatic

Definition at line 32 of file NetPacket.h.


Member Data Documentation

NetMsg* NetPacket::msg
protected

Definition at line 67 of file NetPacket.h.


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