metaforce/Runtime/MP1/World/CFlickerBat.hpp

48 lines
1.6 KiB
C++
Raw Normal View History

2018-10-11 22:57:05 +00:00
#pragma once
#include "World/CPatterned.hpp"
2018-12-08 05:30:43 +00:00
namespace urde::MP1 {
class CFlickerBat final : public CPatterned {
2018-11-14 23:00:08 +00:00
public:
2018-12-08 05:30:43 +00:00
enum class EFlickerBatState { Zero, One, Two, Three };
2018-11-14 23:00:08 +00:00
private:
2018-12-08 05:30:43 +00:00
float x568_ = 0.f;
float x56c_ = 0.f;
float x570_ = 0.f;
EFlickerBatState x574_state;
float x578_ = 1.f;
float x57c_ = 0.f;
bool x580_24_ : 1;
bool x580_25_heardShot : 1;
bool x580_26_ : 1;
bool x580_27_ : 1;
2018-11-14 23:00:08 +00:00
2018-12-08 05:30:43 +00:00
public:
DEFINE_PATTERNED(FlickerBat)
CFlickerBat(TUniqueId, std::string_view name, EFlavorType, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
const CPatternedInfo&, EColliderType, bool, const CActorParameters&, bool);
2018-11-14 23:00:08 +00:00
2018-12-08 05:30:43 +00:00
void Accept(IVisitor&);
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
void Think(float, CStateManager&);
void Render(const CStateManager&) const;
void Touch(CActor&, CStateManager&);
void DoUserAnimEvent(CStateManager&, const CInt32POINode&, EUserEventType, float dt);
void Death(CStateManager& mgr, const zeus::CVector3f& direction, EScriptObjectState state);
bool CanBeShot(CStateManager&, int);
void Patrol(CStateManager&, EStateMsg, float);
void Attack(CStateManager&, EStateMsg, float);
void Shuffle(CStateManager&, EStateMsg, float);
void Taunt(CStateManager&, EStateMsg, float);
bool InPosition(CStateManager&, float);
bool HearShot(CStateManager&, float);
2018-11-14 23:00:08 +00:00
2018-12-08 05:30:43 +00:00
EFlickerBatState GetFlickerBatState() const { return x574_state; }
void SetFlickerBatState(EFlickerBatState state, CStateManager&);
void FlickerBatStateChanged(EFlickerBatState, CStateManager&);
void CheckStaticIntersection(CStateManager&);
2018-10-11 22:57:05 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde::MP1