Starshatter_Open
Open source Starshatter engine
|
#include <NetGameServer.h>
Public Member Functions | |
NetGameServer () | |
virtual | ~NetGameServer () |
virtual bool | IsClient () const |
virtual bool | IsServer () const |
virtual void | ExecFrame () |
virtual void | CheckSessions () |
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 |
virtual void | RouteChatMsg (NetChatMsg &chat_msg) |
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 | DoElemRequest (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 NetPlayer * | FindZombieByObjID (DWORD objid) |
virtual void | SendDisconnect (NetPlayer *zombie) |
Protected Attributes | |
List< Ship > | ships |
List< NetPlayer > | zombies |
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 NetGameServer.h.
NetGameServer::NetGameServer | ( | ) |
Definition at line 52 of file NetGameServer.cpp.
|
virtual |
Definition at line 84 of file NetGameServer.cpp.
|
virtual |
Definition at line 158 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 877 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 840 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 415 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 634 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 604 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 408 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 353 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 214 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 730 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 767 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 443 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 530 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 487 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 450 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 422 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 480 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 510 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 401 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 364 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 962 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 702 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 552 of file NetGameServer.cpp.
|
protectedvirtual |
Print("NetGameServer::DoSysStatus - received request for ship '%s' from wrong player %s\n", ship->Name(), player ? player->Name() : "null");
Reimplemented from NetGame.
Definition at line 566 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 835 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 813 of file NetGameServer.cpp.
|
protectedvirtual |
Reimplemented from NetGame.
Definition at line 793 of file NetGameServer.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 111 of file NetGameServer.cpp.
|
protectedvirtual |
Definition at line 199 of file NetGameServer.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 1173 of file NetGameServer.cpp.
|
inlinevirtual |
Reimplemented from NetGame.
Definition at line 33 of file NetGameServer.h.
|
inlinevirtual |
Reimplemented from NetGame.
Definition at line 34 of file NetGameServer.h.
|
virtual |
Reimplemented from NetGame.
Definition at line 1181 of file NetGameServer.cpp.
|
virtual |
Definition at line 888 of file NetGameServer.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 1003 of file NetGameServer.cpp.
|
virtual |
Reimplemented from NetGame.
Definition at line 1108 of file NetGameServer.cpp.
|
protectedvirtual |
Definition at line 1142 of file NetGameServer.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 1158 of file NetGameServer.cpp.
Definition at line 83 of file NetGameServer.h.
Definition at line 84 of file NetGameServer.h.