prime/include/WorldFormat/CCollidableOBBTreeGroup.hpp
Luke Street 7ca3a1c0bb Replace int types in Retro code
Retro seemingly avoided using the Dolphin
typedefs in most places, opting to use int/uint
instead. This likely means they didn't use
u8/s8/u16/s16/etc either.


Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
2022-10-09 01:37:23 -04:00

41 lines
1.1 KiB
C++

#ifndef _CCOLLIDABLEOBBTREEGROUP
#define _CCOLLIDABLEOBBTREEGROUP
#include "types.h"
#include "Collision/CCollisionPrimitive.hpp"
#include "rstl/auto_ptr.hpp"
#include "rstl/vector.hpp"
class COBBTree;
class CCollidableOBBTreeGroupContainer {
friend class CCollidableOBBTreeGroup;
rstl::vector< rstl::auto_ptr< COBBTree > > x0_trees;
rstl::vector< CAABox > x10_aabbs;
CAABox x20_aabox;
public:
CCollidableOBBTreeGroupContainer(CInputStream& in);
CCollidableOBBTreeGroupContainer(const CVector3f&, const CVector3f&);
};
class CCollidableOBBTreeGroup : public CCollisionPrimitive {
public:
CCollidableOBBTreeGroup(CCollidableOBBTreeGroupContainer* container,
const CMaterialList& matList);
uint GetTableIndex() const override;
CAABox CalculateAABox(const CTransform4f&) const override;
CAABox CalculateLocalAABox() const override;
FourCC GetPrimType() const override;
~CCollidableOBBTreeGroup() override {}
CRayCastResult CastRayInternal(const CInternalRayCastStructure&) const override;
private:
CCollidableOBBTreeGroupContainer* x10_container;
};
#endif // _CCOLLIDABLEOBBTREEGROUP