#include <Physical2D.hpp>

Public Member Functions

 Physical2D_World (iv::Instance *inst)
 
void Step (float timeStep)
 
playrho::d2::Body * CreateBody (Physical2D *component, playrho::d2::BodyConf const &conf)
 
void DestroyBody (playrho::d2::Body *)
 
- Public Member Functions inherited from iv::World< Physical2D >
 World (iv::Instance *inst)
 
iv::Instanceinstance () const
 
void Register (Component *)
 
void Unregister (Component *)
 
const std::unordered_set< Component * > & components ()
 
- Public Member Functions inherited from iv::GenericListener_Index< Physical2D_Listener >
 GenericListener_Index (iv::Instance *inst)
 
iv::Instanceinstance () const
 
void AddListener (Listener *)
 
void RemoveListener (Listener *)
 
void InitializeListener (Listener *)
 
void InvokeListeners (void(Listener::*member)(Params ...), Params ... params)
 

Public Attributes

iv::ClientMarker cm
 
- Public Attributes inherited from iv::World< Physical2D >
iv::ClientMarker cm
 
- Public Attributes inherited from iv::GenericListener_Index< Physical2D_Listener >
iv::ClientMarker cm
 

Protected Member Functions

virtual void Component_Registered (Physical2D *component) override
 
virtual void Component_Unregistered (Physical2D *component) override
 
virtual void BeginContact (playrho::d2::Contact &contact) override
 
virtual void EndContact (playrho::d2::Contact &contact) override
 
- Protected Member Functions inherited from iv::World< Physical2D >
virtual void Component_Registered (Component *component)=0
 
virtual void Component_Unregistered (Component *component)=0
 
- Protected Member Functions inherited from iv::GenericListener_Index< Physical2D_Listener >
virtual void Listener_Initialize (Listener *)=0
 

Detailed Description

Definition at line 60 of file Physical2D.hpp.

Constructor & Destructor Documentation

◆ Physical2D_World()

comp::Physical2D_World::Physical2D_World ( iv::Instance inst)

Definition at line 63 of file Physical2D.cpp.

Member Function Documentation

◆ Step()

void comp::Physical2D_World::Step ( float  timeStep)

Definition at line 74 of file Physical2D.cpp.

◆ CreateBody()

playrho::d2::Body * comp::Physical2D_World::CreateBody ( Physical2D component,
playrho::d2::BodyConf const &  conf 
)

component Component that will be notified when contacts happen.

Definition at line 81 of file Physical2D.cpp.

◆ DestroyBody()

void comp::Physical2D_World::DestroyBody ( playrho::d2::Body *  body)

Definition at line 88 of file Physical2D.cpp.

◆ Component_Registered()

void comp::Physical2D_World::Component_Registered ( Physical2D component)
overrideprotectedvirtual

Definition at line 93 of file Physical2D.cpp.

◆ Component_Unregistered()

void comp::Physical2D_World::Component_Unregistered ( Physical2D component)
overrideprotectedvirtual

Definition at line 97 of file Physical2D.cpp.

◆ BeginContact()

void comp::Physical2D_World::BeginContact ( playrho::d2::Contact &  contact)
overrideprotectedvirtual

Definition at line 101 of file Physical2D.cpp.

◆ EndContact()

void comp::Physical2D_World::EndContact ( playrho::d2::Contact &  contact)
overrideprotectedvirtual

Definition at line 111 of file Physical2D.cpp.

Member Data Documentation

◆ cm

iv::ClientMarker comp::Physical2D_World::cm

Definition at line 63 of file Physical2D.hpp.


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