Path: blob/master/SonicMania/Objects/FBZ/Clucker.h
338 views
#ifndef OBJ_CLUCKER_H1#define OBJ_CLUCKER_H23#include "Game.h"45// Object Class6struct ObjectClucker {7RSDK_OBJECT8Hitbox hitboxBadnik;9Hitbox hitboxRange;10Hitbox hitboxSolid;11Hitbox hitboxEgg;12uint16 aniFrames;13uint16 sfxShot;14};1516// Entity Class17struct EntityClucker {18RSDK_ENTITY19StateMachine(state);20int32 yOffset;21int32 xOffset;22uint8 timer;23uint16 delay;24bool32 hasParent;25Animator animator;26};2728// Object Struct29extern ObjectClucker *Clucker;3031// Standard Entity Events32void Clucker_Update(void);33void Clucker_LateUpdate(void);34void Clucker_StaticUpdate(void);35void Clucker_Draw(void);36void Clucker_Create(void *data);37void Clucker_StageLoad(void);38#if GAME_INCLUDE_EDITOR39void Clucker_EditorDraw(void);40void Clucker_EditorLoad(void);41#endif42void Clucker_Serialize(void);4344// Extra Entity Functions45void Clucker_DebugSpawn(void);46void Clucker_DebugDraw(void);4748void Clucker_HandlePlayerInteractions(void);49void Clucker_CheckOffScreen(void);5051void Clucker_State_Init(void);52void Clucker_State_CheckForPlayer(void);53void Clucker_State_Appear(void);54void Clucker_State_ShootDelay(void);55void Clucker_State_Shoot(void);56void Clucker_State_Turn(void);57void Clucker_State_Destroyed(void);5859void Clucker_State_Egg(void);6061#endif //! OBJ_CLUCKER_H626364