JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MainGameRendererPad.h
Go to the documentation of this file.
1
19
20#import <CoreGraphics/CoreGraphics.h>
21#import <Foundation/Foundation.h>
22#import <UIKit/UIKit.h>
23
24#import "MainGameRenderer.h"
25
26NS_ASSUME_NONNULL_BEGIN
27
28@class Texture2D;
29@class RendererConf;
30
35@protected
36 unsigned int frame;
37 unsigned int subStateChangeFrame;
38 int markerDir[kMainGameGridPanelCount];
39}
40
41#pragma mark - Lifecycle
42
48- (instancetype)init;
49
54- (void)dealloc;
55
56#pragma mark - Textures
57
67- (void)loadTexure:(nullable RendererConf *)conf
68 artwork:(nullable UIImage *)artwork
69 index:(nullable UIImage *)index;
70
76- (void)loadRatingTex:(short)rank;
77
82- (void)releaseTexture;
83
84#pragma mark - State
85
92- (void)setState:(unsigned int)state;
93
94#pragma mark - Play lifecycle
95
100- (void)startPlay;
101
106- (void)endResult;
107
113- (void)replaySelect;
114
119- (void)replayEnd;
120
126- (double)durationOfReadyGo;
127
128#pragma mark - Layout
129
136- (double)buttonAreaOffset;
137
143- (double)gameAreaOffset;
144
145#pragma mark - Buttons
146
151@property(nonatomic, readonly) unsigned int endButtonID;
152
157@property(nonatomic, readonly) unsigned int evaluateButtonID;
158
163@property(nonatomic, readonly) unsigned int goodJobButtonID;
164
169@property(nonatomic, readonly) CGPoint goodJobPosition;
170
175@property(nonatomic, readonly) unsigned int twitterSendButtonID;
176
181@property(nonatomic, readonly) CGPoint twitterBtnPosition;
182
187@property(nonatomic, readonly) unsigned int storeMoveButtonID;
188
193@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
194
195#pragma mark - Drawing
196
201- (void)draw;
202
210- (void)drawDebugText:(nullable const char *)text pos:(CGPoint)pos alpha:(float)alpha;
211
216- (void)renderBG;
217
222- (void)renderMarker;
223
230- (void)renderMarkFrame:(CGPoint)point alpha:(double)alpha;
231
237- (void)renderCombo:(unsigned int)combo;
238
248- (void)renderUpdatedScore:(unsigned int)score
249 atPoint:(CGPoint)point
250 alpha:(double)alpha
251 scale:(double)scale
252 boardY:(float)boardY;
253
263- (void)renderScore:(unsigned int)score
264 partnerScore:(unsigned int)partnerScore
265 atPoint:(CGPoint)point
266 scaleH:(double)scaleH
267 alpha:(double)alpha;
268
276- (void)renderBonus:(unsigned int)bonus atPoint:(CGPoint)point alpha:(double)alpha;
277
285- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(double)alpha;
286
294- (void)renderTuneInfo:(CGPoint)pos artworkSize:(double)artworkSize alpha:(double)alpha;
295
302- (void)renderUpperBG:(double)y height:(double)height;
303
308- (void)renderUpper;
309
315- (void)renderButtons:(double)offsetY;
316
321- (void)renderPreStart;
322
330- (void)renderCircle:(CGPoint)point size:(double)size alpha:(double)alpha;
331
336- (void)renderReadyGo;
337
342- (void)renderStartMark;
343
348- (void)renderFinish;
349
357- (BOOL)renderCleared:(unsigned int)animFrame centerY:(double)centerY;
358
366- (BOOL)renderFailed:(unsigned int)animFrame centerY:(double)centerY;
367
373- (void)renderResult;
374
375#pragma mark - Textures
376
381@property(nonatomic, strong, nullable) Texture2D *texBG;
382
387@property(nonatomic, strong, nullable) Texture2D *texFront;
388
393@property(nonatomic, strong, nullable) Texture2D *texMarker;
394
399@property(nonatomic, strong, nullable) Texture2D *texCombo;
400
405@property(nonatomic, strong, nullable) Texture2D *texHoldMarker;
406
411@property(nonatomic, strong, nullable) Texture2D *texReady;
412
417@property(nonatomic, strong, nullable) Texture2D *texRating;
418
423@property(nonatomic, strong, nullable) Texture2D *texClear0;
424
429@property(nonatomic, strong, nullable) Texture2D *texClear1;
430
435@property(nonatomic, strong, nullable) Texture2D *texClear2;
436
441@property(nonatomic, strong, nullable) Texture2D *texDebugFont;
442
443@end
444
445NS_ASSUME_NONNULL_END
446
447// code: language=Objective-C
448// kate: hl Objective-C;
449// vim: set ft=objc :
The base gameplay renderer and driver for a single play session.
The pad in-game renderer.
Definition MainGameRendererPad.h:34
Texture2D * texFront
The front atlas texture: the field, buttons, and lines.
Definition MainGameRendererPad.h:387
Texture2D * texClear1
The second cleared/failed result atlas texture.
Definition MainGameRendererPad.h:429
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPad.h:393
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPad.h:38
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPad.h:36
Texture2D * texReady
The ready/go and start-mark atlas texture.
Definition MainGameRendererPad.h:411
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPad.h:441
Texture2D * texCombo
The combo-number atlas texture.
Definition MainGameRendererPad.h:399
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPad.h:37
Texture2D * texRating
The rank-rating (judgement) atlas texture.
Definition MainGameRendererPad.h:417
Texture2D * texClear0
The first cleared/failed result atlas texture.
Definition MainGameRendererPad.h:423
Texture2D * texBG
The background atlas texture.
Definition MainGameRendererPad.h:381
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPad.h:405
Texture2D * texClear2
The third cleared/failed result atlas texture.
Definition MainGameRendererPad.h:435
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