Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/OOZ/Aquis.h
338 views
1
#ifndef OBJ_AQUIS_H
2
#define OBJ_AQUIS_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectAquis {
8
RSDK_OBJECT
9
Hitbox hitboxBadnik;
10
Hitbox hitboxRange;
11
Hitbox hitboxProjectile;
12
uint16 aniFrames;
13
uint16 sfxShot;
14
};
15
16
// Entity Class
17
struct EntityAquis {
18
RSDK_ENTITY
19
StateMachine(state);
20
int32 timer;
21
uint8 playerInRange;
22
int32 remainingTurns;
23
Vector2 startPos;
24
uint8 startDir;
25
Animator mainAnimator;
26
Animator wingAnimator;
27
};
28
29
// Object Struct
30
extern ObjectAquis *Aquis;
31
32
// Standard Entity Events
33
void Aquis_Update(void);
34
void Aquis_LateUpdate(void);
35
void Aquis_StaticUpdate(void);
36
void Aquis_Draw(void);
37
void Aquis_Create(void *data);
38
void Aquis_StageLoad(void);
39
#if GAME_INCLUDE_EDITOR
40
void Aquis_EditorDraw(void);
41
void Aquis_EditorLoad(void);
42
#endif
43
void Aquis_Serialize(void);
44
45
// Extra Entity Functions
46
void Aquis_DebugSpawn(void);
47
void Aquis_DebugDraw(void);
48
49
void Aquis_CheckPlayerCollisions(void);
50
void Aquis_CheckOffScreen(void);
51
52
void Aquis_State_Init(void);
53
void Aquis_State_Idle(void);
54
void Aquis_State_Moving(void);
55
void Aquis_State_Shoot(void);
56
void Aquis_State_Turning(void);
57
void Aquis_State_Flee(void);
58
59
void Aquis_State_Shot(void);
60
61
#endif //! OBJ_AQUIS_H
62
63