176 std::vector<PlayerInfo> mPlayers;
Appearance of a player's avatar.
Definition freqappearance.h:39
Settings a game session is started with.
Definition gameparams.h:42
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Output half of the byte stream interface.
Definition obstream.h:25
A player's identity and settings.
Definition playerinfo.h:39
virtual const char * GetName() const
Report this packet's class name.
FreqAppearance GetAppearance()
Report the carried appearance.
static Message * New()
Produce a default-constructed packet on the heap.
SPJoinAcceptPacket()
Construct a packet with default settings, an empty colour, a fresh appearance, and no players.
HxStr GetUsername()
Report the username of the carried appearance.
virtual int Type()
Report this packet's registered identity.
virtual void PrintExtra(std::ostream &stream) const
Write plid:, destid:, the settings, clr:, and thm: with their values to a diagnostic stream.
void AddPlayer(const PlayerInfo &player)
Append one player to the player list.
GameParams GetParams()
Report the game settings.
HxStr GetColorName()
Report the colour name.
virtual Message * Clone()
Produce a heap copy of this packet.
virtual void restoreGuts(IBStream &stream)
Read the fields back in the order saveGuts() wrote them, resizing the record vector to the count read...
virtual void saveGuts(OBStream &stream) const
Write the Packet words, both identifiers, the settings, the colour, the appearance,...
ToSingleNetManagerPacket()
Route the packet with the pair 1 and 0.
Definition tosinglenetmanagerpacket.h:21
int g_nSPJoinAcceptPacketType
Identity that SPJoinAcceptPacket::Type() reports.