Starshatter_Open
Open source Starshatter engine
|
#include <NetGameClient.h>
Public Member Functions | |
NetGameClient () | |
virtual | ~NetGameClient () |
virtual bool | IsClient () const |
virtual bool | IsServer () const |
virtual void | ExecFrame () |
virtual void | Send () |
virtual void | SendData (NetData *data) |
virtual void | Respawn (DWORD objid, Ship *spawn) |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
Public Member Functions inherited from NetGame | |
NetGame () | |
virtual | ~NetGame () |
virtual bool | IsActive () const |
virtual DWORD | GetNetID () const |
virtual DWORD | GetObjID () const |
virtual void | Recv () |
virtual NetPlayer * | FindPlayerByName (const char *name) |
virtual NetPlayer * | FindPlayerByNetID (DWORD netid) |
virtual NetPlayer * | FindPlayerByObjID (DWORD objid) |
virtual Ship * | FindShipByObjID (DWORD objid) |
virtual Shot * | FindShotByObjID (DWORD objid) |
virtual NetPeer * | GetPeer (NetPlayer *player) |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Protected Member Functions | |
virtual void | DoJoinRequest (NetMsg *msg) |
virtual void | DoJoinAnnounce (NetMsg *msg) |
virtual void | DoQuitRequest (NetMsg *msg) |
virtual void | DoQuitAnnounce (NetMsg *msg) |
virtual void | DoGameOver (NetMsg *msg) |
virtual void | DoDisconnect (NetMsg *msg) |
virtual void | DoObjLoc (NetMsg *msg) |
virtual void | DoObjDamage (NetMsg *msg) |
virtual void | DoObjKill (NetMsg *msg) |
virtual void | DoObjSpawn (NetMsg *msg) |
virtual void | DoObjHyper (NetMsg *msg) |
virtual void | DoObjTarget (NetMsg *msg) |
virtual void | DoObjEmcon (NetMsg *msg) |
virtual void | DoSysDamage (NetMsg *msg) |
virtual void | DoSysStatus (NetMsg *msg) |
virtual void | DoElemCreate (NetMsg *msg) |
virtual void | DoShipLaunch (NetMsg *msg) |
virtual void | DoNavData (NetMsg *msg) |
virtual void | DoNavDelete (NetMsg *msg) |
virtual void | DoWepTrigger (NetMsg *msg) |
virtual void | DoWepRelease (NetMsg *msg) |
virtual void | DoWepDestroy (NetMsg *msg) |
virtual void | DoCommMsg (NetMsg *msg) |
virtual void | DoChatMsg (NetMsg *msg) |
virtual void | DoSelfDestruct (NetMsg *msg) |
virtual void | SendJoinRequest () |
virtual bool | DoJoinBacklog (NetJoinAnnounce *join_ann) |
Protected Member Functions inherited from NetGame | |
virtual void | DoElemRequest (NetMsg *msg) |
Protected Attributes | |
DWORD | server_id |
DWORD | join_req_time |
List< NetJoinAnnounce > | join_backlog |
Protected Attributes inherited from NetGame | |
List< NetPlayer > | players |
NetLink * | link |
DWORD | objid |
DWORD | netid |
Ship * | local_player |
Text | player_name |
Text | player_pass |
Ship * | target |
Sim * | sim |
bool | active |
DWORD | last_send_time |
Protected Attributes inherited from SimObserver | |
List< SimObject > | observe_list |
Additional Inherited Members | |
Public Types inherited from NetGame | |
enum | { SHIP, SHOT } |
Static Public Member Functions inherited from NetGame | |
static const char * | TYPENAME () |
static NetGame * | Create () |
static NetGame * | GetInstance () |
static bool | IsNetGame () |
static bool | IsNetGameClient () |
static bool | IsNetGameServer () |
static int | NumPlayers () |
static DWORD | GetNextObjID (int type=SHIP) |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
Definition at line 27 of file NetGameClient.h.
NetGameClient::NetGameClient | ( | ) |
Definition at line 55 of file NetGameClient.cpp.
|
virtual |
Definition at line 88 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 906 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 893 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 386 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 633 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 376 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 139 of file NetGameClient.cpp.
|
protectedvirtual |
Definition at line 255 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 128 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 814 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 851 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 410 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 590 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 563 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 467 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 397 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 558 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 577 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 345 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 337 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 921 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 721 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 605 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 618 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 876 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 757 of file NetGameClient.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 744 of file NetGameClient.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 995 of file NetGameClient.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 1045 of file NetGameClient.cpp.
|
inlinevirtual |
Reimplemented from NetGame.
Definition at line 33 of file NetGameClient.h.
|
inlinevirtual |
Reimplemented from NetGame.
Definition at line 34 of file NetGameClient.h.
|
virtual |
Reimplemented from NetGame.
Definition at line 1053 of file NetGameClient.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 937 of file NetGameClient.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 976 of file NetGameClient.cpp.
|
protectedvirtual |
Definition at line 101 of file NetGameClient.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 1033 of file NetGameClient.cpp.
|
protected |
Definition at line 81 of file NetGameClient.h.
|
protected |
Definition at line 80 of file NetGameClient.h.
|
protected |
Definition at line 79 of file NetGameClient.h.