Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2Broadphase Class Referenceabstract

#include <d2Broadphase.h>

Inheritance diagram for d2Broadphase:
d2AABBTree d2NSquaredBroad

Public Types

typedef std::vector< d2Body * > ColliderList
 

Public Member Functions

virtual ~d2Broadphase ()=default
 
virtual void Add (d2Body *body)=0
 
virtual void Remove (d2Body *body)=0
 
virtual void Update (void)=0
 
virtual const ColliderPairListComputePairs (void)=0
 
virtual d2BodyPick (const d2Vec2 &point) const =0
 
virtual void Query (const d2AABB &aabb, ColliderList &output) const =0
 
virtual void Draw (const d2Draw &draw) const =0
 

Member Typedef Documentation

◆ ColliderList

Constructor & Destructor Documentation

◆ ~d2Broadphase()

virtual d2Broadphase::~d2Broadphase ( )
virtualdefault

Member Function Documentation

◆ Add()

virtual void d2Broadphase::Add ( d2Body * body)
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.

◆ ComputePairs()

virtual const ColliderPairList & d2Broadphase::ComputePairs ( void )
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.

◆ Draw()

virtual void d2Broadphase::Draw ( const d2Draw & draw) const
pure virtual

Implemented in d2AABBTree.

◆ Pick()

virtual d2Body * d2Broadphase::Pick ( const d2Vec2 & point) const
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.

◆ Query()

virtual void d2Broadphase::Query ( const d2AABB & aabb,
ColliderList & output ) const
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.

◆ Remove()

virtual void d2Broadphase::Remove ( d2Body * body)
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.

◆ Update()

virtual void d2Broadphase::Update ( void )
pure virtual

Implemented in d2AABBTree, and d2NSquaredBroad.


The documentation for this class was generated from the following file: