45 LobbyPlayersMsg(std::list<LobbyPlayer> *pPlayers,
int nLaunchpad,
int nHasPrevious)
46 : mPlayers(pPlayers), mLaunchpad(nLaunchpad), mHasPrevious(nHasPrevious) {
55 void *
operator new(
size_t nSize) {
56 return PoolMemAlloc(
static_cast<int>(nSize),
"LobbyPlayersMsg", 0);
64 void operator delete(
void *pBlock) {
92 return "LobbyPlayersMsg";
120 std::list<LobbyPlayer> *mPlayers;
const char * GetName() const override
Report this message's class name.
Definition lobbyplayersmsg.h:91
void PrintExtra(PrnStream &stream) const override
Write the session when there is one, and the players.
int Type() override
Report this message's registered identity.
Definition lobbyplayersmsg.h:82
static constexpr int kNoLaunchpad
The value of mLaunchpad when the players are not those of a session.
Definition lobbyplayersmsg.h:34
std::list< LobbyPlayer > * GetPlayers() const
Definition lobbyplayersmsg.h:115
Message * Clone() override
Produce a heap copy of this message, which points at the same players.
Definition lobbyplayersmsg.h:73
int GetLaunchpad() const
Definition lobbyplayersmsg.h:110
LobbyPlayersMsg(std::list< LobbyPlayer > *pPlayers, int nLaunchpad, int nHasPrevious)
Construct a message that points at the players.
Definition lobbyplayersmsg.h:45
int GetHasPrevious() const
Definition lobbyplayersmsg.h:105
~LobbyPlayersMsg() override=default
Destroy the object.
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 g_nLobbyPlayersMsgType
Identity that LobbyPlayersMsg::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.