35 : mScreen(pScreen), mOldScreen(pOldScreen) {
44 void *
operator new(
size_t nSize) {
45 return PoolMemAlloc(
static_cast<int>(nSize),
"UIScreenChangeMsg", 0);
53 void operator delete(
void *pBlock) {
87 return "UIScreenChangeMsg";
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
const char * GetName() const override
Report this message's class name.
Definition uiscreenchangemsg.h:86
Message * Clone() override
Produce a heap copy of this message.
Definition uiscreenchangemsg.h:64
UIScreen * GetOldScreen() const
Definition uiscreenchangemsg.h:105
UIScreen * GetScreen() const
Definition uiscreenchangemsg.h:100
UIScreenChangeMsg(UIScreen *pScreen, UIScreen *pOldScreen)
Construct the message.
Definition uiscreenchangemsg.h:34
void PrintExtra(PrnStream &stream) const override
Write the names of both screens.
int Type() override
Report this message's registered identity.
Definition uiscreenchangemsg.h:75
One front-end screen, a set of panels shown together with one panel holding the focus.
Definition uiscreen.h:35
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.
int g_nUIScreenChangeMsgType
Identity that UIScreenChangeMsg::Type() reports.