prime/include/MetroidPrime/ScriptObjects/CScriptPickup.hpp

47 lines
1.5 KiB
C++
Raw Permalink Normal View History

#ifndef _CSCRIPTPICKUP
#define _CSCRIPTPICKUP
2022-10-05 18:05:56 +00:00
#include "types.h"
#include "MetroidPrime/CPhysicsActor.hpp"
#include "MetroidPrime/Player/CPlayerState.hpp"
class CGenDescription;
class CScriptPickup : public CPhysicsActor {
CPlayerState::EItemType x258_itemType;
int x25c_amount;
int x260_capacity;
float x264_possibility;
float x268_fadeInTime;
float x26c_lifeTime;
float x270_curTime;
float x274_tractorTime;
float x278_delayTimer;
2022-10-05 23:06:15 +00:00
rstl::optional_object< TCachedToken< CGenDescription > > x27c_pickupParticleDesc;
2022-10-05 18:05:56 +00:00
bool x28c_24_generated : 1;
bool x28c_25_inTractor : 1;
bool x28c_26_enableTractorTest : 1;
public:
2022-10-05 23:06:15 +00:00
CScriptPickup(TUniqueId uid, const rstl::string& name, const CEntityInfo& info,
const CTransform4f& xf, const CModelData& mData, const CActorParameters& aParams,
const CAABox& aabb, CPlayerState::EItemType itemType, int amount, int capacity,
CAssetId pickupEffect, float possibility, float lifeTime, float fadeInTime,
float startDelay, bool active);
2022-10-05 18:05:56 +00:00
~CScriptPickup();
void Think(float, CStateManager&) override;
void Touch(CActor&, CStateManager&) override;
2022-10-05 23:06:15 +00:00
rstl::optional_object< CAABox > GetTouchBounds() const override;
2022-10-05 18:05:56 +00:00
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
void Render(const CStateManager&) const override;
void Accept(IVisitor& visitor) override;
2022-10-05 23:06:15 +00:00
2022-10-05 18:05:56 +00:00
float GetPossibility() const;
CPlayerState::EItemType GetItem() const;
void SetSpawned();
};
#endif // _CSCRIPTPICKUP