resonance 1.0.1
Loading...
Searching...
No Matches
netplayer.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/player.h"
4
6
24class NetPlayer : public Player {
25public:
40 NetPlayer(int nId, int nTrack, const HxStr &name, const FreqAppearance *pAppearance);
41
46 virtual ~NetPlayer();
47
54 virtual int GetTrack();
55
62 virtual int GetPlace();
63
76 virtual void DispatchPriv(Message *message);
77
78private:
85 void OnTrackSelectPacket(TrackSelectPacket *pPacket);
86
87 // The track and place of a TrackSelectMsg addressed to this player, copied from the message's
88 // +0x04 and +0x08 by DispatchPriv.
89 int mTrack; // +0x48
90 int mPlace; // +0x4c
91};
Appearance of a player's avatar.
Definition freqappearance.h:39
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
virtual int GetTrack()
Report the track the last selection chose.
NetPlayer(int nId, int nTrack, const HxStr &name, const FreqAppearance *pAppearance)
Construct a player that a remote machine drives.
virtual int GetPlace()
Report the place the last selection chose.
virtual ~NetPlayer()
virtual void DispatchPriv(Message *message)
Receive one message.
Player(int nId, const HxStr &colorName, const FreqAppearance *pAppearance)
Register the player under its identifier and start its tallies.
Network packet the game sends between game systems.
Definition trackselectpacket.h:28