Path: blob/master/SonicMania/Objects/CPZ/Bubbler.h
338 views
#ifndef OBJ_BUBBLER_H1#define OBJ_BUBBLER_H23#include "Game.h"45// Object Class6struct ObjectBubbler {7RSDK_OBJECT8Hitbox hitboxBadnik;9Hitbox hitboxRange;10Hitbox hitboxProjectile;11uint16 aniFrames;12};1314// Entity Class15struct EntityBubbler {16RSDK_ENTITY17StateMachine(state);18int16 timer;19uint16 spawnTimer;20Vector2 startPos;21uint8 startDir;22Animator bodyHitbox;23Animator flameAnimator;24};2526// Object Entity27extern ObjectBubbler *Bubbler;2829// Standard Entity Events30void Bubbler_Update(void);31void Bubbler_LateUpdate(void);32void Bubbler_StaticUpdate(void);33void Bubbler_Draw(void);34void Bubbler_Create(void *data);35void Bubbler_StageLoad(void);36#if GAME_INCLUDE_EDITOR37void Bubbler_EditorDraw(void);38void Bubbler_EditorLoad(void);39#endif40void Bubbler_Serialize(void);4142// Extra Entity Functions43void Bubbler_DebugSpawn(void);44void Bubbler_DebugDraw(void);4546void Bubbler_HandleInteractions(void);47void Bubbler_HandleProjectileInteractions(void);48void Bubbler_CheckOffScreen(void);4950void Bubbler_State_Init(void);51void Bubbler_State_MotherPatrol(void);52void Bubbler_State_FoundPlayer(void);53void Bubbler_State_AttackPlayer(void);5455void Bubbler_StateProjectile_Seed(void);56void Bubbler_StateProjectile_Bubbler(void);5758#endif //! OBJ_BUBBLER_H596061