Flatland
Public Member Functions | Public Attributes | List of all members
flatland_server::PluginManager Class Reference
Collaboration diagram for flatland_server::PluginManager:
Collaboration graph
[legend]

Public Member Functions

 PluginManager ()
 Plugin manager constructor.
 
 ~PluginManager ()
 Plugin manager destructor.
 
void BeforePhysicsStep (const Timekeeper &timekeeper)
 This method is called before the Box2D physics step. More...
 
void AfterPhysicsStep (const Timekeeper &timekeeper)
 This method is called after the Box2D physics step. More...
 
void DeleteModelPlugin (Model *model)
 This method removes all model plugins associated with a given mode. More...
 
void LoadModelPlugin (Model *model, YamlReader &plugin_reader)
 Load model plugins. More...
 
void LoadWorldPlugin (World *world, YamlReader &plugin_reader, YamlReader &world_config)
 
void BeginContact (b2Contact *contact)
 Method called for a box2D begin contact. More...
 
void EndContact (b2Contact *contact)
 Method called for a box2D end contact. More...
 
void PreSolve (b2Contact *contact, const b2Manifold *oldManifold)
 Method called for Box2D presolve. More...
 
void PostSolve (b2Contact *contact, const b2ContactImpulse *impulse)
 Method called for Box2D Postsolve. More...
 

Public Attributes

std::vector< boost::shared_ptr< ModelPlugin > > model_plugins_
 
pluginlib::ClassLoader< flatland_server::ModelPlugin > * model_plugin_loader_
 
std::vector< boost::shared_ptr< WorldPlugin > > world_plugins_
 
pluginlib::ClassLoader< flatland_server::WorldPlugin > * world_plugin_loader_
 

Member Function Documentation

void flatland_server::PluginManager::AfterPhysicsStep ( const Timekeeper timekeeper)

This method is called after the Box2D physics step.

Parameters
[in]timekeeperprovide time related information
void flatland_server::PluginManager::BeforePhysicsStep ( const Timekeeper timekeeper)

This method is called before the Box2D physics step.

Parameters
[in]timekeeperprovide time related information
void flatland_server::PluginManager::BeginContact ( b2Contact *  contact)

Method called for a box2D begin contact.

Parameters
[in]contactBox2D contact information
void flatland_server::PluginManager::DeleteModelPlugin ( Model model)

This method removes all model plugins associated with a given mode.

Parameters
[in]Themodel plugins is associated to
void flatland_server::PluginManager::EndContact ( b2Contact *  contact)

Method called for a box2D end contact.

Parameters
[in]contactBox2D contact information
void flatland_server::PluginManager::LoadModelPlugin ( Model model,
YamlReader plugin_reader 
)

Load model plugins.

Parameters
[in]modelThe model that this plugin is tied to
[in]plugin_readerThe YAML reader with node containing the plugin parameter
void flatland_server::PluginManager::PostSolve ( b2Contact *  contact,
const b2ContactImpulse *  impulse 
)

Method called for Box2D Postsolve.

Parameters
[in]contactBox2D contact information
[in]impulseThe calculated impulse from the collision resolute
void flatland_server::PluginManager::PreSolve ( b2Contact *  contact,
const b2Manifold *  oldManifold 
)

Method called for Box2D presolve.

Parameters
[in]contactBox2D contact information
[in]oldManifoldThe manifold from the previous timestep

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