Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/HCZ/Pointdexter.h
338 views
1
#ifndef OBJ_POINTDEXTER_H
2
#define OBJ_POINTDEXTER_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPointdexter {
8
RSDK_OBJECT
9
Hitbox hitbox;
10
uint16 aniFrames;
11
};
12
13
// Entity Class
14
struct EntityPointdexter {
15
RSDK_ENTITY
16
StateMachine(state);
17
uint8 timer;
18
Vector2 startPos;
19
uint8 startDir;
20
Animator animator;
21
};
22
23
// Object Struct
24
extern ObjectPointdexter *Pointdexter;
25
26
// Standard Entity Events
27
void Pointdexter_Update(void);
28
void Pointdexter_LateUpdate(void);
29
void Pointdexter_StaticUpdate(void);
30
void Pointdexter_Draw(void);
31
void Pointdexter_Create(void *data);
32
void Pointdexter_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void Pointdexter_EditorDraw(void);
35
void Pointdexter_EditorLoad(void);
36
#endif
37
void Pointdexter_Serialize(void);
38
39
// Extra Entity Functions
40
void Pointdexter_DebugSpawn(void);
41
void Pointdexter_DebugDraw(void);
42
43
void Pointdexter_CheckOffScreen(void);
44
void Pointdexter_CheckPlayerCollisions(void);
45
46
void Pointdexter_State_Init(void);
47
void Pointdexter_State_Swimming(void);
48
49
#endif //! OBJ_POINTDEXTER_H
50
51