|
| | PlayMapRepeatRing () |
| | Construct a map whose run holds one span from zero to the terminator.
|
| virtual | ~PlayMapRepeatRing () |
| virtual void | SetBarCount (int nBarCount) |
| | Stores the bar count, resets the spans, and pads the span run to match.
|
| virtual void | ResetSpans () |
| | Resets mSpanStarts to a single empty span.
|
| virtual int | MapBar (int nBar) |
| | Maps the bar into one turn of the repeating ring.
|
| virtual std::vector< int > & | FindBarsPlaying (int nStart, int nMin, int nEnd) |
| | Collects every position between two bounds that plays the same step offset as a position.
|
| virtual void | CloseSpan (int nRepeats) |
| | Closes the last span and opens a new one.
|
| virtual int | EndLoop (int nBar) |
| | Close the open span a bar falls in after the number of passes that reaches the bar.
|
| virtual int | StartLoop (int nBar) |
| | Reopen the span a bar falls in by making it the last one.
|
| virtual int | ToggleLoop (int nBar) |
| | Toggle the span a bar falls in between open and closed.
|
| virtual void | AddUnlabeledStep (int nPosition) |
| | Append a step with an empty label, through PlayMap::AddStep() called directly.
|
| void * | operator new (size_t nSize) |
| | Allocate a map from the tagged heap under the tag PlayMap.
|
| void | operator delete (void *pBlock) |
| | Release a map to the tagged heap under the tag PlayMap.
|
| | PlayMap () |
| | Construct an empty map whose first step is at zero.
|
| virtual | ~PlayMap () |
| | Inline.
|
| virtual void | AddStep (int nPosition, HxStr strLabel) |
| | Slot 2.
|
| virtual int | MapToLinkedStep (int nPosition, int nSet) |
| | Slot 7.
|
| virtual int | GetLength () const |
| | Slot 8.
|
| virtual int | GetEndBar () |
| | Slot 9.
|
| virtual int | GetNumSections () const |
| | Slot 10.
|
| virtual int | GetPatternSection (int nIndex) |
| | Slot 11.
|
| virtual int | GetPatternIndex (int nBar) |
| | Slot 12.
|
| virtual int | GetAbsoluteSectionIndex (int nBar) |
| | Slot 13.
|
| virtual int | IsLooping (int nBar) |
| | Slot 14.
|
| int | FindStepIndex (int nPosition) |
| | Report the index of the step at or before a position that has already been mapped.
|
| int | IsStepStart (int nBar) |
| | Report whether a bar maps exactly onto a step.
|
| int | StepStartBar (int nBar) |
| | Report the bar at which the step containing a bar began.
|
| int | NextStepBar (int nBar) |
| | Report the bar at which the first step at or after a bar begins.
|
| int | FollowingStepBar (int nBar) |
| | Report the bar at which the first step strictly after a bar begins.
|
Traversal that wraps and repeats a section of the sequence.
PlayMapRepeatRing in the RTTI descriptor at 0x00901dc0, with PlayMap as its only base at offset 0. Its table runs twenty entries, one past the base's nineteen, and the entry it adds is slot 19. It overrides slots 1, 3 through 6, and 15.
The object is 0x48 bytes. One member of its own follows the base at +0x3c, a vector of four byte elements storing an ascending run of span starts terminated by the literal 10000000. SetBarCount(), ResetSpans(), and CloseSpan() all operate on it.
CloseSpan() reads the span vector and the base's gap vector together, indexing the gaps modulo their count. Reading a gap by a wrapped index is what the class name describes, and it is the clearest evidence recovered for what any of these three subclasses does.
| virtual void PlayMapRepeatRing::SetBarCount |
( |
int | nBarCount | ) |
|
|
virtual |
Stores the bar count, resets the spans, and pads the span run to match.
The body calls the base directly rather than through the table, which is what a non-virtual-looking call to a known base compiles to, then dispatches ResetSpans() through the vptr, and this class's reset runs. It then searches mSteps for the value and appends -1 to mSpanStarts once for every element before the match. The run is then as long as the prefix the value falls at. A miss searches the whole of mSteps and pads by its full length.
- Parameters
-
| nBarCount | The value to store. |
- Ghidra address:
- NTSC-U/C: 0x0012bb60
- Ghidra address:
- PAL: 0x0012c2a8
Reimplemented from PlayMap.
| virtual void PlayMapRepeatRing::CloseSpan |
( |
int | nRepeats | ) |
|
|
virtual |
Closes the last span and opens a new one.
The body overwrites the last element of mSpanStarts with the second to last plus nRepeats times a gap from the base's gap vector, indexed by the second-to-last position modulo the gap count, then appends the 10000000 terminator again. Indexing the gaps by a wrapped index is the repeat in this class's name.
- Parameters
-
| nRepeats | The multiplier applied to the wrapped gap. |
- Ghidra address:
- NTSC-U/C: 0x0012bc48
- Ghidra address:
- PAL: 0x0012c390
Reimplemented from PlayMap.