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

#include <d2NSquaredBroad.h>

Inheritance diagram for d2NSquaredBroad:
d2Broadphase

Public Types

typedef std::vector< d2Body * > ColliderList
 
- Public Types inherited from d2Broadphase
typedef std::vector< d2Body * > ColliderList
 

Public Member Functions

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

Member Typedef Documentation

◆ ColliderList

Member Function Documentation

◆ Add()

void d2NSquaredBroad::Add ( d2Body * body)
overridevirtual

Implements d2Broadphase.

◆ ComputePairs()

const ColliderPairList & d2NSquaredBroad::ComputePairs ( void )
overridevirtual

Implements d2Broadphase.

◆ Pick()

d2Body * d2NSquaredBroad::Pick ( const d2Vec2 & point) const
overridevirtual

Implements d2Broadphase.

◆ Query()

void d2NSquaredBroad::Query ( const d2AABB & aabb,
ColliderList & output ) const
overridevirtual

Implements d2Broadphase.

◆ Remove()

void d2NSquaredBroad::Remove ( d2Body * body)
overridevirtual

Implements d2Broadphase.

◆ Update()

void d2NSquaredBroad::Update ( void )
overridevirtual

Implements d2Broadphase.


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