|
wavelength 1.0.0
|
The online lobby service: accounts, chat rooms, launchpads, and the remix repository. More...
#include <netlobby.h>

Public Member Functions | |
| NetLobby () | |
| Construct a service with no receiver. | |
| virtual | ~NetLobby () |
| Release the service. | |
| virtual void | SetSink (MsgSink *pSink) |
| Make a sink the receiver of the lobby's result messages. | |
| virtual void | SetProfile (Campaign *pProfile)=0 |
| Take the name, the password, and the Freq of the local player. | |
| virtual void | Connect (MsgSink *pSink)=0 |
| Start connecting to the lobby server. | |
| virtual void | Login (MsgSink *pSink, int nLocation, const char *pszPassword)=0 |
| Start logging in the local player. | |
| virtual void | Disconnect (MsgSink *pSink)=0 |
| Start disconnecting from the lobby server. | |
| virtual int | GetAccountId ()=0 |
| Report the account of the local player. | |
| virtual void | CreateAccount (MsgSink *pSink, const char *pszPassword)=0 |
| Start creating an account for the local player. | |
| virtual void | DeleteAccount (MsgSink *pSink)=0 |
| Start deleting the account of the local player. | |
| virtual void | ChangePassword (MsgSink *pSink, const char *pszOldPassword, const char *pszNewPassword)=0 |
| Start changing the password of the local player. | |
| virtual void | RequestLobbyPlayers (MsgSink *pSink)=0 |
| Start listing the players of the current chat room. | |
| virtual void | RequestLaunchpadPlayers (MsgSink *pSink, int nLaunchpad)=0 |
| Start listing the players of a launchpad. | |
| virtual void | AddLadderListener (MsgSink *pSink, int nAccount)=0 |
| Add a listener the service reports ladder positions to. | |
| virtual void | SetMuted (int nAccount, bool bMuted)=0 |
| Mute or unmute the chat of a player. | |
| virtual void | RequestLaunchpads (MsgSink *pSink, int nStart, int nMode, const char *pszArena, int nRuleSet, int nSkillLevel)=0 |
| Start listing the launchpads of the lobby. | |
| virtual void | FindPlayer (MsgSink *pSink, const char *pszName)=0 |
| Start finding a player by name. | |
| virtual void | RequestChatrooms (MsgSink *pSink)=0 |
| Start listing the chat rooms of the lobby. | |
| virtual void | JoinChatroom (MsgSink *pSink, int nChatroomId)=0 |
| Join a chat room. | |
| virtual void | CreateChatroom (MsgSink *pSink, const String &name)=0 |
| Start creating a chat room and joining it. | |
| virtual void | RequestRanks (MsgSink *pSink, int nCount, int nDirection, int nMode)=0 |
| Start listing a page of the ranking. | |
| virtual void | UploadRemix (MsgSink *pSink, const char *pszNote)=0 |
| Start uploading the current remix to the repository. | |
| virtual void | RequestRemixes (MsgSink *pSink)=0 |
| Start listing the remixes of the repository. | |
| virtual void | DownloadRemix (MsgSink *pSink, const char *pszName)=0 |
| Start downloading a remix from the repository. | |
| virtual void | RequestFiles (MsgSink *pSink, int nRemixes)=0 |
| Start listing the files of the repository. | |
| virtual void | UploadDirectory (MsgSink *pSink, std::list< NetRepoRemix > *pRemixes)=0 |
| Start uploading the remix directory to the repository, in place of the stored directory. | |
| virtual void | DeleteFile (MsgSink *pSink, const char *pszName)=0 |
| Start deleting a file of the repository. | |
| MsgSink * | GetSink () const |
The online lobby service: accounts, chat rooms, launchpads, and the remix repository.
The RTTI includes the name. LobbyRT implements it, and TheNetLobby points at the one instance. Each request reports its result to the receiver it is given, as a message such as LobbyConnectResultMsg or LoginResultMsg. The member names other than SetSink() are inferred.
|
inline |
Construct a service with no receiver.
Inline.
|
inlinevirtual |
Release the service.
Inline.
|
inlinevirtual |
Make a sink the receiver of the lobby's result messages.
Vtable slot 2.
Inline.
| pSink | The sink. |
|
pure virtual |
Take the name, the password, and the Freq of the local player.
| pProfile | The profile of the player. |
Implemented in LobbyRT.
|
pure virtual |
Start connecting to the lobby server.
| pSink | The receiver of the LobbyConnectResultMsg. |
Implemented in LobbyRT.
|
pure virtual |
Start logging in the local player.
| pSink | The receiver of the LoginResultMsg. |
| nLocation | The identifier of the lobby location the player chose. |
| pszPassword | The password. |
Implemented in LobbyRT.
|
pure virtual |
Start disconnecting from the lobby server.
| pSink | The receiver of the LobbyDisconnectResultMsg. |
Implemented in LobbyRT.
|
pure virtual |
|
pure virtual |
Start creating an account for the local player.
| pSink | The receiver of the CreateAccountResultMsg. |
| pszPassword | The password of the account. |
Implemented in LobbyRT.
|
pure virtual |
Start deleting the account of the local player.
| pSink | The receiver of the DeleteAccountResultMsg. |
Implemented in LobbyRT.
|
pure virtual |
Start changing the password of the local player.
| pSink | The receiver of the ChangePasswordResultMsg. |
| pszOldPassword | The current password. |
| pszNewPassword | The new password. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the players of the current chat room.
| pSink | The receiver of the LobbyPlayersMsg. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the players of a launchpad.
The name is inferred.
| pSink | The receiver of the LobbyPlayersMsg. |
| nLaunchpad | The identifier of the launchpad. |
Implemented in LobbyRT.
|
pure virtual |
Add a listener the service reports ladder positions to.
| pSink | The listener. |
| nAccount | The account of the player. |
Implemented in LobbyRT.
|
pure virtual |
Mute or unmute the chat of a player.
| nAccount | The account of the player. |
| bMuted | Whether the player is muted. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the launchpads of the lobby.
The main lobby passes 4, 1, an empty arena, 0, and -1.
| pSink | The receiver of the LobbyLaunchpadsMsg. |
| nStart | The position of the list, or a count. |
| nMode | Not yet identified. |
| pszArena | The arena of the search, or an empty string for any. |
| nRuleSet | The game mode of the search. |
| nSkillLevel | The skill level of the search, or -1 for any. |
Implemented in LobbyRT.
|
pure virtual |
Start finding a player by name.
| pSink | The receiver of the FindPlayerMsg. |
| pszName | The name of the player. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the chat rooms of the lobby.
| pSink | The receiver of the LobbyChatroomsMsg. |
Implemented in LobbyRT.
|
pure virtual |
Join a chat room.
Vtable slot 18.
The result arrives at pSink as a JoinChatroomResultMsg. The name is inferred.
| pSink | The sink that receives the result. |
| nChatroomId | The identifier of the room. |
Implemented in LobbyRT.
Start creating a chat room and joining it.
| pSink | The receiver of the JoinChatroomResultMsg. |
| name | The name of the chat room. |
Implemented in LobbyRT.
|
pure virtual |
Start listing a page of the ranking.
| pSink | The receiver of the LobbyPlayersMsg. |
| nCount | The most players to list. |
| nDirection | 0 for the top of the ranking, 1 for the next page, or 3 for the previous page. |
| nMode | Not yet identified. The ten best players are listed with 1, the ranking screen with 0. |
Implemented in LobbyRT.
|
pure virtual |
Start uploading the current remix to the repository.
| pSink | The receiver of the RepoRemixStatusMsg. |
| pszNote | The note of the remix. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the remixes of the repository.
| pSink | The receiver of the RepoRemixesMsg. |
Implemented in LobbyRT.
|
pure virtual |
Start downloading a remix from the repository.
| pSink | The receiver of the RemixDownloadMsg. |
| pszName | The name of the remix. |
Implemented in LobbyRT.
|
pure virtual |
Start listing the files of the repository.
| pSink | The receiver of the FileListMsg. |
| nRemixes | Non-zero to list only the uploaded remixes. |
Implemented in LobbyRT.
|
pure virtual |
Start uploading the remix directory to the repository, in place of the stored directory.
| pSink | The receiver of the RepoRemixStatusMsg. |
| pRemixes | The remixes of the directory. |
Implemented in LobbyRT.
|
pure virtual |
Start deleting a file of the repository.
| pSink | The receiver of the RepoRemixStatusMsg. |
| pszName | The name of the file. |
Implemented in LobbyRT.
|
inline |