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
ToAllOtherGameSystemsPacket()
Route the packet with the pair 2 and 3.
Definition toallothergamesystemspacket.h:21
UpdateScorePacket(int nPlayerId, int nScoreDelta)
Report a change to a player's score.
Definition updatescorepacket.h:46
static Message * New()
Produce a default-constructed packet on the heap.
int mPlayerId
The identifier of the scoring player.
Definition updatescorepacket.h:123
virtual const char * GetName() const
Report this packet's class name.
virtual int Type()
Report this packet's registered identity.
int mScoreDelta
The points to add.
Definition updatescorepacket.h:126
virtual void restoreGuts(IBStream &stream)
Read the packet back from a stream.
UpdateScorePacket()
Construct a packet with only the Packet words set.
Definition updatescorepacket.h:34
virtual Message * Clone()
Produce a heap copy of this packet.
virtual void saveGuts(OBStream &stream) const
Write the packet to a stream.
virtual void PrintExtra(std::ostream &stream) const
Write the payload to a diagnostic stream.
int g_nUpdateScorePacketType
Identity that UpdateScorePacket::Type() reports.