metaforce/Runtime/CActor.hpp

84 lines
2.5 KiB
C++

#ifndef __RETRO_CACTOR_HPP__
#define __RETRO_CACTOR_HPP__
#include "CEntity.hpp"
#include <MathLib.hpp>
namespace Retro
{
enum ECollisionResponseType
{
CR_Unknown12 = 0xC,
};
enum EMaterialTypes
{
};
class CModelData;
class CMaterialList;
class CActorParameters;
class CWeaponMode;
class CActor : public CEntity
{
protected:
enum Flags
{
Unknown5 = (1 << 5),
Unknown6 = (1 << 6),
Unknown7 = (1 << 7),
};
Zeus::CTransform x34_transform;
float x40_unknown;
float x50_unknown;
float x60_unknown;
u32 x68_unknown;
u32 x6c_unknown;
bool xd0_b0_flags : 1;
bool xd0_b1_flags : 1;
bool xd0_b2_flags : 1;
public:
CActor(TUniqueId, bool, const std::string&, const CEntityInfo&,
const Zeus::CTransform&, const CModelData&, const CMaterialList&,
const CActorParameters&, TUniqueId);
virtual void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) {}
virtual Zeus::CVector3f GetAimPosition(const CStateManager&, float)
{ return Zeus::CVector3f(x40_unknown, x50_unknown, x60_unknown); }
virtual bool ValidAimTarget() { return true; }
virtual bool ValidOrbitTarget() { return true; }
virtual bool GetOrbitDistanceCheck() { return true; }
virtual Zeus::CVector3f GetOrbitPosition()
{ return Zeus::CVector3f(x40_unknown, x50_unknown, x60_unknown); }
virtual ECollisionResponseType GetCollisionResponseType(const Zeus::CVector3f&, const Zeus::CVector3f&, CWeaponMode&, int) { return CR_Unknown12; }
void RemoveMaterial(EMaterialTypes, EMaterialTypes, EMaterialTypes, EMaterialTypes, CStateManager&){}
void RemoveMaterial(EMaterialTypes, EMaterialTypes, EMaterialTypes, CStateManager&){ }
void RemoveMaterial(EMaterialTypes, EMaterialTypes, CStateManager&){ }
void RemoveMaterial(EMaterialTypes, CStateManager&){ }
void AddMaterial(EMaterialTypes, EMaterialTypes, EMaterialTypes, EMaterialTypes, EMaterialTypes, CStateManager&){ }
void AddMaterial(EMaterialTypes, EMaterialTypes, EMaterialTypes, EMaterialTypes, CStateManager&){}
void AddMaterial(EMaterialTypes, EMaterialTypes, EMaterialTypes, CStateManager&){ }
void AddMaterial(EMaterialTypes, EMaterialTypes, CStateManager&){ }
void AddMaterial(EMaterialTypes, CStateManager&){ }
virtual void SetActive(bool active)
{
//xd0_flags |= (Unknown5 | Unknown6 | Unknown7);
CEntity::SetActive(active);
}
virtual void SetCallTouch(bool callTouch)
{
//xd1_flags = Unknown6
}
};
}
#endif // __RETRO_CACTOR_HPP__