comp::Physical2D_World Class Reference
#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 *) |
![]() | |
World (iv::Instance *inst) | |
iv::Instance * | instance () const |
void | Register (Component *) |
void | Unregister (Component *) |
const std::unordered_set< Component * > & | components () |
![]() | |
GenericListener_Index (iv::Instance *inst) | |
iv::Instance * | instance () const |
void | AddListener (Listener *) |
void | RemoveListener (Listener *) |
void | InitializeListener (Listener *) |
void | InvokeListeners (void(Listener::*member)(Params ...), Params ... params) |
Public Attributes | |
iv::ClientMarker | cm |
![]() | |
iv::ClientMarker | cm |
![]() | |
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 |
![]() | |
virtual void | Component_Registered (Component *component)=0 |
virtual void | Component_Unregistered (Component *component)=0 |
![]() | |
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()
|
overrideprotectedvirtual |
Definition at line 93 of file Physical2D.cpp.
◆ Component_Unregistered()
|
overrideprotectedvirtual |
Definition at line 97 of file Physical2D.cpp.
◆ BeginContact()
|
overrideprotectedvirtual |
Definition at line 101 of file Physical2D.cpp.
◆ EndContact()
|
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:
- iv_components/Physical2D/Physical2D.hpp
- iv_components/Physical2D/Physical2D.cpp