JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MainGameRendererPhone.h
Go to the documentation of this file.
1
17
18#import <CoreGraphics/CoreGraphics.h>
19#import <Foundation/Foundation.h>
20#import <UIKit/UIKit.h>
21
22#import "MainGameRenderer.h"
23
24@class Texture2D;
25@class RendererConf;
26
27NS_ASSUME_NONNULL_BEGIN
28
33@protected
34 BOOL isRetina; // +0x168
35 BOOL is4Inch; // +0x169
36 unsigned int frame; // +0x16c
37 unsigned int subStateChangeFrame; // +0x170
38 Texture2D *texFront; // +0x178
39 Texture2D *texMarker; // +0x180
41 Texture2D *texCombo; // +0x190
42 Texture2D *texReady; // +0x198
43 Texture2D *texRating; // +0x1a0
44 Texture2D *texClear0; // +0x1a8
45 Texture2D *texClear1; // +0x1b0
46 Texture2D *texClear2; // +0x1b8
48 int markerDir[kMainGameGridPanelCount]; // +0x1c8
49}
50
56- (instancetype)init;
57
58#pragma mark - Textures
59
71- (void)loadTexure:(nullable RendererConf *)conf
72 artwork:(nullable UIImage *)artwork
73 index:(nullable UIImage *)index;
74
80- (void)loadRatingTex:(short)rank;
81
87- (void)releaseTexture;
88
89#pragma mark - Play lifecycle
90
98- (void)setState:(unsigned int)state;
99
104- (void)startPlay;
105
110- (void)endResult;
111
117- (double)durationOfReadyGo;
118
119#pragma mark - Drawing
120
126- (void)renderMarker;
127
133- (void)renderBG;
134
140- (void)renderCombo:(unsigned int)combo;
141
152- (void)renderUpdatedScore:(unsigned int)score
153 atPoint:(CGPoint)point
154 alpha:(double)alpha
155 scale:(double)scale
156 boardY:(float)boardY;
157
167- (void)renderScore:(unsigned int)score
168 partnerScore:(unsigned int)partnerScore
169 atPoint:(CGPoint)point
170 scaleH:(double)scaleH
171 alpha:(double)alpha;
172
180- (void)renderBonus:(unsigned int)bonus atPoint:(CGPoint)point alpha:(double)alpha;
181
190- (void)renderMusicBar:(CGPoint)position timeline:(BOOL)timeline alpha:(double)alpha;
191
199- (void)renderTuneInfo:(CGPoint)position artworkSize:(double)artworkSize alpha:(double)alpha;
200
207- (void)renderUpperBG:(double)y;
208
213- (void)renderUpper;
214
220- (void)renderButtons:(double)offset;
221
226- (void)renderPreStart;
227
235- (void)renderCircle:(CGPoint)center size:(double)size alpha:(double)alpha;
236
241- (void)renderReadyGo;
242
247- (void)renderStartMark;
248
253- (void)renderFinish;
254
262- (BOOL)renderCleared:(unsigned int)rank centerY:(double)centerY;
263
271- (BOOL)renderFailed:(unsigned int)rank centerY:(double)centerY;
272
278- (void)renderResult;
279
285- (void)draw;
286
295- (void)drawDebugText:(nullable const char *)text pos:(CGPoint)pos alpha:(float)alpha;
296
301- (void)replayEnd;
302
308- (void)replaySelect;
309
310#pragma mark - Layout override points
311
317@property(nonatomic, readonly) double buttonAreaOffset;
318
323@property(nonatomic, readonly) double gameAreaOffset;
324
325#pragma mark - Button override points
326
331@property(nonatomic, readonly) unsigned int endButtonID;
332
337@property(nonatomic, readonly) unsigned int evaluateButtonID;
338
343@property(nonatomic, readonly) unsigned int goodJobButtonID;
344
349@property(nonatomic, readonly) CGPoint goodJobPosition;
350
355@property(nonatomic, readonly) unsigned int twitterSendButtonID;
356
361@property(nonatomic, readonly) CGPoint twitterBtnPosition;
362
367@property(nonatomic, readonly) unsigned int storeMoveButtonID;
368
373@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
374
375@end
376
377NS_ASSUME_NONNULL_END
378
379// code: language=Objective-C
380// kate: hl Objective-C;
381// vim: set ft=objc :
The base gameplay renderer and driver for a single play session.
The phone-idiom concrete in-game renderer.
Definition MainGameRendererPhone.h:32
Texture2D * texClear2
The third cleared-screen atlas.
Definition MainGameRendererPhone.h:46
Texture2D * texCombo
The combo-number and background atlas.
Definition MainGameRendererPhone.h:41
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPhone.h:37
Texture2D * texClear1
The second cleared-screen atlas.
Definition MainGameRendererPhone.h:45
Texture2D * texClear0
The first cleared-screen atlas.
Definition MainGameRendererPhone.h:44
unsigned int frame
The per-state frame counter, advanced each draw.
Definition MainGameRendererPhone.h:36
Texture2D * texReady
The ready/go countdown atlas.
Definition MainGameRendererPhone.h:42
Texture2D * texFront
The front atlas: chips, buttons, tune info, marks.
Definition MainGameRendererPhone.h:38
Texture2D * texRating
The result-screen rating atlas.
Definition MainGameRendererPhone.h:43
Texture2D * texHoldMarker
The hold-marker atlas.
Definition MainGameRendererPhone.h:40
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition MainGameRendererPhone.h:34
Texture2D * texMarker
The note-marker atlas, unzipped from the archive.
Definition MainGameRendererPhone.h:39
Texture2D * texDebugFont
The debug-font atlas.
Definition MainGameRendererPhone.h:47
BOOL is4Inch
Cached four-inch-aspect flag, sampled once at init.
Definition MainGameRendererPhone.h:35
int markerDir[kMainGameGridPanelCount]
Per-panel marker spin direction.
Definition MainGameRendererPhone.h:48
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