wavelength 1.0.0
Loading...
Searching...
No Matches
netnewchatroomscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "os/string.h"
6#include "script/dataarray.h"
7#include "ui/uiscreen.h"
9
16public:
25
33 }
34
43 static UIScreen *New(DataArray *pData) {
44 return new NetNewChatroomScreen(pData);
45 }
46
55 bool DispatchPriv(Message *pMsg) override;
56
64 const char *Title() override {
65 return "";
66 }
67
69 void SetChatroomName(const char *pszChatroomName) {
70 mChatroomName = pszChatroomName;
71 }
72
73private:
84 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
85
96 bool HandleJoinChatroomResult(JoinChatroomResultMsg *pMsg);
97
98 String mChatroomName;
99};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message that reports the result of joining a chat room of the online lobby.
Definition joinchatroomresultmsg.h:21
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netnewchatroomscreen.h:43
~NetNewChatroomScreen() override
Release the screen.
Definition netnewchatroomscreen.h:32
bool DispatchPriv(Message *pMsg) override
Route the result of the creation and the end of the entry.
void SetChatroomName(const char *pszChatroomName)
Definition netnewchatroomscreen.h:69
const char * Title() override
Report no title.
Definition netnewchatroomscreen.h:64
NetNewChatroomScreen(DataArray *pData)
Construct a screen with no name.
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