Starshatter_Open
Open source Starshatter engine
|
#include <NetLobby.h>
Public Member Functions | |
NetLobby (bool temporary=false) | |
virtual | ~NetLobby () |
virtual bool | IsClient () const |
virtual bool | IsServer () const |
virtual bool | IsActive () const |
virtual void | ExecFrame () |
virtual void | Recv () |
virtual void | Send () |
virtual int | GetLastError () const |
virtual NetUser * | FindUserByAddr (const NetAddr &addr) |
virtual NetUser * | FindUserByName (const char *name) |
virtual NetUser * | FindUserByNetID (DWORD id) |
virtual void | BanUser (NetUser *user) |
virtual void | AddUser (NetUser *user) |
virtual void | DelUser (NetUser *user) |
virtual bool | SetUserHost (NetUser *user, bool host) |
virtual int | NumUsers () |
virtual NetUser * | GetHost () |
virtual bool | HasHost () |
virtual bool | IsHost () const |
virtual List< NetUser > & | GetUsers () |
virtual List< ModInfo > & | GetServerMods () |
virtual NetUser * | GetLocalUser () |
virtual void | SetLocalUser (NetUser *user) |
virtual int | GetStatus () const |
virtual void | SetStatus (int s) |
virtual void | AddChat (NetUser *user, const char *msg, bool route=true) |
virtual List< NetChatEntry > & | GetChat () |
virtual void | ClearChat () |
virtual void | SaveChat () |
virtual DWORD | GetStartTime () const |
virtual List< NetCampaignInfo > & | GetCampaigns () |
virtual void | AddUnitMap (MissionElement *elem, int index=0) |
virtual List< NetUnitEntry > & | GetUnitMap () |
virtual void | ClearUnitMap () |
virtual void | MapUnit (int n, const char *user, bool lock=false) |
virtual void | UnmapUnit (const char *user) |
virtual bool | IsMapped (const char *user) |
virtual Mission * | GetSelectedMission () |
virtual DWORD | GetSelectedMissionID () const |
virtual void | SelectMission (DWORD id) |
virtual const Text & | GetMachineInfo () |
virtual WORD | GetGamePort () |
virtual bool | Ping () |
virtual void | GameStart () |
virtual void | GameStop () |
virtual DWORD | GetLag () |
Static Public Member Functions | |
static const char * | TYPENAME () |
static NetLobby * | GetInstance () |
static bool | IsNetLobbyClient () |
static bool | IsNetLobbyServer () |
Protected Member Functions | |
virtual void | DoPing (NetPeer *peer, Text msg) |
virtual void | DoServerInfo (NetPeer *peer, Text msg) |
virtual void | DoServerMods (NetPeer *peer, Text msg) |
virtual void | DoLogin (NetPeer *peer, Text msg) |
virtual void | DoLogout (NetPeer *peer, Text msg) |
virtual void | DoAuthUser (NetPeer *peer, Text msg) |
virtual void | DoUserAuth (NetPeer *peer, Text msg) |
virtual void | DoChat (NetPeer *peer, Text msg) |
virtual void | DoUserList (NetPeer *peer, Text msg) |
virtual void | DoBanUser (NetPeer *peer, Text msg) |
virtual void | DoMissionList (NetPeer *peer, Text msg) |
virtual void | DoMissionSelect (NetPeer *peer, Text msg) |
virtual void | DoMissionData (NetPeer *peer, Text msg) |
virtual void | DoUnitList (NetPeer *peer, Text msg) |
virtual void | DoMapUnit (NetPeer *peer, Text msg) |
virtual void | DoGameStart (NetPeer *peer, Text msg) |
virtual void | DoGameStop (NetPeer *peer, Text msg) |
virtual void | DoExit (NetPeer *peer, Text msg) |
virtual void | ParseMsg (Text msg, List< NetLobbyParam > ¶ms) |
Protected Attributes | |
NetLink * | link |
NetUser * | local_user |
List< NetUser > | users |
List< NetChatEntry > | chat_log |
List< NetCampaignInfo > | campaigns |
List< NetUnitEntry > | unit_map |
Text | machine_info |
List< ModInfo > | server_mods |
bool | active |
DWORD | last_send_time |
DWORD | start_time |
DWORD | selected_mission |
Mission * | mission |
int | status |
Definition at line 41 of file NetLobby.h.
NetLobby::NetLobby | ( | bool | temporary = false | ) |
Definition at line 55 of file NetLobby.cpp.
|
virtual |
Definition at line 63 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 403 of file NetLobby.cpp.
|
virtual |
Definition at line 432 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyServer.
Definition at line 202 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 197 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyServer.
Definition at line 416 of file NetLobby.cpp.
|
virtual |
Definition at line 445 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyServer.
Definition at line 216 of file NetLobby.cpp.
Reimplemented in NetLobbyClient.
Definition at line 122 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 126 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 124 of file NetLobby.h.
Reimplemented in NetLobbyClient.
Definition at line 134 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 132 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 133 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 120 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 121 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 131 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 129 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 127 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 128 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 117 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 118 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 119 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 130 of file NetLobby.h.
Reimplemented in NetLobbyServer.
Definition at line 123 of file NetLobby.h.
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 125 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 97 of file NetLobby.cpp.
Definition at line 320 of file NetLobby.cpp.
|
virtual |
Definition at line 332 of file NetLobby.cpp.
|
virtual |
Definition at line 347 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 107 of file NetLobby.h.
|
inlinevirtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 108 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyClient.
Definition at line 424 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyClient.
Definition at line 410 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyClient.
Definition at line 103 of file NetLobby.h.
|
virtual |
Definition at line 251 of file NetLobby.cpp.
|
static |
Reimplemented in NetLobbyServer.
Definition at line 89 of file NetLobby.cpp.
|
virtual |
Definition at line 170 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyClient.
Definition at line 56 of file NetLobby.h.
|
virtual |
Definition at line 302 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyClient.
Definition at line 102 of file NetLobby.h.
|
inlinevirtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 98 of file NetLobby.h.
|
inlinevirtual |
Definition at line 99 of file NetLobby.h.
Reimplemented in NetLobbyClient.
Definition at line 314 of file NetLobby.cpp.
|
inlinevirtual |
Definition at line 85 of file NetLobby.h.
|
inlinevirtual |
Reimplemented in NetLobbyClient.
Definition at line 77 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 439 of file NetLobby.cpp.
Reimplemented in NetLobbyClient.
Definition at line 308 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyClient.
Definition at line 264 of file NetLobby.cpp.
|
inlinevirtual |
Definition at line 51 of file NetLobby.h.
|
inlinevirtual |
Reimplemented in NetLobbyClient.
Definition at line 49 of file NetLobby.h.
|
inlinevirtual |
Reimplemented in NetLobbyClient, and NetLobbyServer.
Definition at line 69 of file NetLobby.h.
|
virtual |
Definition at line 490 of file NetLobby.cpp.
|
static |
Definition at line 561 of file NetLobby.cpp.
|
static |
Definition at line 569 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyServer.
Definition at line 50 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 451 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyClient.
Definition at line 238 of file NetLobby.cpp.
|
protectedvirtual |
Definition at line 361 of file NetLobby.cpp.
|
virtual |
Reimplemented in NetLobbyClient.
Definition at line 394 of file NetLobby.cpp.
|
virtual |
Definition at line 104 of file NetLobby.cpp.
|
inlinevirtual |
Reimplemented in NetLobbyServer.
Definition at line 84 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyServer, and NetLobbyClient.
Definition at line 507 of file NetLobby.cpp.
|
virtual |
Definition at line 163 of file NetLobby.cpp.
|
virtual |
Definition at line 181 of file NetLobby.cpp.
|
inlinevirtual |
Definition at line 78 of file NetLobby.h.
|
virtual |
Definition at line 283 of file NetLobby.cpp.
|
inlinestatic |
Definition at line 44 of file NetLobby.h.
|
virtual |
Reimplemented in NetLobbyServer.
Definition at line 475 of file NetLobby.cpp.
|
protected |
Definition at line 147 of file NetLobby.h.
|
protected |
Definition at line 142 of file NetLobby.h.
|
protected |
Definition at line 141 of file NetLobby.h.
|
protected |
Definition at line 148 of file NetLobby.h.
|
protected |
Definition at line 138 of file NetLobby.h.
|
protected |
Definition at line 139 of file NetLobby.h.
|
protected |
Definition at line 144 of file NetLobby.h.
|
protected |
Definition at line 151 of file NetLobby.h.
|
protected |
Definition at line 150 of file NetLobby.h.
Definition at line 145 of file NetLobby.h.
|
protected |
Definition at line 149 of file NetLobby.h.
|
protected |
Definition at line 152 of file NetLobby.h.
|
protected |
Definition at line 143 of file NetLobby.h.
Definition at line 140 of file NetLobby.h.