Path: blob/master/SonicMania/Objects/Pinball/PBL_Player.h
338 views
#ifndef OBJ_PBL_PLAYER_H1#define OBJ_PBL_PLAYER_H23#include "Game.h"45#if MANIA_USE_PLUS6// Object Class7struct ObjectPBL_Player {8RSDK_OBJECT9uint16 aniFrames;10uint16 unused1;11Hitbox innerBox;12Hitbox outerBox;13uint16 sfxPlunger;14uint16 jumpFrames;15uint16 ballFrames;16uint16 sceneIndex;17};1819// Entity Class20struct EntityPBL_Player {21RSDK_ENTITY22StateMachine(state);23int32 timer;24int32 angleX;25int32 height;26int32 unused1;27int32 unused2;28Matrix matRotate;29Matrix matTranslate;30Matrix matWorld;31Matrix matNormal;32StateMachine(stateInput);33int32 controllerID;34bool32 up;35bool32 down;36bool32 left;37bool32 right;38bool32 jumpPress;39bool32 jumpHold; // completely unused, but probably pretty likely40Animator animator;41};4243// Object Struct44extern ObjectPBL_Player *PBL_Player;4546// Standard Entity Events47void PBL_Player_Update(void);48void PBL_Player_LateUpdate(void);49void PBL_Player_StaticUpdate(void);50void PBL_Player_Draw(void);51void PBL_Player_Create(void *data);52void PBL_Player_StageLoad(void);53#if GAME_INCLUDE_EDITOR54void PBL_Player_EditorDraw(void);55void PBL_Player_EditorLoad(void);56#endif57void PBL_Player_Serialize(void);5859// Extra Entity Functions60void PBL_Player_Input_P1(void);6162// States63void PBL_Player_State_Launcher(void);64void PBL_Player_State_Ground(void);65void PBL_Player_State_Air(void);6667#endif6869#endif //! OBJ_PBL_PLAYER_H707172