#ifndef OBJ_SPRINGBOARD_H #define OBJ_SPRINGBOARD_H #include "Game.h" // Object Class struct ObjectSpringboard { RSDK_OBJECT // Unused here, was used in S2' 13 for getting the 'force' from propertyValue, mania just uses an editable var TABLE(int32 forces[3], { -0x40000, -0xA0000, -0x80000 }); TABLE(int32 springPower[40], { 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x10000, -0x20000, -0x20000, -0x20000, -0x20000, -0x20000, -0x20000, -0x20000, -0x20000, -0x30000, -0x30000, -0x30000, -0x30000, -0x30000, -0x30000, -0x40000, -0x40000 }); TABLE(int32 heightsReady[28], { 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 17, 18, 19, 20, 20, 21, 21, 22, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24 }); TABLE(int32 heightsFlat[28], { 8, 9, 10, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 15, 15, 16, 16, 16, 16, 15, 15, 14, 14, 13, 13 }); uint16 aniFrames; uint16 sfxSpring; }; // Entity Class struct EntitySpringboard { RSDK_ENTITY int32 force; int32 bounceDelay; // bounceDelay goes unused here, though it was used in S2 '13 uint8 activePlayers; Animator animator; }; // Object Struct extern ObjectSpringboard *Springboard; // Standard Entity Events void Springboard_Update(void); void Springboard_LateUpdate(void); void Springboard_StaticUpdate(void); void Springboard_Draw(void); void Springboard_Create(void *data); void Springboard_StageLoad(void); #if RETRO_INCLUDE_EDITOR void Springboard_EditorDraw(void); void Springboard_EditorLoad(void); #endif void Springboard_Serialize(void); // Extra Entity Functions void Springboard_DebugSpawn(void); void Springboard_DebugDraw(void); #endif //! OBJ_SPRINGBOARD_H