Path: blob/master/SonicMania/Objects/Unused/TargetBumper.h
338 views
#ifndef OBJ_TARGETBUMPER_H1#define OBJ_TARGETBUMPER_H23#include "Game.h"45typedef enum { TARGETBUMP_HORIZONTAL, TARGETBUMP_VERTICAL, TARGETBUMP_DIAGONAL } TargetBumperTypes;67typedef enum { TARGETBUMP_THREE_HIT, TARGETBUMP_TWO_HIT, TARGETBUMP_ONE_HIT } TargetBumperHitCount;89// Object Class10struct ObjectTargetBumper {11RSDK_OBJECT12uint16 aniFrames;13};1415// Entity Class16struct EntityTargetBumper {17RSDK_ENTITY18StateMachine(state);19int32 type;20int32 hitCount;21Vector2 startPos;22Vector2 curPos;23int32 hitTimer;24Animator animator;25};2627// Object Entity28extern ObjectTargetBumper *TargetBumper;2930// Standard Entity Events31void TargetBumper_Update(void);32void TargetBumper_LateUpdate(void);33void TargetBumper_StaticUpdate(void);34void TargetBumper_Draw(void);35void TargetBumper_Create(void *data);36void TargetBumper_StageLoad(void);37#if GAME_INCLUDE_EDITOR38void TargetBumper_EditorDraw(void);39void TargetBumper_EditorLoad(void);40#endif41void TargetBumper_Serialize(void);4243// Extra Entity Functions44void TargetBumper_DebugSpawn(void);45void TargetBumper_DebugDraw(void);4647void TargetBumper_CheckPlayerCollisions(void);4849void TargetBumper_State_Idle(void);50void TargetBumper_State_Hit(void);5152#endif //! OBJ_TARGETBUMPER_H535455