JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MainGameRendererPhoneKnt.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 AVAudioPlayer;
25@class EffectBgKnit;
26@class RendererConf;
27@class Texture2D;
28@class UpperBGKnit;
29
30NS_ASSUME_NONNULL_BEGIN
31
36@protected
37 BOOL isRetina; // +0x168
38 BOOL is4Inch; // +0x169
39 unsigned int frame; // +0x16c
40 unsigned int subStateChangeFrame; // +0x170
41 unsigned int startMarkFrame; // +0x174
42 float lastHakuPhase; // +0x178
43 float bounceEnergy; // +0x17c
44 unsigned int effFrame; // +0x180
45 unsigned int effSlot; // +0x184
46 int markerDir[kMainGameGridPanelCount]; // +0x188
47}
48
54- (instancetype)init;
55
56#pragma mark - Textures
57
66- (void)loadTexure:(nullable RendererConf *)conf
67 artwork:(nullable UIImage *)artwork
68 index:(nullable UIImage *)index;
69
75- (void)loadResultTex:(short)rank;
76
81- (void)releaseTexture;
82
83#pragma mark - Play lifecycle
84
91- (void)setState:(unsigned int)state;
92
97- (void)startPlay;
98
103- (void)endResult;
104
110- (double)durationOfReadyGo;
111
112#pragma mark - Drawing
113
123- (void)drawClip:(int)clip
124 drawPosition:(CGPoint)drawPosition
125 drawArea:(CGRect)drawArea
126 alpha:(float)alpha;
127
133- (void)renderStartMark:(float)alpha;
134
139- (void)renderMarker;
140
145- (void)renderBG;
146
152- (void)renderShutter:(BOOL)drive;
153
160- (void)renderCombo:(unsigned int)combo alpha:(float)alpha;
161
169- (void)renderUpdatedScore:(unsigned int)score atPoint:(CGPoint)point alpha:(double)alpha;
170
178- (void)renderScore:(unsigned int)score atPoint:(CGPoint)point alpha:(double)alpha;
179
188- (void)renderPartnerScore:(unsigned int)score
189 atPoint:(CGPoint)point
190 scale:(double)scale
191 alpha:(double)alpha;
192
200- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(double)alpha;
201
209- (void)renderTuneInfo:(CGPoint)point artworkSize:(double)artworkSize alpha:(double)alpha;
210
216- (void)renderUpperBG:(BOOL)isResult;
217
222- (void)renderUpper;
223
228- (void)renderButtons;
229
234- (void)renderPreStart;
235
240- (void)renderReadyGo;
241
248- (void)renderFullcombo:(int)animFrame isResult:(BOOL)isResult;
249
254- (void)renderFinish;
255
262- (BOOL)renderExcellent:(unsigned int)animFrame;
263
269- (void)renderRating:(unsigned int)animFrame;
270
277- (BOOL)renderCleared:(unsigned int)animFrame;
278
285- (BOOL)renderFailed:(unsigned int)animFrame;
286
291- (void)renderResult;
292
297- (void)draw;
298
306- (void)drawDebugText:(nullable const char *)text pos:(CGPoint)pos alpha:(float)alpha;
307
312- (void)replayEnd;
313
318- (void)replaySelect;
319
320#pragma mark - Layout override points
321
326@property(nonatomic, readonly) double buttonAreaOffset;
327
332@property(nonatomic, readonly) double gameAreaOffset;
333
334#pragma mark - Button override points
335
340@property(nonatomic, readonly) unsigned int endButtonID;
341
346@property(nonatomic, readonly) unsigned int evaluateButtonID;
347
352@property(nonatomic, readonly) unsigned int goodJobButtonID;
353
358@property(nonatomic, readonly) CGPoint goodJobPosition;
359
364@property(nonatomic, readonly) unsigned int twitterSendButtonID;
365
370@property(nonatomic, readonly) CGPoint twitterBtnPosition;
371
376@property(nonatomic, readonly) unsigned int storeMoveButtonID;
377
382@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
383
384#pragma mark - Textures and knit decoration
385
390@property(nonatomic, strong, nullable) Texture2D *texReady0;
391
396@property(nonatomic, strong, nullable) Texture2D *texReady1;
397
402@property(nonatomic, strong, nullable) Texture2D *texResult;
403
408@property(nonatomic, strong, nullable) Texture2D *texResultBg;
409
414@property(nonatomic, strong, nullable) Texture2D *texBeatBg;
415
420@property(nonatomic, strong, nullable) Texture2D *texDebugFont;
421
426@property(nonatomic, strong, nullable) AVAudioPlayer *sePlayerGo;
427
432@property(nonatomic, strong, nullable) NSMutableArray<Texture2D *> *texWaveAr;
433
438@property(nonatomic, strong, nullable) UpperBGKnit *upperBgKnt;
439
444@property(nonatomic, strong, nullable) EffectBgKnit *effectBgKnt;
445
450@property(nonatomic, strong, nullable) NSMutableArray<EffectBgKnit *> *arrayBgEff;
451
456@property(nonatomic, strong, nullable) Texture2D *texHoldMarker;
457
462@property(nonatomic, strong, nullable) Texture2D *texFront;
463
468@property(nonatomic, strong, nullable) Texture2D *texMarker;
469
474@property(nonatomic, strong, nullable) Texture2D *texCombo;
475
476@end
477
478NS_ASSUME_NONNULL_END
479
480// code: language=Objective-C
481// kate: hl Objective-C;
482// vim: set ft=objc :
The base gameplay renderer and driver for a single play session.
A single animated decoration on the knit background.
Definition EffectBgKnit.h:25
The knit-theme phone-idiom concrete in-game renderer.
Definition MainGameRendererPhoneKnt.h:35
unsigned int effFrame
The background-effect spawn frame counter.
Definition MainGameRendererPhoneKnt.h:44
NSMutableArray< EffectBgKnit * > * arrayBgEff
The active knit background effect sprites.
Definition MainGameRendererPhoneKnt.h:450
Texture2D * texReady1
The second ready-countdown atlas.
Definition MainGameRendererPhoneKnt.h:396
float bounceEnergy
The smoothed knit-background bounce energy.
Definition MainGameRendererPhoneKnt.h:43
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPhoneKnt.h:40
Texture2D * texResult
The result-screen atlas.
Definition MainGameRendererPhoneKnt.h:402
Texture2D * texReady0
The first ready-countdown atlas.
Definition MainGameRendererPhoneKnt.h:390
float lastHakuPhase
The beat phase as of the previous frame.
Definition MainGameRendererPhoneKnt.h:42
BOOL is4Inch
Cached four-inch-aspect flag, sampled once at init.
Definition MainGameRendererPhoneKnt.h:38
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition MainGameRendererPhoneKnt.h:37
Texture2D * texFront
The front atlas: chips, buttons, tune info, marks.
Definition MainGameRendererPhoneKnt.h:462
NSMutableArray< Texture2D * > * texWaveAr
The knit-wave texture layers.
Definition MainGameRendererPhoneKnt.h:432
unsigned int frame
The per-state frame counter, advanced each draw.
Definition MainGameRendererPhoneKnt.h:39
Texture2D * texResultBg
The result-screen background atlas.
Definition MainGameRendererPhoneKnt.h:408
Texture2D * texHoldMarker
The hold-marker atlas.
Definition MainGameRendererPhoneKnt.h:456
AVAudioPlayer * sePlayerGo
The "GO" countdown sound player.
Definition MainGameRendererPhoneKnt.h:426
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPhoneKnt.h:41
Texture2D * texDebugFont
The debug-font atlas.
Definition MainGameRendererPhoneKnt.h:420
UpperBGKnit * upperBgKnt
The knit upper-background decoration.
Definition MainGameRendererPhoneKnt.h:438
int markerDir[kMainGameGridPanelCount]
Per-panel marker spin direction.
Definition MainGameRendererPhoneKnt.h:46
unsigned int effSlot
The next background-effect slot to spawn.
Definition MainGameRendererPhoneKnt.h:45
Texture2D * texMarker
The note-marker atlas.
Definition MainGameRendererPhoneKnt.h:468
EffectBgKnit * effectBgKnt
The current knit background effect sprite.
Definition MainGameRendererPhoneKnt.h:444
Texture2D * texBeatBg
The beat-background atlas.
Definition MainGameRendererPhoneKnt.h:414
Texture2D * texCombo
The combo-number and background atlas.
Definition MainGameRendererPhoneKnt.h:474
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
A four-line knit wave drawn across the upper background.
Definition UpperBGKnit.h:26