Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/HCZ/Blastoid.h
338 views
1
#ifndef OBJ_BLASTOID_H
2
#define OBJ_BLASTOID_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectBlastoid {
8
RSDK_OBJECT
9
Hitbox hitboxBody;
10
Hitbox hitboxProjectile;
11
uint16 aniFrames;
12
uint16 sfxShot;
13
};
14
15
// Entity Class
16
struct EntityBlastoid {
17
RSDK_ENTITY
18
StateMachine(state);
19
uint8 timer;
20
Animator animator;
21
};
22
23
// Object Struct
24
extern ObjectBlastoid *Blastoid;
25
26
// Standard Entity Events
27
void Blastoid_Update(void);
28
void Blastoid_LateUpdate(void);
29
void Blastoid_StaticUpdate(void);
30
void Blastoid_Draw(void);
31
void Blastoid_Create(void *data);
32
void Blastoid_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void Blastoid_EditorDraw(void);
35
void Blastoid_EditorLoad(void);
36
#endif
37
void Blastoid_Serialize(void);
38
39
// Extra Entity Functions
40
void Blastoid_DebugSpawn(void);
41
void Blastoid_DebugDraw(void);
42
43
void Blastoid_CheckPlayerCollisions(void);
44
45
void Blastoid_State_Init(void);
46
void Blastoid_State_Body(void);
47
void Blastoid_State_Projectile(void);
48
49
#endif //! OBJ_BLASTOID_H
50
51