Path: blob/master/SonicMania/Objects/UFO/UFO_Player.h
338 views
#ifndef OBJ_UFO_PLAYER_H1#define OBJ_UFO_PLAYER_H23#include "Game.h"45// Object Class6struct ObjectUFO_Player {7RSDK_OBJECT8int32 maxSpeed;9uint16 aniFrames; // unused10uint16 sfxJump;11uint16 sfxCharge;12uint16 sfxRelease;13uint16 sfxLoseRings;14uint16 sfxDrop;15uint16 sfxBumper;16uint16 sfxSpring;17uint16 sfxSkid;18uint16 sfxGrittyGround;19uint16 jogModel;20uint16 dashModel;21uint16 jumpModel;22uint16 ballModel;23uint16 tumbleModel;24uint16 sceneIndex;25};2627// Entity Class28struct EntityUFO_Player {29RSDK_ENTITY30StateMachine(state);31int32 machQuota1;32int32 machQuota2;33int32 machQuota3;34int32 startingRings;35int32 timer;36int32 courseOutTimer;37int32 angleX;38int32 height;39int32 gravityStrength;40int32 angleZ;41int32 velDivisor;42int32 bumperTimer;43int32 angleVel;44int32 skidTimer;45EntityUFO_Camera *camera;46EntityUFO_Circuit *circuitPtr;47Matrix matRotate;48Matrix matTransform;49Matrix matWorld;50Matrix matNormal;51StateMachine(stateInput);52int32 controllerID;53bool32 up;54bool32 down;55bool32 left;56bool32 right;57bool32 jumpPress;58bool32 jumpHold;59Animator animator;60};6162// Object Struct63extern ObjectUFO_Player *UFO_Player;6465// Standard Entity Events66void UFO_Player_Update(void);67void UFO_Player_LateUpdate(void);68void UFO_Player_StaticUpdate(void);69void UFO_Player_Draw(void);70void UFO_Player_Create(void *data);71void UFO_Player_StageLoad(void);72#if GAME_INCLUDE_EDITOR73void UFO_Player_EditorDraw(void);74void UFO_Player_EditorLoad(void);75#endif76void UFO_Player_Serialize(void);7778// Extra Entity Functions79void UFO_Player_Input_P1(void);80void UFO_Player_ChangeMachState(void);81void UFO_Player_HandleBumperTiles(void);82void UFO_Player_HandleSpeedUp(void);83void UFO_Player_State_Run(void);84void UFO_Player_State_Jump(void);85void UFO_Player_State_Springboard(void);86void UFO_Player_State_Trip(void);87void UFO_Player_State_CourseOut(void);88void UFO_Player_State_UFOCaught_Charge(void);89void UFO_Player_State_UFOCaught_Released(void);9091#endif //! OBJ_UFO_PLAYER_H929394