|
| | JoinpadRT (MsgSink *pScreen, MsgSink *pGame, int nWorldId, int nHostAccount) |
| | Construct the session, request the key from the host, and start mConnectTask.
|
| | ~JoinpadRT () override |
| | Stop and delete mClockSync, and clear TheJoinpadRT.
|
| void | RemovePlayer (int nId) override |
| | Remove a player who left, and exit the session when the host left.
|
| float | GetTime () override |
| | Report the clock of the host.
|
| void | OnConnected () override |
| | Report JoinLaunchpadSuccessMsg to the sink of mConnectTask.
|
| void | PollPriv () override |
| | Poll mClockSync.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Act on a packet of the session, before LaunchpadRT does.
|
| void | RequestKey (int nHostAccount) |
| | Ask the host for the key of the session.
|
| void | OnClockSynced (float fOffset, float fRoundTrip) |
| | Take the offset of the clock of the host, and report this console ready when it can be.
|
| bool | OnMsg (WelcomePkt *pPkt) |
| | Take the colour and the settings the host welcomed this console with.
|
| bool | OnMsg (JoinFailedPkt *pPkt) |
| | Fail the session with the reason of the host.
|
| bool | OnMsg (ClientInfoPkt *pPkt) |
| | Enter a player of the session.
|
| bool | OnMsg (TimeResponsePkt *pPkt) |
| | Pass the clock of the host to mClockSync.
|
| bool | OnMsg (GameParamsPkt *pPkt) |
| | Pass the settings the host published to mGameSink, or exit for a song this console lacks.
|
| bool | OnMsg (BootPkt *pPkt) |
| | Exit when the host removed this console, and otherwise remove the guest.
|
| bool | OnMsg (GameOverPkt *pPkt) |
| | Rate the game from the final scores, report them, and leave the game.
|
| bool | OnMsg (ShareRemixPkt *pPkt) |
| | Prepare the buffer of the remix the host shares.
|
| bool | OnMsg (DataBlockPkt *pPkt) |
| | Store a block of the remix the host shares and acknowledge it.
|
| bool | OnMsg (ChatMsg *pMsg) |
| | Take the key of the session the host sent.
|
| int | GetKeyReceived () const |
| ClockSyncTask * | GetClockSync () const |
| const NetGameParams & | GetParams () const |
| float | GetClockOffset () const |
| const RemixInfo & | GetRemixInfo () const |
| bool | OnMsg (ClientStatusPkt *pPkt) |
| | Take the state of a player.
|
| bool | OnMsg (ClientRatingPkt *pPkt) |
| | Take the rating of a player.
|
| bool | OnMsg (LoadGamePkt *pPkt) |
| | Enter the game, and tell mGameSink to load the song.
|
| bool | OnMsg (StartGamePkt *pPkt) |
| | Take the time the song starts at and the seed of the game.
|
| bool | OnMsg (ClientAbortedPkt *pPkt) |
| | Drop a player who exited the game, and end the game when the host exited.
|
| bool | OnMsg (UpdateRanksPkt *pPkt) |
| | Take the ranks of the players.
|
| | LaunchpadRT (MsgSink *pGame) |
| | Construct the session, stored in TheNetLaunchpad and TheLaunchpadRT.
|
| | ~LaunchpadRT () override |
| | Stop the requests, and clear TheNetLaunchpad and TheLaunchpadRT.
|
| void | Cancel (MsgSink *pSink) override |
| | Exit the session with reason 0.
|
| void | Activate () override |
| | Mark the session active, and report this console ready when it can be.
|
| void | NotifyLoaded () override |
| | Report this console loaded.
|
| int | IsGuest () override |
| | Report mLocalId.
|
| int | GetPlayersVersion () override |
| | Report sPlayersVersion.
|
| std::list< NetLaunchpadPlayer > * | GetPlayers () override |
| | Report mPlayers.
|
| virtual void | ReportNow () |
| | Vtable slot 12.
|
| virtual void | SetLocalId (int nId) |
| | Vtable slot 13.
|
| virtual void | AddClient (int nId) |
| | Vtable slot 14.
|
| virtual void | EndGame () |
| | Vtable slot 19.
|
| virtual void | SendRating (int nRank) |
| | Vtable slot 20.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Act on a packet of the session.
|
| void | SetReady (int nReady) |
| | Set the state of this console and send it to every console.
|
| int | Poll () |
| | Service the session once per frame.
|
| NetLaunchpadPlayer * | FindPlayer (int nId) |
| | Find a player of the session.
|
| NetLaunchpadPlayer * | GetLocalPlayer () |
| | Find the player of this console.
|
| void | AddPlayer (const NetLaunchpadPlayer &player) |
| | Insert a player before the first player with a higher colour.
|
| void | StartGame () |
| | Start the song, and rate the start of a rated game as a loss of this console.
|
| void | DropRating (int nId) |
| | Rate a player who left as a loser, and drop every guest when the host left.
|
| void | RateGame (const std::vector< NetGameScore > &scores) |
| | Rate the players from the final scores of the game, and clear the rating.
|
| void | UpdateRating () |
| | Rate the player of this console from mRatings and publish the rating.
|
| void | Exit (MsgSink *pSink, int nReason) |
| | End the game and start mExitTask.
|
| int | FindIdByAccount (int nAccountId) |
| | Find the identifier in the session of an account.
|
| void | Abort (int nReason) |
| | Exit the session for mGameSink.
|
| void | Send (Packet *pPacket) |
| | Encrypt a packet and send it to the consoles its receiver selects.
|
| void | Leave () |
| | Leave the game and tell the other consoles.
|
| void | PlayersChanged () |
| | Count a change of the players.
|
| void | CheckReady () |
| | Report this console ready once the session is active and synced.
|
| bool | OnMsg (ClientStatusPkt *pPkt) |
| | Take the state of a player.
|
| bool | OnMsg (ClientRatingPkt *pPkt) |
| | Take the rating of a player.
|
| bool | OnMsg (LoadGamePkt *pPkt) |
| | Enter the game, and tell mGameSink to load the song.
|
| bool | OnMsg (StartGamePkt *pPkt) |
| | Take the time the song starts at and the seed of the game.
|
| bool | OnMsg (ClientAbortedPkt *pPkt) |
| | Drop a player who exited the game, and end the game when the host exited.
|
| bool | OnMsg (UpdateRanksPkt *pPkt) |
| | Take the ranks of the players.
|
| int | GetWorldId () const |
| void | SetWorldId (int nValue) |
| const rtNetConnectionInfo & | GetConnectionInfo () const |
| void | SetConnectionInfo (const rtNetConnectionInfo &info) |
| int | GetConnection () const |
| void | SetConnection (int nValue) |
| int | GetLocalId () const |
| void | SetLocalIdValue (int nValue) |
| int | GetState () const |
| void | SetState (int nValue) |
| int | GetError () const |
| void | SetError (int nValue) |
| MsgSink * | GetGameSink () const |
| std::list< NetLaunchpadPlayer > & | GetPlayersList () |
| const std::vector< int > & | GetClients () const |
| virtual void | EndEdit () |
| | Vtable slot 7.
|
| virtual bool | ShareRemix () |
| | Vtable slot 8.
|
| virtual int | Launch () |
| | Vtable slot 9.
|
| virtual void | BootPlayer (int nPlayer) |
| | Vtable slot 10.
|
| virtual | ~NetLaunchpad () |
| | Vtable slot 11.
|
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| virtual bool | Dispatch (Message *pMsg) |
| | Accept a message.
|
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
| virtual bool | Dispatch (Message *msg) |
| | Handle a message.
|
|
| static void | Create (MsgSink *pScreen, MsgSink *pGame, int nWorldId, int nHostAccount) |
| | Start joining a session.
|
| static int | RegisterMessages () |
| | Register the packets of the session with the session library.
|
| static void | SetMgclReady (int nReady) |
| | Set sMgclReady.
|
| static int | IsMgclReady () |
| | Report sMgclReady.
|
| static NetTask * | GetNetTask () |
| static void | SetNetTask (NetTask *pTask) |
| static unsigned char | DecodeByte (const char *pszText) |
| | Read a byte EncodeByte() wrote.
|
| static void | EncodeByte (char *pszText, unsigned char nByte) |
| | Write a byte as two characters and a terminator.
|
| static int | FindScore (const std::vector< NetGameScore > &scores, int nId) |
| | Report the score of a player in the final scores.
|
| static int | Receive (int nConnection, int nType, int nSender, rtDmeMessage *pMessage) |
| | Receive a message of the session, the handler rtDmeRegisterMessageHandler() registers.
|
| static void | OnNetConnect (int nConnection, int nReserved1, int nReserved2, int nStatus) |
| | Receive the result of NetHostTask and NetConnectTask, and finish sNetTask.
|
| static void | OnNetClientJoin (int nConnection, int nClient, const char *pszAddress) |
| | Note a console that connected to the session.
|
| static void | OnNetClientLeave (int nConnection, int nClient, const char *pszAddress) |
| | Remove a console that left the session.
|
The online session of a console that joins it.
The RTTI records the class as deriving from LaunchpadRT. The vtables are at 0x003d45c0 and 0x003d4598, and the object is 0x278 bytes. The constructor stores the instance in TheJoinpadRT. A guest asks the host for the key of the session, follows the clock of the host, and receives the settings and the remix of the game.