JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MainGameRendererPadRpl.h
Go to the documentation of this file.
1
23
24#import <CoreGraphics/CoreGraphics.h>
25#import <Foundation/Foundation.h>
26#import <UIKit/UIKit.h>
27
28#import "MainGameRenderer.h"
29
30@class AVAudioPlayer;
31@class Texture2D;
32@class RendererConf;
33
34NS_ASSUME_NONNULL_BEGIN
35
40@protected
41 unsigned int frame;
42 unsigned int subStateChangeFrame;
43 unsigned int startMarkFrame;
46 int markerDir[kMainGameGridPanelCount];
47}
48
49#pragma mark - Lifecycle
50
57- (instancetype)init;
58
63- (void)dealloc;
64
65#pragma mark - Textures
66
77- (void)loadTexure:(nullable RendererConf *)conf
78 artwork:(nullable UIImage *)artwork
79 index:(nullable UIImage *)index;
80
86- (void)loadResultTex:(short)rank;
87
92- (void)releaseTexture;
93
94#pragma mark - State
95
103- (void)setState:(unsigned int)state;
104
105#pragma mark - Play lifecycle
106
111- (void)startPlay;
112
117- (void)endResult;
118
124- (void)replaySelect;
125
130- (void)replayEnd;
131
137- (double)durationOfReadyGo;
138
139#pragma mark - Layout
140
146- (double)buttonAreaOffset;
147
153- (double)gameAreaOffset;
154
155#pragma mark - Buttons
156
161@property(nonatomic, readonly) unsigned int endButtonID;
162
167@property(nonatomic, readonly) unsigned int evaluateButtonID;
168
173@property(nonatomic, readonly) unsigned int goodJobButtonID;
174
179@property(nonatomic, readonly) CGPoint goodJobPosition;
180
185@property(nonatomic, readonly) unsigned int twitterSendButtonID;
186
191@property(nonatomic, readonly) CGPoint twitterBtnPosition;
192
197@property(nonatomic, readonly) unsigned int storeMoveButtonID;
198
203@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
204
205#pragma mark - Drawing
206
211- (void)draw;
212
220- (void)drawDebugText:(nullable const char *)text pos:(CGPoint)pos alpha:(float)alpha;
221
227- (void)renderBG;
228
235- (void)renderShutter:(BOOL)drive;
236
242- (void)renderMarker;
243
249- (void)renderStartMark:(float)alpha;
250
257- (void)renderCombo:(unsigned int)combo alpha:(float)alpha;
258
266- (void)renderUpdatedScore:(unsigned int)score atPoint:(CGPoint)point alpha:(double)alpha;
267
275- (void)renderScore:(unsigned int)score atPoint:(CGPoint)point alpha:(double)alpha;
276
285- (void)renderPartnerScore:(unsigned int)score
286 atPoint:(CGPoint)point
287 scale:(double)scale
288 alpha:(double)alpha;
289
297- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(double)alpha;
298
307- (void)renderTuneInfo:(CGPoint)pos artworkSize:(double)artworkSize alpha:(double)alpha;
308
315- (void)renderUpperBG:(BOOL)wipe;
316
322- (void)renderUpper;
323
328- (void)renderButtons;
329
335- (void)renderPreStart;
336
341- (void)renderReadyGo;
342
348- (void)renderFullcombo:(int)animFrame;
349
355- (void)renderFinish;
356
363- (BOOL)renderExcellent:(unsigned int)animFrame;
364
370- (void)renderRating:(unsigned int)animFrame;
371
378- (BOOL)renderCleared:(unsigned int)animFrame;
379
386- (BOOL)renderFailed:(unsigned int)animFrame;
387
393- (void)renderResult;
394
395#pragma mark - Textures
396
400@property(nonatomic, strong, nullable) Texture2D *texReady0;
401
405@property(nonatomic, strong, nullable) Texture2D *texReady1;
406
410@property(nonatomic, strong, nullable) Texture2D *texFront;
411
415@property(nonatomic, strong, nullable) Texture2D *texMarker;
416
420@property(nonatomic, strong, nullable) Texture2D *texHoldMarker;
421
425@property(nonatomic, strong, nullable) Texture2D *texCombo;
426
430@property(nonatomic, strong, nullable) Texture2D *texResult;
431
435@property(nonatomic, strong, nullable) Texture2D *texDebugFont;
436
440@property(nonatomic, strong, nullable) AVAudioPlayer *sePlayerGo;
441
445@property(nonatomic, strong, nullable) NSMutableArray *arrayBgRip;
446
450@property(nonatomic, strong, nullable) NSMutableArray *arrayUpperBgRip;
451
452@end
453
454NS_ASSUME_NONNULL_END
455
456// code: language=Objective-C
457// kate: hl Objective-C;
458// vim: set ft=objc :
The base gameplay renderer and driver for a single play session.
The pad Ripples-theme in-game renderer.
Definition MainGameRendererPadRpl.h:39
AVAudioPlayer * sePlayerGo
The "GO" voice audio player, loaded lazily in the ready-go state.
Definition MainGameRendererPadRpl.h:440
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPadRpl.h:42
Texture2D * texCombo
The combo-number and background atlas texture.
Definition MainGameRendererPadRpl.h:425
NSMutableArray * arrayBgRip
The background ripple pool.
Definition MainGameRendererPadRpl.h:445
Texture2D * texFront
The front atlas texture: the field, buttons, lines, tune-info, and score glyphs.
Definition MainGameRendererPadRpl.h:410
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPadRpl.h:46
Texture2D * texReady0
The first ready/go atlas texture.
Definition MainGameRendererPadRpl.h:400
NSMutableArray * arrayUpperBgRip
The upper-background bouncing-sprite ripple pool.
Definition MainGameRendererPadRpl.h:450
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPadRpl.h:435
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPadRpl.h:420
float lastHakuPhase
The beat phase as of the last upper-BG update.
Definition MainGameRendererPadRpl.h:44
Texture2D * texReady1
The second ready/go atlas texture: the "GO" chips.
Definition MainGameRendererPadRpl.h:405
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPadRpl.h:41
float bounceEnergy
The accumulated button-press bounce energy.
Definition MainGameRendererPadRpl.h:45
Texture2D * texResult
The result atlas texture: cleared/failed/excellent graphics and the rating glyphs.
Definition MainGameRendererPadRpl.h:430
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPadRpl.h:43
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPadRpl.h:415
The abstract base renderer for a play session.
Definition MainGameRenderer.h:73
The marker, sound, and display settings the gameplay renderer draws a play session with.
Definition RendererConf.h:23
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40