17#import <CoreGraphics/CoreGraphics.h>
18#import <Foundation/Foundation.h>
19#import <UIKit/UIKit.h>
21NS_ASSUME_NONNULL_BEGIN
104 artwork:(nullable UIImage *)artwork
105 index:(nullable UIImage *)index;
111- (void)releaseTexture;
118- (double)durationOfReadyGo;
137- (double)buttonAreaOffset;
144- (double)gameAreaOffset;
159- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
166- (CGRect)getMusicBarRect;
173- (void)backupScoreData;
197@property(nonatomic)
unsigned int state;
281@property(nonatomic, unsafe_unretained, nullable) UIImageView *
goodJobImage;
341@property(nonatomic, readonly) BOOL
isEndState;
347@property(nonatomic, readonly)
unsigned int endButtonID;
@ kMainGameGridPanelCount
The number of panels in the game's 4x4 grid, sizing the per-panel state arrays.
Definition MainGameRenderer.h:25
The OpenGL ES 1.1 rendering view backing the game.
Definition EAGLView.h:19
Draws hold markers from a sixteen-entry panel array.
Definition HoldMarkerRender.h:41
The abstract base renderer for a play session.
Definition MainGameRenderer.h:73
unsigned int comboEffectFrame
The combo burst animation frame.
Definition MainGameRenderer.h:77
unsigned int evaluateButtonID
The button identifier for the evaluate action.
Definition MainGameRenderer.m:116
BOOL hasMusic
Whether the session has music.
Definition MainGameRenderer.h:323
unsigned int partnerFinalBonus
The partner's final bonus.
Definition MainGameRenderer.h:251
BOOL isNewRecord
Whether the session set a new record.
Definition MainGameRenderer.h:215
unsigned int comboCutFrame
The combo cut-in animation frame.
Definition MainGameRenderer.h:78
BOOL showCombo
Whether the combo counter is shown.
Definition MainGameRenderer.h:209
unsigned int subState
The render sub-state within the current state .
Definition MainGameRenderer.h:203
UIImageView * goodJobImage
The good-job overlay image view.
Definition MainGameRenderer.h:281
BOOL isEndState
Whether the session has reached its end sub-state.
Definition MainGameRenderer.m:50
BOOL partnerFullcombo
Whether the partner achieved a full combo.
Definition MainGameRenderer.h:257
EAGLView * eaglView
The GL view this renderer draws into.
Definition MainGameRenderer.h:269
float goodJobAlphaMax
The peak opacity of the good-job overlay.
Definition MainGameRenderer.h:287
ScoreData replayBackupScore
The score snapshot captured for replay by -backupScoreData .
Definition MainGameRenderer.h:407
BOOL isDownload
Whether the tune was downloaded.
Definition MainGameRenderer.h:311
BOOL isConnected
Whether the session partner is connected.
Definition MainGameRenderer.h:299
RendererConf * rendererConf
The renderer configuration for the current session.
Definition MainGameRenderer.h:191
BOOL replayPlaying
Whether a replay is playing.
Definition MainGameRenderer.h:329
CGPoint twitterBtnPosition
The position of the tweet-send button.
Definition MainGameRenderer.m:136
MainGameHoldState holdState[kMainGameGridPanelCount]
Per-panel hold-marker state.
Definition MainGameRenderer.h:82
CGPoint storeMoveBtnPosition
The position of the store-move button.
Definition MainGameRenderer.m:146
int btnDown
The currently held-down button bitmask.
Definition MainGameRenderer.h:233
BOOL isCustom
Whether this is a custom (edit) sequence.
Definition MainGameRenderer.h:305
unsigned int _state
The high-level render state.
Definition MainGameRenderer.h:84
unsigned int lastCombo
The combo count as of the last frame.
Definition MainGameRenderer.h:76
unsigned int endButtonID
The button identifier for the end action.
Definition MainGameRenderer.m:111
unsigned int storeMoveButtonID
The button identifier for the store-move action.
Definition MainGameRenderer.m:141
BOOL partnerFinished
Whether the session partner has finished.
Definition MainGameRenderer.h:239
float shutterOpen
The shutter-open animation progress.
Definition MainGameRenderer.h:75
int btnPress
The currently pressed button bitmask.
Definition MainGameRenderer.h:227
unsigned int goodJobButtonID
The button identifier for the good-job action.
Definition MainGameRenderer.m:121
int upperBgHeight40
The default upper-background height used by the 480-point-tall phone layout.
Definition MainGameRenderer.m:99
int markerState[kMainGameGridPanelCount]
Per-panel marker animation state.
Definition MainGameRenderer.h:81
unsigned int scoreDisplay
The score currently shown, tweened up.
Definition MainGameRenderer.h:79
HoldMarkerRender * holdMarkerRender
The hold-marker sub-renderer.
Definition MainGameRenderer.h:83
unsigned int state
The high-level render state.
Definition MainGameRenderer.h:197
BOOL isTextureChange
Whether a texture change is pending.
Definition MainGameRenderer.h:317
BOOL isSession
Whether this is a session (versus) play.
Definition MainGameRenderer.h:293
unsigned int scoreRecord
The previous best score record for this tune.
Definition MainGameRenderer.h:221
unsigned int partnerScore
The partner's current score.
Definition MainGameRenderer.h:245
Sequence * sequence
The note sequence being played.
Definition MainGameRenderer.h:263
unsigned int twitterSendButtonID
The button identifier for the tweet-send action.
Definition MainGameRenderer.m:131
unsigned int partnerScoreDisplay
The partner's shown score, tweened up.
Definition MainGameRenderer.h:80
BOOL scoreBackup
Whether the score has been backed up for replay.
Definition MainGameRenderer.h:335
int ghostPress
The ghost-play button bitmask.
Definition MainGameRenderer.h:275
int buttonMarginForScreen40
The default button margin used by the 480-point-tall phone layout.
Definition MainGameRenderer.m:94
CGPoint goodJobPosition
The position of the good-job overlay.
Definition MainGameRenderer.m:126
The marker, sound, and display settings the gameplay renderer draws a play session with.
Definition RendererConf.h:23
The core gameplay judgement engine for a single play session.
Definition Sequence.h:102
One panel's hold-marker tracking state.
Definition MainGameRenderer.h:35
unsigned int move
Whether and how the hold is moving.
Definition MainGameRenderer.h:37
int state
The hold's lifecycle state.
Definition MainGameRenderer.h:36
unsigned int endSector
The sector the hold terminates in.
Definition MainGameRenderer.h:39
unsigned int currentSector
The sector the hold currently occupies.
Definition MainGameRenderer.h:38
A play session's cumulative score summary.
Definition MainGameRenderer.h:50
int curCombo
The combo running at the play position.
Definition MainGameRenderer.h:56
int maxCombo
The longest combo reached.
Definition MainGameRenderer.h:57
int nGood
The number of notes judged good.
Definition MainGameRenderer.h:53
int nMiss
The number of missed notes.
Definition MainGameRenderer.h:51
int nPerfect
The number of notes judged perfect.
Definition MainGameRenderer.h:55
int tension
The tension gauge level, clamped to its maximum.
Definition MainGameRenderer.h:58
char musicBarResult[30]
The result-screen music bar's per-bar grades.
Definition MainGameRenderer.h:62
int nPoor
The number of notes judged poor.
Definition MainGameRenderer.h:52
int nGreat
The number of notes judged great.
Definition MainGameRenderer.h:54
int point
The base score from notes, nine tenths of the raw.
Definition MainGameRenderer.h:59
int totalPoint
point plus bonusPoint ; the final score.
Definition MainGameRenderer.h:61
int bonusPoint
The bonus scaled from tension .
Definition MainGameRenderer.h:60