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

#include <NetPlayer.h>

Inheritance diagram for NetPlayer:
Director SimObserver

List of all members.

Public Member Functions

 NetPlayer (DWORD nid)
 ~NetPlayer ()
int operator== (const NetPlayer &p) const
DWORD GetNetID () const
DWORD GetObjID () const
void SetObjID (DWORD o)
int GetIFF () const
ShipGetShip () const
void SetShip (Ship *s)
const char * Name () const
void SetName (const char *n)
const char * SerialNumber () const
void SetSerialNumber (const char *n)
virtual void ExecFrame (double seconds)
bool DoObjLoc (NetObjLoc *obj_loc)
bool DoObjHyper (NetObjHyper *obj_hyper)
bool DoObjTarget (NetObjTarget *obj_target)
bool DoObjEmcon (NetObjEmcon *obj_emcon)
bool DoWepTrigger (NetWepTrigger *trigger)
bool DoWepRelease (NetWepRelease *release)
bool DoCommMessage (NetCommMsg *comm_msg)
bool DoSysDamage (NetSysDamage *sys_damage)
bool DoSysStatus (NetSysStatus *sys_status)
virtual int Type () const
virtual bool Update (SimObject *obj)
virtual const char * GetObserverName () const
- Public Member Functions inherited from Director
 Director ()
virtual ~Director ()
virtual int Subframe () const
- Public Member Functions inherited from SimObserver
virtual ~SimObserver ()
int operator== (const SimObserver &o) const
virtual void Observe (SimObject *obj)
virtual void Ignore (SimObject *obj)

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

DWORD netid
DWORD objid
Text name
Text serno
Shipship
int iff
Point loc_error
double bleed_time
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Detailed Description

Definition at line 43 of file NetPlayer.h.


Constructor & Destructor Documentation

NetPlayer::NetPlayer ( DWORD  nid)
inline

Definition at line 48 of file NetPlayer.h.

NetPlayer::~NetPlayer ( )

Definition at line 43 of file NetPlayer.cpp.


Member Function Documentation

bool NetPlayer::DoCommMessage ( NetCommMsg comm_msg)

Definition at line 363 of file NetPlayer.cpp.

bool NetPlayer::DoObjEmcon ( NetObjEmcon obj_emcon)

Definition at line 217 of file NetPlayer.cpp.

bool NetPlayer::DoObjHyper ( NetObjHyper obj_hyper)

Definition at line 130 of file NetPlayer.cpp.

bool NetPlayer::DoObjLoc ( NetObjLoc obj_loc)

Definition at line 102 of file NetPlayer.cpp.

bool NetPlayer::DoObjTarget ( NetObjTarget obj_target)

Definition at line 185 of file NetPlayer.cpp.

bool NetPlayer::DoSysDamage ( NetSysDamage sys_damage)

Definition at line 386 of file NetPlayer.cpp.

bool NetPlayer::DoSysStatus ( NetSysStatus sys_status)

Definition at line 401 of file NetPlayer.cpp.

bool NetPlayer::DoWepRelease ( NetWepRelease release)

Definition at line 310 of file NetPlayer.cpp.

bool NetPlayer::DoWepTrigger ( NetWepTrigger trigger)

Definition at line 230 of file NetPlayer.cpp.

void NetPlayer::ExecFrame ( double  seconds)
virtual

Reimplemented from Director.

Definition at line 420 of file NetPlayer.cpp.

int NetPlayer::GetIFF ( ) const
inline

Definition at line 57 of file NetPlayer.h.

DWORD NetPlayer::GetNetID ( ) const
inline

Definition at line 53 of file NetPlayer.h.

DWORD NetPlayer::GetObjID ( ) const
inline

Definition at line 54 of file NetPlayer.h.

const char * NetPlayer::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 461 of file NetPlayer.cpp.

Ship* NetPlayer::GetShip ( ) const
inline

Definition at line 58 of file NetPlayer.h.

const char* NetPlayer::Name ( ) const
inline

Definition at line 61 of file NetPlayer.h.

int NetPlayer::operator== ( const NetPlayer p) const
inline

Definition at line 51 of file NetPlayer.h.

const char* NetPlayer::SerialNumber ( ) const
inline

Definition at line 63 of file NetPlayer.h.

void NetPlayer::SetName ( const char *  n)
inline

Definition at line 62 of file NetPlayer.h.

void NetPlayer::SetObjID ( DWORD  o)
inline

Definition at line 55 of file NetPlayer.h.

void NetPlayer::SetSerialNumber ( const char *  n)
inline

Definition at line 64 of file NetPlayer.h.

void NetPlayer::SetShip ( Ship s)

Definition at line 56 of file NetPlayer.cpp.

virtual int NetPlayer::Type ( ) const
inlinevirtual

Reimplemented from Director.

Definition at line 78 of file NetPlayer.h.

static const char* NetPlayer::TYPENAME ( )
inlinestatic

Reimplemented from SimObserver.

Definition at line 46 of file NetPlayer.h.

bool NetPlayer::Update ( SimObject obj)
virtual

Reimplemented from SimObserver.

Definition at line 451 of file NetPlayer.cpp.


Member Data Documentation

double NetPlayer::bleed_time
protected

Definition at line 92 of file NetPlayer.h.

int NetPlayer::iff
protected

Definition at line 89 of file NetPlayer.h.

Point NetPlayer::loc_error
protected

Definition at line 91 of file NetPlayer.h.

Text NetPlayer::name
protected

Definition at line 86 of file NetPlayer.h.

DWORD NetPlayer::netid
protected

Definition at line 84 of file NetPlayer.h.

DWORD NetPlayer::objid
protected

Definition at line 85 of file NetPlayer.h.

Text NetPlayer::serno
protected

Definition at line 87 of file NetPlayer.h.

Ship* NetPlayer::ship
protected

Definition at line 88 of file NetPlayer.h.


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