98#ifdef VIDEO_STANDARD_PAL
261 return mClockSync.get();
281 std::unique_ptr<ClockSyncTask> mClockSync;
Packet the host sends every console when it removes a guest from the session.
Definition bootpkt.h:20
Message with one line of chat between the consoles of an online session or lobby.
Definition chatmsg.h:24
Packet that describes one player of the session.
Definition clientinfopkt.h:21
Task of a guest that measures the clock of the host.
Definition clocksynctask.h:15
Packet that delivers one block of the remix the host shares.
Definition datablockpkt.h:20
Packet that reports the final scores of the song.
Definition gameoverpkt.h:23
Packet the host sends when the settings of the game change.
Definition gameparamspkt.h:21
Packet the host sends a console it turns away.
Definition joinfailedpkt.h:20
The online session of a console that joins it.
Definition joinpadrt.h:30
float GetTime() override
Report the clock of the host.
bool OnMsg(GameParamsPkt *pPkt)
Pass the settings the host published to mGameSink, or exit for a song this console lacks.
bool OnMsg(DataBlockPkt *pPkt)
Store a block of the remix the host shares and acknowledge it.
bool DispatchPriv(Message *pMsg) override
Act on a packet of the session, before LaunchpadRT does.
void PollPriv() override
Poll mClockSync.
const NetGameParams & GetParams() const
Definition joinpadrt.h:265
static void Create(MsgSink *pScreen, MsgSink *pGame, int nWorldId, int nHostAccount)
Start joining a session.
bool OnMsg(JoinFailedPkt *pPkt)
Fail the session with the reason of the host.
float GetClockOffset() const
Definition joinpadrt.h:270
void RequestKey(int nHostAccount)
Ask the host for the key of the session.
bool OnMsg(ShareRemixPkt *pPkt)
Prepare the buffer of the remix the host shares.
JoinpadRT(MsgSink *pScreen, MsgSink *pGame, int nWorldId, int nHostAccount)
Construct the session, request the key from the host, and start mConnectTask.
const RemixInfo & GetRemixInfo() const
Definition joinpadrt.h:275
bool OnMsg(BootPkt *pPkt)
Exit when the host removed this console, and otherwise remove the guest.
ClockSyncTask * GetClockSync() const
Definition joinpadrt.h:260
void RemovePlayer(int nId) override
Remove a player who left, and exit the session when the host left.
~JoinpadRT() override
Stop and delete mClockSync, and clear TheJoinpadRT.
bool OnMsg(ClientInfoPkt *pPkt)
Enter a player of the session.
bool OnMsg(TimeResponsePkt *pPkt)
Pass the clock of the host to mClockSync.
int GetKeyReceived() const
Definition joinpadrt.h:255
bool OnMsg(ChatMsg *pMsg)
Take the key of the session the host sent.
bool OnMsg(WelcomePkt *pPkt)
Take the colour and the settings the host welcomed this console with.
void OnClockSynced(float fOffset, float fRoundTrip)
Take the offset of the clock of the host, and report this console ready when it can be.
void OnConnected() override
Report JoinLaunchpadSuccessMsg to the sink of mConnectTask.
bool OnMsg(GameOverPkt *pPkt)
Rate the game from the final scores, report them, and leave the game.
LaunchpadRT(MsgSink *pGame)
Construct the session, stored in TheNetLaunchpad and TheLaunchpadRT.
void NotifyLoaded() override
Report this console loaded.
bool OnMsg(ClientStatusPkt *pPkt)
Take the state of a player.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
The settings of an online game that the host publishes with its session.
Definition netgameparams.h:13
Description of a saved remix.
Definition remixinfo.h:26
Packet the host sends to offer the remix of the game to the guests.
Definition shareremixpkt.h:21
Packet that responds to a TimeRequestPkt with the clock of the responding console.
Definition timeresponsepkt.h:20
Packet the host sends a console that joins the session, with the colour of the console and the settin...
Definition welcomepkt.h:22
JoinpadRT * TheJoinpadRT
The joined session, or null.