wavelength 1.0.0
Loading...
Searching...
No Matches
netcreateaccount.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
6#include "os/string.h"
7#include "script/dataarray.h"
8#include "ui/uiscreen.h"
10
17public:
25 explicit NetCreateAccount(DataArray *pData);
26
33 ~NetCreateAccount() override {
34 }
35
43 static UIScreen *New(DataArray *pData) {
44 return new NetCreateAccount(pData);
45 }
46
55 bool DispatchPriv(Message *pMsg) override;
56
64 const char *Title() override {
65 return "";
66 }
67
69 void SetPassword(const char *pszPassword) {
70 mPassword = pszPassword;
71 }
72
74 void SetSavePassword(int nSavePassword) {
75 mSavePassword = nSavePassword;
76 }
77
78private:
89 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
90
101 bool HandleCreateAccountResult(CreateAccountResultMsg *pMsg);
102
113 bool HandleJoypad(JoypadInputMsg *pMsg);
114
115 String mPassword;
116
123 int mSavePassword;
124};
Result of NetLobby::CreateAccount().
Definition createaccountresultmsg.h:13
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
~NetCreateAccount() override
Release the screen.
Definition netcreateaccount.h:33
const char * Title() override
Report no title.
Definition netcreateaccount.h:64
NetCreateAccount(DataArray *pData)
Construct a screen with an empty password.
void SetSavePassword(int nSavePassword)
Definition netcreateaccount.h:74
bool DispatchPriv(Message *pMsg) override
Route the end of the entry, the result of the creation, and the controller messages.
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netcreateaccount.h:43
void SetPassword(const char *pszPassword)
Definition netcreateaccount.h:69
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