JubeatPlus 3.9.11
Loading...
Searching...
No Matches
Sequence.h File Reference

The core gameplay judgement engine for a single play session. More...

import <Foundation/Foundation.h>
import "MainGameRenderer.h"
Include dependency graph for Sequence.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SequenceEvent
 One note event of a chart. More...
class  Sequence
 The core gameplay judgement engine for a single play session. More...

Enumerations

enum  { kSequencePanelCount = 16 }
 The playfield panel count. More...
enum  { kSequenceMusicBarSegmentCount = 120 }
 The result-screen music-bar segment count. More...
enum  { kSequenceMusicBarByteCount = 60 }
 The chart's raw music-bar bitmap length. More...
enum  SequenceJudgeGrade : short {
  SequenceJudgeGradeNone = 0 , SequenceJudgeGradeMiss = 1 , SequenceJudgeGradePoor = 2 , SequenceJudgeGradeGood = 3 ,
  SequenceJudgeGradeGreat = 4 , SequenceJudgeGradePerfect = 5
}
 A judgement grade for a single note hit. More...
enum  SequenceRank : short {
  SequenceRankTier0 = 0 , SequenceRankTier1 = 1 , SequenceRankTier2 = 2 , SequenceRankTier3 = 3 ,
  SequenceRankTier4 = 4 , SequenceRankTier5 = 5 , SequenceRankTier6 = 6 , SequenceRankTier7 = 7 ,
  SequenceRankTier8 = 8
}
 A score rank tier, returned by +rankOfPoint: and -rank . More...

Detailed Description

The core gameplay judgement engine for a single play session.

Reconstructed from Ghidra program Jubeat (class Sequence, image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base.

The superclass is NSObject, taken from the [NSObject init] chain-up in -initWithData: at 0x1abe24. A Sequence loads a chart's note events, advances the play position over time (-seekToTime: ), judges button presses into timing grades (-judge:btnPress: ), and tracks the combo, score, tension, the beat (haku) and measure phases, and the hold markers. It owns a malloc'd C array of note events plus two short replay-judge side tables, and exposes its live score summary as the shared ScoreData that MainGameRenderer snapshots for replay.

The class carries no embedded __FILE__ path and no C++ RTTI, so the file basename is the runtime class name and this file lives at the Project/ root.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The result-screen music-bar segment count.

Enumerator
kSequenceMusicBarSegmentCount 

The number of segments in the result-screen music bar; each note maps to one via its sector.

◆ anonymous enum

anonymous enum

The chart's raw music-bar bitmap length.

Enumerator
kSequenceMusicBarByteCount 

The length of the raw music-bar bitmap the chart carries, in bytes.

◆ anonymous enum

anonymous enum

The playfield panel count.

Enumerator
kSequencePanelCount 

The number of playfield panels (a 4x4 grid), sizing the per-panel judgement arrays.

◆ SequenceJudgeGrade

enum SequenceJudgeGrade : short

A judgement grade for a single note hit.

Recovered from -addJudge: at 0x1ad138, whose switch dispatches on these exact values, and from the timing-window classifier inlined into -judge:btnPress: . A Poor grade resets the combo and costs tension exactly as a Miss does; the two differ only in which tally they bump. The field is a short throughout the engine, so the enumeration is backed by short .

Enumerator
SequenceJudgeGradeNone 

No judgement (too early, or not yet judged).

SequenceJudgeGradeMiss 

A miss; resets the combo and costs tension.

SequenceJudgeGradePoor 

A poor; resets the combo and costs tension like a miss.

SequenceJudgeGradeGood 

A good; extends the combo.

SequenceJudgeGradeGreat 

A great; extends the combo.

SequenceJudgeGradePerfect 

A perfect; extends the combo.

◆ SequenceRank

enum SequenceRank : short

A score rank tier, returned by +rankOfPoint: and -rank .

Recovered from the ascending point thresholds in +rankOfPoint: at 0x1aba80; the field is a short return, so the enumeration is backed by short .

Enumerator
SequenceRankTier0 

Below 500000 points.

SequenceRankTier1 

500000 to 699999 points.

SequenceRankTier2 

700000 to 799999 points.

SequenceRankTier3 

800000 to 849999 points.

SequenceRankTier4 

850000 to 899999 points.

SequenceRankTier5 

900000 to 949999 points.

SequenceRankTier6 

950000 to 979999 points.

SequenceRankTier7 

980000 to 999999 points.

SequenceRankTier8 

A perfect 1000000 points.