wavelength 1.0.0
Loading...
Searching...
No Matches
dueltrackpitcher.h
Go to the documentation of this file.
1#pragma once
2
6#include "game/playmap.h"
7#include "game/track.h"
8#include "gs/muse.h"
9
19public:
25 class Receiver {
26 public:
33 virtual ~Receiver() {
34 }
35
42 virtual void OnRejected(int nTick, int nSlot) = 0;
43
49 virtual void OnPlaced(int nTick) = 0;
50 };
51
72 Receiver *pReceiver,
73 PitchTrackRiffData *pRiffData,
74 CatchTrackData *pGems,
75 PlayMap *pPlayMap,
76 DuelPatternTable *pPatterns,
77 int nPhraseTicks,
78 int nCatchSide,
79 int nTicksPerBar,
80 int nPhraseBars,
81 int nWindowTicks,
82 bool bEasiest);
83
91 void ShowPattern(int nStartBar);
92
102 void Press(int nSlot);
103
112
113private:
114 Track *mTrack;
115 Receiver *mReceiver;
116 PitchTrackRiffData *mRiffData;
117 CatchTrackData *mGems;
118 PlayMap *mPlayMap;
119 DuelPatternTable *mPatterns;
120 int mPhraseTicks;
121 int mCatchSide;
122 int mTicksPerBar;
123 int mPhraseBars;
124 int mWindowTicks;
125 int mStepTicks;
126 Muse *mMuse;
127 int mLastTick;
128 int mLastSlot;
129 int mRepeats;
130 int mLockedUntilTick;
131 int mEasiest;
132};
The gems of one catch track, in the order of their ticks.
Definition catchtrackdata.h:14
The duel patterns of a song, each with the tick it applies from, embedded in the song at +0x20.
Definition duelpatterntable.h:14
Object told of each press the pitcher judges.
Definition dueltrackpitcher.h:25
virtual ~Receiver()
Release the receiver.
Definition dueltrackpitcher.h:33
virtual void OnRejected(int nTick, int nSlot)=0
Handle a press on a step the duel pattern does not allow.
virtual void OnPlaced(int nTick)=0
Handle a gem placed.
void SetRiffData(PitchTrackRiffData *pRiffData)
Change the riffs the gems play.
void ShowPattern(int nStartBar)
Show the steps the duel pattern allows in a phrase.
void Press(int nSlot)
Judge a press of a gem button at the current tick, and place a gem when the press counts.
DuelTrackPitcher(Track *pTrack, Receiver *pReceiver, PitchTrackRiffData *pRiffData, CatchTrackData *pGems, PlayMap *pPlayMap, DuelPatternTable *pPatterns, int nPhraseTicks, int nCatchSide, int nTicksPerBar, int nPhraseBars, int nWindowTicks, bool bEasiest)
Construct a pitcher.
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
The riffs a pitch track plays, one set of riffs for each tick that starts a set.
Definition pitchtrackriffdata.h:16
Map from the bars a song plays to the bars of the song as written, with the loops that repeat stretch...
Definition playmap.h:11
One instrument track of the song that a player can play.
Definition track.h:18