static Message * New()
Produce a packet with two empty strings on the heap.
virtual const char * GetName() const
Report this packet's class name.
virtual void restoreGuts(IBStream &stream)
Read the Packet words and then both strings back from a stream.
virtual Message * Clone()
Produce a heap copy of this packet.
GameChatPacket(const HxStr &sender, const HxStr &text)
Construct a packet carrying two strings.
GameChatPacket()
Construct a packet with two empty strings.
Definition gamechatpacket.h:32
virtual void PrintExtra(std::ostream &stream) const
Write both strings to a diagnostic stream, with nothing between them.
virtual int Type()
Report this packet's registered identity.
virtual void saveGuts(OBStream &stream) const
Write the Packet words and then both strings to a stream.
HxStr GetSender()
Report the first string.
HxStr GetText()
Report the second string.
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
ToAllOtherNetManagersPacket()
Route the packet with the pair 2 and 0.
Definition toallothernetmanagerspacket.h:21
int g_nGameChatPacketType
Identity that GameChatPacket::Type() reports.