wavelength 1.0.0
Loading...
Searching...
No Matches
netjoinlpadscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
7#include "os/string.h"
8#include "script/dataarray.h"
10
20public:
27 ~NetJoinLPadScreen() override = default;
28
36 explicit NetJoinLPadScreen(DataArray *pData);
37
48 static UIScreen *New(DataArray *pData) {
49 return new NetJoinLPadScreen(pData);
50 }
51
59 static void ShowLaunchpadLost();
60
70 bool DispatchPriv(Message *pMsg) override;
71
79 const char *Title() override {
80 return "";
81 }
82
91 void SetLaunchpad(int nLaunchpadId, int nLaunchpadWorld) {
92 mLaunchpadWorld = nLaunchpadWorld;
93 mLaunchpadId = nLaunchpadId;
94 }
95
105
116
126
139
140private:
141 int mLaunchpadId;
142 int mLaunchpadWorld;
143 String mReturnScreen;
144 int mCancelling;
145};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message that reports that this console joined an online session.
Definition joinlaunchpadsuccessmsg.h:22
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Message that reports that the online launchpad of this console ended before the game started.
Definition launchpadabortedmsg.h:14
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
static void ShowLaunchpadLost()
Show the lpad_error dialog with the lost session message, unless an error dialog already shows or is ...
bool HandleAborted(LaunchpadAbortedMsg *pMsg)
Go back after a cancel, or show the error of the failure.
void SetLaunchpad(int nLaunchpadId, int nLaunchpadWorld)
Choose the session to join.
Definition netjoinlpadscreen.h:91
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netjoinlpadscreen.h:48
bool HandleJoypad(JoypadInputMsg *pMsg)
Cancel the attempt when the triangle button goes down.
const char * Title() override
Report the empty title of the screen.
Definition netjoinlpadscreen.h:79
~NetJoinLPadScreen() override=default
Destroy the object.
NetJoinLPadScreen(DataArray *pData)
Construct the screen from its script description, with no session chosen.
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Start joining once the screen has entered, recording the screen it entered from.
bool DispatchPriv(Message *pMsg) override
Route the messages of the session, the end of the entry, and the controller buttons,...
bool HandleSuccess(JoinLaunchpadSuccessMsg *pMsg)
Take the settings of the game, clear the chat of the launchpad, and go to it, unless the player cance...
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23