Path: blob/master/SonicMania/Objects/HCZ/MegaChopper.h
338 views
#ifndef OBJ_MEGACHOPPER_H1#define OBJ_MEGACHOPPER_H23#include "Game.h"45// Object Class6struct ObjectMegaChopper {7RSDK_OBJECT8Hitbox hitboxBadnik;9Hitbox hitboxChop;10uint16 aniFrames;11};1213// Entity Class14struct EntityMegaChopper {15RSDK_ENTITY16StateMachine(state);17Vector2 startPos;18EntityPlayer *grabbedPlayer;19Vector2 playerPos;20uint8 playerDir;21uint16 shakeTimer;22uint16 shakeCount;23uint16 lastShakeFlags;24uint8 nibbleTimer;25Animator animator;26};2728// Object Struct29extern ObjectMegaChopper *MegaChopper;3031// Standard Entity Events32void MegaChopper_Update(void);33void MegaChopper_LateUpdate(void);34void MegaChopper_StaticUpdate(void);35void MegaChopper_Draw(void);36void MegaChopper_Create(void *data);37void MegaChopper_StageLoad(void);38#if GAME_INCLUDE_EDITOR39void MegaChopper_EditorDraw(void);40void MegaChopper_EditorLoad(void);41#endif42void MegaChopper_Serialize(void);4344// Extra Entity Functions45void MegaChopper_DebugSpawn(void);46void MegaChopper_DebugDraw(void);4748void MegaChopper_CheckPlayerCollisions(void);49void MegaChopper_CheckOffScreen(void);5051void MegaChopper_Input_GrabbedP1(void);52void MegaChopper_Input_GrabbedP2(void);53void MegaChopper_Input_GrabbedP2_AI(void);5455void MegaChopper_State_Init(void);56void MegaChopper_State_InWater(void);57void MegaChopper_State_OutOfWater(void);58void MegaChopper_State_Chopping(void);59void MegaChopper_State_ShakenOff(void);6061#endif //! OBJ_MEGACHOPPER_H626364