Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Pinball/PBL_HUD.h
338 views
1
#ifndef OBJ_PBL_HUD_H
2
#define OBJ_PBL_HUD_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
8
typedef enum {
9
PBL_HUD_MSG_SCROLL_LEFT_SLOW,
10
PBL_HUD_MSG_SCROLL_LEFT,
11
PBL_HUD_MSG_SCROLL_RIGHT_SLOW,
12
PBL_HUD_MSG_SCROLL_RIGHT,
13
PBL_HUD_MSG_SHOW_RISE,
14
PBL_HUD_MSG_SHOW_FALL,
15
PBL_HUD_MSG_FLASH,
16
PBL_HUD_MSG_FLASH_CRANE,
17
} PBL_HUDMessageTypes;
18
19
// Object Class
20
struct ObjectPBL_HUD {
21
RSDK_OBJECT
22
uint16 aniFrames;
23
uint16 unused1;
24
};
25
26
// Entity Class
27
struct EntityPBL_HUD {
28
RSDK_ENTITY
29
StateMachine(state);
30
StateMachine(stateDraw);
31
int32 timer;
32
Vector2 offset;
33
String text;
34
Animator displayAnimator;
35
Animator baseAnimator;
36
Animator textAnimator;
37
};
38
39
// Object Struct
40
extern ObjectPBL_HUD *PBL_HUD;
41
42
// Standard Entity Events
43
void PBL_HUD_Update(void);
44
void PBL_HUD_LateUpdate(void);
45
void PBL_HUD_StaticUpdate(void);
46
void PBL_HUD_Draw(void);
47
void PBL_HUD_Create(void *data);
48
void PBL_HUD_StageLoad(void);
49
#if GAME_INCLUDE_EDITOR
50
void PBL_HUD_EditorDraw(void);
51
void PBL_HUD_EditorLoad(void);
52
#endif
53
void PBL_HUD_Serialize(void);
54
55
// Extra Entity Functions
56
void PBL_HUD_DisplayMessage(EntityPBL_HUD *entity, const char *message, int32 type);
57
58
void PBL_HUD_StateMessage_ScrollLeftSlow(void);
59
void PBL_HUD_StateMessage_ScrollLeftFast(void);
60
void PBL_HUD_StateMessage_ScrollRightSlow(void);
61
void PBL_HUD_StateMessage_ScrollRightFast(void);
62
void PBL_HUD_StateMessage_ShowMove(void);
63
void PBL_HUD_StateMessage_Flash(void);
64
void PBL_HUD_StateMessage_FlashThenCrane(void);
65
66
void PBL_HUD_Draw_Basic(void);
67
void PBL_HUD_Draw_Message(void);
68
void PBL_HUD_Draw_Score(void);
69
70
void PBL_HUD_State_RevealCrane(void);
71
void PBL_HUD_State_HideCrane(void);
72
#endif
73
74
#endif //! OBJ_PBL_HUD_H
75
76