38 void *
operator new(
size_t nSize) {
39 return PoolMemAlloc(
static_cast<int>(nSize),
"StartGameMsg", 0);
47 void operator delete(
void *pBlock) {
75 return "StartGameMsg";
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
int Type() override
Report this message's registered identity.
Definition startgamemsg.h:65
const char * GetName() const override
Report this message's class name.
Definition startgamemsg.h:74
int GetSeed() const
Definition startgamemsg.h:88
StartGameMsg(int nSeed)
Construct a message with a seed.
Definition startgamemsg.h:29
Message * Clone() override
Produce a heap copy of this message.
Definition startgamemsg.h:56
void PrintExtra(PrnStream &stream) const override
Write the seed.
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_nStartGameMsgType
Identity that StartGameMsg::Type() reports.