JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ScratchInfo Class Reference

A scratch track resolved from the challenge line-up, with the player's score, rank, and full-combo state per difficulty. More...

#include <ScratchInfo.h>

Inheritance diagram for ScratchInfo:
Collaboration diagram for ScratchInfo:

Instance Methods

(instancetype) - init:
 Builds the track from a store dictionary, looking its details up in the challenge line-up.
(void) - openUpdate:
 Updates the per-difficulty results from a rank dictionary.
(int) - getMyScore:
 The player's score for a difficulty (clamped to the first slot beyond the range).
(int) - getMyRank:
 The player's rank for a difficulty.
(int) - getMyIndex:
 The player's index for a difficulty.
(void) - setMyRank:rank:index:
 Sets the player's rank for a difficulty; the index argument is unused.
(BOOL) - getFullCombo:
 Whether the player has a full combo on a difficulty.

Properties

int musicID
 The track's music identifier.
NSInteger packID
 The identifier of the pack this track belongs to.
BOOL bOpen
 Whether the scratch card for this track has been opened.
NSDate * endDate
 The date this scratch track stops being playable.
NSString * musicName
 The track's title.
NSString * artistName
 The track's artist.
NSString * imgURL
 The jacket image URL from the challenge line-up.
NSString * itemURL
 The downloadable song data URL from the challenge line-up.

Detailed Description

A scratch track resolved from the challenge line-up, with the player's score, rank, and full-combo state per difficulty.

Method Documentation

◆ getFullCombo:

- (BOOL) getFullCombo: (int) difficulty

Whether the player has a full combo on a difficulty.

Parameters
difficultyThe difficulty index.
Ghidra address:
0x1caae0
Ghidra address:
0x1caae0

◆ getMyIndex:

- (int) getMyIndex: (int) difficulty

The player's index for a difficulty.

Reads the same rank array as -getMyRank: — the binary's getter reads the rank ivar despite its name.

Parameters
difficultyThe difficulty index.
Ghidra address:
0x1caaa0
Ghidra address:
0x1caaa0

◆ getMyRank:

- (int) getMyRank: (int) difficulty

The player's rank for a difficulty.

Parameters
difficultyThe difficulty index.
Ghidra address:
0x1caa80
Ghidra address:
0x1caa80

◆ getMyScore:

- (int) getMyScore: (int) difficulty

The player's score for a difficulty (clamped to the first slot beyond the range).

Parameters
difficultyThe difficulty index.
Ghidra address:
0x1caa60
Ghidra address:
0x1caa60

◆ init:

- (instancetype) init: (nullable NSDictionary *) dictionary

Builds the track from a store dictionary, looking its details up in the challenge line-up.

Parameters
dictionaryThe store dictionary (carries music_id ).
Returns
The initialised track.
Ghidra address:
0x1ca474

◆ openUpdate:

- (void) openUpdate: (nullable NSDictionary *) dictionary

Updates the per-difficulty results from a rank dictionary.

Parameters
dictionaryThe my_rank dictionary.
Ghidra address:
0x1ca854

◆ setMyRank:rank:index:

- (void) setMyRank: (int) difficulty
rank: (int) rank
index: (int) index 

Sets the player's rank for a difficulty; the index argument is unused.

Parameters
difficultyThe difficulty index.
rankThe rank to store (only when non-negative).
indexUnused.
Ghidra address:
0x1caac0
Ghidra address:
0x1caac0

Property Documentation

◆ artistName

- (NSString*) artistName
readwritenonatomicstrong

The track's artist.

Ghidra address:
0x1cab84

◆ endDate

- (NSDate*) endDate
readwritenonatomicstrong

The date this scratch track stops being playable.

Ghidra address:
0x1cabf0

◆ musicName

- (NSString*) musicName
readwritenonatomicstrong

The track's title.

Ghidra address:
0x1cab60

◆ packID

- (NSInteger) packID
readwritenonatomicassign

The identifier of the pack this track belongs to.

Ghidra address:
0x1cab20

The documentation for this class was generated from the following files: