Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::engine::physics::PhysicsSystem Class Reference

A class that handles physics simulation for an entity component engine. More...

#include <omEnginePhysicsSystem.h>

Inheritance diagram for om::engine::physics::PhysicsSystem:
om::engine::base::EngineSystem om::engine::base::SceneContextFactory

Public Member Functions

 PhysicsSystem ()
 Create a new default physics system. More...
 
virtual void update (EngineContext &engine, const Time &dt)
 Update the state of the entities in the specified engine context for the given timestep. More...
 
virtual void addComponent (const ResourceType &type, void *component, EngineContext &engine)
 Update the internal state of the system for a component that was added to the engine. More...
 
virtual void removeComponent (const ResourceType &type, void *component, EngineContext &engine)
 Update the internal state of the system for a component that was removed from the engine. More...
 
virtual Shared< SceneContextnewSceneContext ()
 Create a new physics scene context. More...
 
- Public Member Functions inherited from om::engine::base::EngineSystem
virtual ~EngineSystem ()
 Destroy a system and release all internal resources. More...
 
virtual void addComponent (const ResourceType &type, void *component, EngineContext &engine)
 Update the internal state of the system for a component that was added to the engine. More...
 
virtual void removeComponent (const ResourceType &type, void *component, EngineContext &engine)
 Update the internal state of the system for a component that was removed from the engine. More...
 
const SystemTypegetType () const
 Return an enum value indicating the semantic type of this engine system. More...
 
- Public Member Functions inherited from om::engine::base::SceneContextFactory
virtual ~SceneContextFactory ()
 Destroy a scene context and release internal resources. More...
 

Additional Inherited Members

- Protected Member Functions inherited from om::engine::base::EngineSystem
 EngineSystem ()
 Create a new engine system with the UNDEFINED system type. More...
 
 EngineSystem (const SystemType &newSystemType)
 Create a new engine system with the specified system type. More...
 

Detailed Description

A class that handles physics simulation for an entity component engine.

Constructor & Destructor Documentation

om::engine::physics::PhysicsSystem::PhysicsSystem ( )

Create a new default physics system.

Member Function Documentation

virtual void om::engine::physics::PhysicsSystem::update ( EngineContext engine,
const Time dt 
)
virtual

Update the state of the entities in the specified engine context for the given timestep.

Reimplemented from om::engine::base::EngineSystem.

virtual void om::engine::physics::PhysicsSystem::addComponent ( const ResourceType &  type,
void *  component,
EngineContext engine 
)
virtual

Update the internal state of the system for a component that was added to the engine.

virtual void om::engine::physics::PhysicsSystem::removeComponent ( const ResourceType &  type,
void *  component,
EngineContext engine 
)
virtual

Update the internal state of the system for a component that was removed from the engine.

virtual Shared<SceneContext> om::engine::physics::PhysicsSystem::newSceneContext ( )
virtual

Create a new physics scene context.

Implements om::engine::base::SceneContextFactory.


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