JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ResultItemChance.h
Go to the documentation of this file.
1
12
13#import <CoreGraphics/CoreGraphics.h>
14#import <Foundation/Foundation.h>
15
16@class EAGLView;
17@class Texture2D;
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface ResultItemChance : NSObject
25
29@property(nonatomic, weak, nullable) id aDelegate;
30
34@property(nonatomic, strong, nullable) EAGLView *eaglView;
35
45- (void)loadTexure;
46
52- (void)releaseTexture;
53
71- (void)setInfo:(int)itemType
72 itemNum:(int)itemNum
73 size:(CGSize)size
74 center:(CGPoint)center
75 scale:(float)scale;
76
87- (BOOL)draw;
88
95- (BOOL)enableSkip;
96
106- (void)renderEffectParts:(int)type posX:(int)posX posY:(int)posY alpha:(float)alpha;
107
121- (void)renderEffectParts:(int)type posX:(int)posX posY:(int)posY color:(nullable id)color;
122
131- (void)renderEffect;
132
142- (void)restartAnimation;
143
144@end
145
146NS_ASSUME_NONNULL_END
147
148// code: language=Objective-C
149// kate: hl Objective-C;
150// vim: set ft=objc :
The OpenGL ES 1.1 rendering view backing the game.
Definition EAGLView.h:19
Draws and animates the result screen's item-chance sequence.
Definition ResultItemChance.h:25
void loadTexure()
Builds the sprite sheet and resets the particle state.
Definition ResultItemChance.m:115
id aDelegate
The delegate notified about the animation.
Definition ResultItemChance.h:29
void renderEffect()
Renders the thirty-two-particle burst for the current frame.
Definition ResultItemChance.m:327
BOOL enableSkip()
Whether the sequence may be skipped.
Definition ResultItemChance.m:304
EAGLView * eaglView
The rendering surface.
Definition ResultItemChance.h:34
BOOL draw()
Advances and renders one frame of the sequence.
Definition ResultItemChance.m:203
void restartAnimation()
Re-seeds the particle field and restarts the animation.
Definition ResultItemChance.m:363
void releaseTexture()
Drops the sprite sheet.
Definition ResultItemChance.m:136
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40