Input half of the byte stream interface.
Definition ibstream.h:36
Reference to a registered object by its identifier, resolved on first use.
Definition idableptr.h:30
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
One participant in a session, local or remote.
Definition player.h:39
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
ToAllOtherGameSystemsPacket()
Route the packet with the pair 2 and 3.
Definition toallothergamesystemspacket.h:21
int mTrack
The selected track.
Definition trackselectpacket.h:129
IDablePtr< Player > mPlayer
The player that selected.
Definition trackselectpacket.h:126
virtual void saveGuts(OBStream &stream) const
Write the Packet words, the position, the player's identifier, the track, and the place to a stream.
TrackSelectPacket(Sch::Tick position, Player *pPlayer, int nTrack, int nPlace)
Report a player's track selection to the other game systems.
Definition trackselectpacket.h:50
virtual int Type()
Report this packet's registered identity.
int mPlace
The place on the track.
Definition trackselectpacket.h:132
virtual void restoreGuts(IBStream &stream)
Read the fields back in place in the order saveGuts() wrote them.
Sch::Tick mPosition
The song position of the selection.
Definition trackselectpacket.h:123
static Message * New()
Produce a default-constructed packet on the heap.
TrackSelectPacket()
Construct a packet with the position at kTickInfinity and no player.
Definition trackselectpacket.h:36
virtual void PrintExtra(std::ostream &stream) const
Write the position, a space, the player, track:, the track, place:, and the place to a diagnostic s...
virtual const char * GetName() const
Report this packet's class name.
virtual Message * Clone()
Produce a heap copy of this packet.
int g_nTrackSelectPacketType
Identity that TrackSelectPacket::Type() reports.