wavelength 1.0.0
Loading...
Searching...
No Matches
hostlaunchpadsuccessmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
6#include "os/mem.h"
7
15
23public:
31 explicit HostLaunchpadSuccessMsg(const NetLaunchpadPlayer &player) : mPlayer(player) {
32 }
33
40 void *operator new(size_t nSize) {
41 return PoolMemAlloc(static_cast<int>(nSize), "HostLaunchpadSuccessMsg", 0);
42 }
43
49 void operator delete(void *pBlock) {
50 PoolMemFree(pBlock);
51 }
52
58 Message *Clone() override {
59 return new HostLaunchpadSuccessMsg(*this);
60 }
61
67 int Type() override {
69 }
70
76 const char *GetName() const override {
77 return "HostLaunchpadSuccessMsg";
78 }
79
87 void PrintExtra(PrnStream &stream) const override;
88
89private:
90 NetGameParams mParams;
91 NetLaunchpadPlayer mPlayer;
92};
HostLaunchpadSuccessMsg(const NetLaunchpadPlayer &player)
Construct a message with default settings.
Definition hostlaunchpadsuccessmsg.h:31
void PrintExtra(PrnStream &stream) const override
Write the player of this console.
Message * Clone() override
Produce a heap copy of this message.
Definition hostlaunchpadsuccessmsg.h:58
int Type() override
Report this message's registered identity.
Definition hostlaunchpadsuccessmsg.h:67
const char * GetName() const override
Report this message's class name.
Definition hostlaunchpadsuccessmsg.h:76
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
The settings of an online game that the host publishes with its session.
Definition netgameparams.h:13
Text output stream.
Definition prnstream.h:16
int g_nHostLaunchpadSuccessMsgType
Identity that HostLaunchpadSuccessMsg::Type() reports.
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.
The description of one player of the online session this console is in.
Definition netlaunchpadplayer.h:13