resonance 1.0.1
Loading...
Searching...
No Matches
gamepowerupplacer.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/ticktask.h"
5
6class Application;
7class LocalPlayer;
9
32public:
46 Application *pApplication,
47 PowerupCollectionI *pCollection);
48
54
70 virtual void MoveCursor(int nStep);
71
80 virtual void AnnounceCursor();
81
93 virtual void DeployPowerup();
94
103 virtual void Activate();
104
114 virtual void Deactivate();
115
130 virtual int Tick(int nElapsedTicks);
131
132private:
133 LocalPlayer *mOwner; // +0x34
134 Application *mApplication; // +0x38
135 PowerupCollectionI *mCollection; // +0x3c
136 // The bar the placement cursor rests on, or -1 for a cursor off the map.
137 int mCursorBar; // +0x40
138};
The FreQuency application.
Definition application.h:23
virtual ~GamePowerupPlacer()
virtual void DeployPowerup()
Deploy the selected powerup at the bar the cursor rests on, then take the cursor off the map.
virtual void MoveCursor(int nStep)
Move the cursor by the negation of the argument and announce where it rests.
virtual void Deactivate()
Withdraw the task from the clock, on the PowerupPlacer side.
virtual void Activate()
Schedule the task on the clock, on the PowerupPlacer side.
virtual int Tick(int nElapsedTicks)
Advance the cursor to the current bar and announce it.
virtual void AnnounceCursor()
Announce where the cursor rests, for a listener that has just registered.
GamePowerupPlacer(LocalPlayer *pOwner, Application *pApplication, PowerupCollectionI *pCollection)
Post a task against the song clock and start with the cursor off the map.
Player driven by a controller on this machine.
Definition localplayer.h:44
Interface of the store a player draws powerups from.
Definition powerupcollectioni.h:29
TickTask(Sch::TickClock *pClock, int nPeriod, int bAligned)