mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-24 06:23:35 +00:00
20 lines
415 B
C
20 lines
415 B
C
|
#pragma once
|
||
|
#include "dpCommon.h"
|
||
|
|
||
|
class dpEntity;
|
||
|
|
||
|
class dpShapeBase {
|
||
|
public:
|
||
|
dpShapeBase(dpEntity* parentEntity);
|
||
|
virtual ~dpShapeBase();
|
||
|
|
||
|
virtual bool IsColliding(dpShapeBase* other) = 0;
|
||
|
|
||
|
const dpShapeType& GetShapeType() const { return m_ShapeType; }
|
||
|
|
||
|
dpEntity* GetParentEntity() const { return m_ParentEntity; }
|
||
|
|
||
|
protected:
|
||
|
dpEntity* m_ParentEntity;
|
||
|
dpShapeType m_ShapeType = dpShapeType::Invalid;
|
||
|
};
|