2016-08-14 21:11:44 +00:00
|
|
|
#ifndef __URDE_CGRAPPLEARM_HPP__
|
|
|
|
#define __URDE_CGRAPPLEARM_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
#include "Character/CModelData.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CGrappleArm
|
|
|
|
{
|
2017-07-17 03:04:14 +00:00
|
|
|
public:
|
|
|
|
enum class EArmState
|
|
|
|
{
|
|
|
|
Zero,
|
|
|
|
One,
|
|
|
|
Two,
|
|
|
|
Three,
|
|
|
|
Four,
|
|
|
|
Five,
|
|
|
|
Six,
|
|
|
|
Seven,
|
|
|
|
Eight,
|
|
|
|
};
|
|
|
|
private:
|
2016-08-14 21:11:44 +00:00
|
|
|
CModelData x0_modelData;
|
2017-07-23 23:45:04 +00:00
|
|
|
zeus::CTransform x220_xf;
|
2017-07-18 06:11:37 +00:00
|
|
|
EArmState x334_animState;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x3b2_25_beamActive : 1;
|
2017-07-19 17:47:57 +00:00
|
|
|
bool x3b2_27_armMoving : 1;
|
2017-07-18 06:11:37 +00:00
|
|
|
};
|
|
|
|
u32 _dummy = 0;
|
|
|
|
};
|
|
|
|
|
2016-08-14 21:11:44 +00:00
|
|
|
public:
|
2017-07-23 23:45:04 +00:00
|
|
|
explicit CGrappleArm(const zeus::CVector3f& vec);
|
2016-08-15 01:19:04 +00:00
|
|
|
void AsyncLoadSuit(CStateManager& mgr);
|
2017-07-23 23:45:04 +00:00
|
|
|
void SetTransform(const zeus::CTransform& xf) { x220_xf = xf; }
|
|
|
|
const zeus::CTransform& GetTransform() const { return x220_xf; }
|
2017-07-17 03:04:14 +00:00
|
|
|
void SetAnimState(EArmState state);
|
2017-07-18 06:11:37 +00:00
|
|
|
EArmState GetAnimState() const { return x334_animState; }
|
|
|
|
bool BeamActive() const { return x3b2_25_beamActive; }
|
2017-07-19 17:47:57 +00:00
|
|
|
bool IsArmMoving() const { return x3b2_27_armMoving; }
|
2017-07-18 06:11:37 +00:00
|
|
|
void Activate(bool);
|
|
|
|
void GrappleBeamDisconnected();
|
|
|
|
void GrappleBeamConnected();
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CGRAPPLEARM_HPP__
|