|
JubeatPlus 3.9.11
|
The core gameplay judgement engine for a single play session. More...
#include <Sequence.h>


Instance Methods | |
| (instancetype) | - initWithData: |
| Initialises the engine from a packed binary sequence blob. | |
| (instancetype) | - initWithCustomData:tableData: |
| Initialises the engine from an editor's custom chart dictionary and note table. | |
| (void) | - replay |
| Resets the play state for a replay, preserving the recorded replay-judge tables. | |
| (void) | - reset |
| Resets the play state and clears every recorded judgement for a fresh play. | |
| (void) | - seekToTime: |
| Advances the play position to a time, updating the tempo, measure, and beat phases. | |
| (void) | - getMarkerState: |
| Fills a per-panel marker-animation state array for the current position. | |
| (void) | - getHoldMarkerState: |
| Fills a per-panel hold-marker state array for the current position. | |
| (const ScoreData *) | - getScore |
| Returns the live score summary. | |
| (BOOL) | - isFullcombo |
| Returns whether every scoring note has been judged at least good (a full combo). | |
| (BOOL) | - isExcellent |
| Returns whether every scoring note was judged perfect (an excellent). | |
| (SequenceRank) | - rank |
| Returns the score rank tier for the current total points. | |
| (const char *) | - getMusicBar |
| Returns the chart's raw music-bar bitmap. | |
| (nullable NSArray *) | - getPlayEvents |
Returns the tap events as boxed [grade, panel] number pairs. | |
| (nullable NSArray *) | - getHoldEvents |
Returns the hold events as boxed [grade, value] number pairs. | |
| (void) | - judge:btnPress: |
| Judges the current button state against the notes around the play position. | |
Class Methods | |
| (void) | + getMusicBarData:raw: |
| Copies the chart's raw music-bar bitmap out of an encoded sequence blob. | |
| (unsigned int) | + checkExistHoldMarkerFlag: |
| Returns a bitmask of which difficulties in a downloaded pack contain a hold marker. | |
| (BOOL) | + checkExistHoldMarker: |
| Returns whether a single decoded sequence blob contains any hold marker. | |
| (SequenceRank) | + rankOfPoint: |
| Maps a point total to its score rank tier. | |
Protected Attributes | |
| SequenceEvent * | events |
| The malloc'd chart-event array. | |
| unsigned int | numEvent |
The number of events in events . | |
| unsigned int | numPlayEvent |
| The number of judged (scoring) notes. | |
| unsigned int | endSector |
| The chart's final sector. | |
| char | musicBar [kSequenceMusicBarByteCount] |
| The raw music-bar bitmap from the chart. | |
| unsigned int | currentIndex |
The seek cursor over events . | |
| unsigned int | currentHoldIndex |
| The seek cursor over hold events. | |
| unsigned int | judgedIndex |
The judgement cursor over events . | |
| unsigned int | currentTempo |
| The tempo in effect at the play position. | |
| unsigned int | oldTempo |
| The tempo in effect before the last change. | |
| unsigned int | lastHakuSector |
| The sector of the last beat (haku) line. | |
| unsigned int | nextHakuSector |
| The sector of the next beat (haku) line. | |
| unsigned int | lastMeasureSector |
| The sector of the last measure line. | |
| unsigned int | nextMeasureSector |
| The sector of the next measure line. | |
| short | lastJudge [kSequencePanelCount] |
| The most recent grade shown per panel. | |
| unsigned int | lastJudgeSector [kSequencePanelCount] |
| The sector of that grade per panel. | |
| ScoreData | gameScore |
| The live score summary. | |
| unsigned int | replaceTable [kSequencePanelCount] |
| The panel-remap table (random mode). | |
| BOOL | isPerfectMode |
| Whether perfect-mode judging is in effect. | |
| NSArray * | playEventTable |
| Tap events, as boxed [grade, panel] pairs. | |
| NSArray * | holdEventTable |
| Hold events, as boxed [grade, value] pairs. | |
| short * | replayJudgeTable |
| The recorded per-note tap grades, for replay. | |
| short * | replayTmpJudgeTable |
| The recorded per-note hold grades, for replay. | |
| unsigned short | _firstMarker |
| The panel bitmask of the first marker. | |
| unsigned int | _currentSector |
| The current play position, in sectors. | |
| unsigned int | _firstMarkerSector |
| The sector of the first marker. | |
| double | _currentTime |
| The current play position, in seconds. | |
Properties | |
| float | hakuPhase |
| The normalised phase within the current beat (haku) interval, in [0, 1]. | |
| float | measurePhase |
| The normalised phase within the current measure interval, in [0, 1]. | |
| float | playPosition |
| The normalised play position over the whole chart, in [0, 1]. | |
| double | currentTime |
| The current play position, in seconds. | |
| unsigned int | currentSector |
| The current play position, in sectors. | |
| unsigned short | firstMarker |
| The panel bitmask of the first marker. | |
| unsigned int | firstMarkerSector |
| The sector of the first marker. | |
The core gameplay judgement engine for a single play session.
| + (BOOL) checkExistHoldMarker: | (nullable NSData *) | data |
Returns whether a single decoded sequence blob contains any hold marker.
| data | The decoded sequence blob. |
YES if any event is a hold event. | + (unsigned int) checkExistHoldMarkerFlag: | (nullable KUnzip *) | data |
Returns a bitmask of which difficulties in a downloaded pack contain a hold marker.
| data | The KUnzip archive holding the three difficulty sequence entries. |
| - (NSArray *) getHoldEvents |
Returns the hold events as boxed [grade, value] number pairs.
| - (void) getHoldMarkerState: | (MainGameHoldState *) | state |
Fills a per-panel hold-marker state array for the current position.
| state | A 16-element destination array of MainGameHoldState . |
| - (void) getMarkerState: | (int *) | state |
Fills a per-panel marker-animation state array for the current position.
| state | A 16-element destination array of packed marker states. |
| - (const char *) getMusicBar |
Returns the chart's raw music-bar bitmap.
| + (void) getMusicBarData: | (char *) | raw | |
| raw: | (nullable NSData *) | data |
Copies the chart's raw music-bar bitmap out of an encoded sequence blob.
| raw | The 60-byte destination buffer. |
| data | The encoded sequence blob; ignored unless longer than 96 bytes. |
| - (NSArray *) getPlayEvents |
Returns the tap events as boxed [grade, panel] number pairs.
| - (const ScoreData *) getScore |
Returns the live score summary.
| - (instancetype) initWithCustomData: | (nullable NSDictionary *) | data | |
| tableData: | (nullable NSArray *) | tableData |
Initialises the engine from an editor's custom chart dictionary and note table.
| data | The chart-header dictionary (event count, note count, end sector, first marker). |
| tableData | The array of boxed packed note words. |
nil. | - (instancetype) initWithData: | (nullable NSData *) | data |
Initialises the engine from a packed binary sequence blob.
| data | The encoded sequence blob, whose header is one of the "IJBQ" / "IJSQ" magics. |
nil if the blob is missing or malformed. | - (BOOL) isExcellent |
Returns whether every scoring note was judged perfect (an excellent).
| - (BOOL) isFullcombo |
Returns whether every scoring note has been judged at least good (a full combo).
| - (void) judge: | (int) | btnPress | |
| btnPress: | (int) | btnDown |
Judges the current button state against the notes around the play position.
| btnPress | The bitmask of buttons newly pressed this frame. |
| btnDown | The bitmask of buttons currently held down. |
| - (SequenceRank) rank |
Returns the score rank tier for the current total points.
| + (SequenceRank) rankOfPoint: | (unsigned int) | point |
Maps a point total to its score rank tier.
| point | The total points. |
| - (void) replay |
Resets the play state for a replay, preserving the recorded replay-judge tables.
| - (void) reset |
Resets the play state and clears every recorded judgement for a fresh play.
| - (void) seekToTime: | (double) | time |
Advances the play position to a time, updating the tempo, measure, and beat phases.
| time | The new play time, in seconds; times before the current one are ignored. |
|
readnonatomicassign |
The current play position, in sectors.
|
readnonatomicassign |
The current play position, in seconds.
|
readnonatomicassign |
The panel bitmask of the first marker.
|
readnonatomicassign |
The sector of the first marker.
|
readnonatomicassign |
The normalised phase within the current beat (haku) interval, in [0, 1].
|
readnonatomicassign |
The normalised phase within the current measure interval, in [0, 1].
|
readnonatomicassign |
The normalised play position over the whole chart, in [0, 1].