resonance 1.0.1
Loading...
Searching...
No Matches
gamercmd.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "game/gamer.h"
6#include "sch/command.h"
7
25class GamerCmd : public Sch::Command {
26public:
35 GamerCmd(Gamer *pGamer, int nBar) : mGamer(pGamer), mBar(nBar) {
36 }
37
45 virtual int CmdID();
46
53 virtual void Execute();
54
64 virtual void Print(std::ostream &stream);
65
66private:
67 Gamer *mGamer; // +0x0c
68 int mBar; // +0x10
69};
70
77extern int g_nGamerCmdID;
virtual void Execute()
Run Gamer::OnBar() for the bar.
GamerCmd(Gamer *pGamer, int nBar)
Prepare the update of one bar.
Definition gamercmd.h:35
virtual int CmdID()
Report the identifier this class streams itself under.
virtual void Print(std::ostream &stream)
Write this command's description to stream.
One participant's view of a session, driven by messages.
Definition gamer.h:47
Base of every action the scheduler performs on behalf of another subsystem.
Definition command.h:60
int g_nGamerCmdID
Identifier GamerCmd::CmdID() reports, which is zero.