resonance 1.0.1
Loading...
Searching...
No Matches
localplayercmd.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "sch/command.h"
6
7class IBStream;
8class LocalPlayer;
9class OBStream;
10
21public:
28 LocalPlayerCmd(LocalPlayer *pPlayer, int nTick) : mPlayer(pPlayer), mTick(nTick) {
29 }
30
35 virtual ~LocalPlayerCmd();
36
44 virtual int CmdID();
45
52 virtual void Execute();
53
61 virtual void Print(std::ostream &stream);
62
70 virtual void saveGuts(OBStream &stream) const;
71
79 virtual void restoreGuts(IBStream &stream);
80
87 static int sCmdID;
88
89private:
90 LocalPlayer *mPlayer; // +0x0c
91 int mTick; // +0x10
92};
Input half of the byte stream interface.
Definition ibstream.h:36
virtual int CmdID()
Report sCmdID.
virtual void saveGuts(OBStream &stream) const
Write nothing.
static int sCmdID
The class's command identifier, which the image initialises to zero.
Definition localplayercmd.h:87
LocalPlayerCmd(LocalPlayer *pPlayer, int nTick)
Prepare the update of one bar.
Definition localplayercmd.h:28
virtual void Execute()
Run LocalPlayer::OnBarTick() for the tick.
virtual void Print(std::ostream &stream)
Write {LocalPlayerCmd}.
virtual void restoreGuts(IBStream &stream)
Read nothing.
virtual ~LocalPlayerCmd()
Player driven by a controller on this machine.
Definition localplayer.h:44
Output half of the byte stream interface.
Definition obstream.h:25
Base of every action the scheduler performs on behalf of another subsystem.
Definition command.h:60