neoGFX
Cross-platform C++ app/game engine
|
#include <simple_physics.hpp>
Classes | |
struct | meta |
Public Member Functions | |
simple_physics (i_ecs &aEcs) | |
~simple_physics () | |
const system_id & | id () const override |
const i_string & | name () const override |
bool | apply () override |
bool | universal_gravitation_enabled () const |
void | enable_universal_gravitation () |
void | disable_universal_gravitation () |
void | yield_after (std::chrono::duration< double, std::milli > aTime) |
Public Member Functions inherited from neolib::ecs::system< entity_info, box_collider, box_collider_2d, mesh_filter, rigid_body, mesh_render_cache > | |
system (i_ecs &aEcs) | |
system (const system &aOther) | |
system (system &&aOther) | |
system (i_ecs &aEcs, ComponentIdIter aFirstComponent, ComponentIdIter aLastComponent) | |
~system () | |
i_ecs & | ecs () const override |
const i_set< component_id > & | components () const override |
i_set< component_id > & | components () override |
const i_component & | component (component_id aComponentId) const override |
i_component & | component (component_id aComponentId) override |
bool | can_apply () const override |
bool | paused () const override |
void | pause () override |
void | resume () override |
void | terminate () override |
bool | waiting () const override |
void | wait () override |
void | wait_for (scalar aDuration) override |
void | signal () override |
void | start_thread_if () override |
void | start_thread () override |
bool | debug () const override |
void | set_debug (bool aDebug) override |
std::chrono::microseconds | update_time (std::size_t aMetricsIndex=0) const override |
Public Member Functions inherited from neolib::ecs::i_system | |
virtual | ~i_system ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from neolib::ecs::system< entity_info, box_collider, box_collider_2d, mesh_filter, rigid_body, mesh_render_cache > | |
bool | have_thread () const |
thread & | get_thread () const |
void | yield (bool aSleep=false) |
std::mutex & | waiting_mutex () |
void | start_update (std::size_t aMetricsIndex=0) |
void | end_update (std::size_t aMetricsIndex=0) |
Definition at line 31 of file simple_physics.hpp.
neogfx::game::simple_physics::simple_physics | ( | i_ecs & | aEcs | ) |
neogfx::game::simple_physics::~simple_physics | ( | ) |
|
overridevirtual |
Implements neolib::ecs::i_system.
void neogfx::game::simple_physics::disable_universal_gravitation | ( | ) |
void neogfx::game::simple_physics::enable_universal_gravitation | ( | ) |
|
overridevirtual |
Implements neolib::ecs::i_system.
|
overridevirtual |
Implements neolib::ecs::i_system.
bool neogfx::game::simple_physics::universal_gravitation_enabled | ( | ) | const |
void neogfx::game::simple_physics::yield_after | ( | std::chrono::duration< double, std::milli > | aTime | ) |