Path: blob/master/SonicMania/Objects/CPZ/CaterkillerJr.h
338 views
#ifndef OBJ_CATERKILLERJR_H1#define OBJ_CATERKILLERJR_H23#include "Game.h"45#define CATERKILLERJR_SEGMENT_COUNT (7)67// Object Class8struct ObjectCaterkillerJr {9RSDK_OBJECT10Hitbox hitbox;11uint16 aniFrames;12};1314// Entity Class15struct EntityCaterkillerJr {16RSDK_ENTITY17StateMachine(state);18int32 timer;19Vector2 startPos;20Vector2 bodyPosition[8];21Vector2 bodyVelocity[8];22int32 bodyDirection[8];23int32 bodyTimer[8];24int32 boundsL;25int32 boundsR;26Animator bodyAnimators[CATERKILLERJR_SEGMENT_COUNT];27Animator smokePuffAnimators[3];28};2930// Object Struct31extern ObjectCaterkillerJr *CaterkillerJr;3233// Standard Entity Events34void CaterkillerJr_Update(void);35void CaterkillerJr_LateUpdate(void);36void CaterkillerJr_StaticUpdate(void);37void CaterkillerJr_Draw(void);38void CaterkillerJr_Create(void *data);39void CaterkillerJr_StageLoad(void);40#if GAME_INCLUDE_EDITOR41void CaterkillerJr_EditorDraw(void);42void CaterkillerJr_EditorLoad(void);43#endif44void CaterkillerJr_Serialize(void);4546// Extra Entity Functions47void CaterkillerJr_DebugDraw(void);48void CaterkillerJr_DebugSpawn(void);4950void CaterkillerJr_SetupPositions(void);51void CaterkillerJr_State_SetupVelocities(void);52void CaterkillerJr_State_Move(void);5354#endif //! OBJ_CATERKILLERJR_H555657