metaforce/Runtime/World/CActor.hpp

84 lines
2.6 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CACTOR_HPP__
#define __URDE_CACTOR_HPP__
2015-08-22 01:58:41 +00:00
#include "CEntity.hpp"
2016-03-04 23:04:53 +00:00
#include "zeus/zeus.hpp"
2015-08-22 01:58:41 +00:00
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-22 01:58:41 +00:00
{
2015-11-21 01:16:07 +00:00
enum class ECollisionResponseType
{
2015-11-21 01:16:07 +00:00
Unknown12 = 0xC,
};
2015-11-21 01:16:07 +00:00
enum class EMaterialTypes
{
};
2015-08-22 01:58:41 +00:00
class CModelData;
class CMaterialList;
class CActorParameters;
class CWeaponMode;
2015-08-22 01:58:41 +00:00
class CActor : public CEntity
{
protected:
2015-11-21 01:16:07 +00:00
enum class Flags
{
Unknown5 = (1 << 5),
Unknown6 = (1 << 6),
Unknown7 = (1 << 7),
};
2016-03-04 23:04:53 +00:00
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;
2015-08-22 01:58:41 +00:00
public:
CActor(TUniqueId, bool, const std::string&, const CEntityInfo&,
2016-03-04 23:04:53 +00:00
const zeus::CTransform&, const CModelData&, const CMaterialList&,
2015-08-22 01:58:41 +00:00
const CActorParameters&, TUniqueId);
virtual void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) {}
2016-03-04 23:04:53 +00:00
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; }
2016-03-04 23:04:53 +00:00
virtual zeus::CVector3f GetOrbitPosition()
{ return zeus::CVector3f(x40_unknown, x50_unknown, x60_unknown); }
2016-03-04 23:04:53 +00:00
virtual ECollisionResponseType GetCollisionResponseType(const zeus::CVector3f&, const zeus::CVector3f&, CWeaponMode&, int) { return ECollisionResponseType::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
}
2015-08-22 01:58:41 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CACTOR_HPP__