GPR5100 - Rollback
Loading...
Searching...
No Matches
List of all members
game::BodyManager Class Reference

BodyManager is a ComponentManager that holds all the Body in the world. More...

#include <physics_manager.h>

Inheritance diagram for game::BodyManager:
Inheritance graph
[legend]
Collaboration diagram for game::BodyManager:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from core::ComponentManager< Body, static_cast< core::EntityMask >(core::ComponentType::BODY2D)>
 ComponentManager (EntityManager &entityManager)
 
 ComponentManager (const ComponentManager &)=delete
 
 ComponentManager (ComponentManager &&)=delete
 
ComponentManageroperator= (ComponentManager &)=delete
 
ComponentManageroperator= (ComponentManager &&)=delete
 
virtual void AddComponent (Entity entity)
 AddComponent is a method that sets the flag C in the EntityManager and resize if need the components_ array. More...
 
virtual void RemoveComponent (Entity entity)
 RemoveComponent is a method that unsets the flag C in the EntityManager. More...
 
const Body & GetComponent (Entity entity) const
 GetComponent is a method that gets a constant reference to a Component given the Entity. More...
 
Body & GetComponent (Entity entity)
 GetComponent is a method that gets a reference to a Component given the Entity. More...
 
void SetComponent (Entity entity, const Body &value)
 SetComponent is a method that sets a new value of the Component of an Entity. More...
 
const std::vector< Body > & GetAllComponents () const
 GetAllComponents is a method that returns the internal array of components. More...
 
void CopyAllComponents (const std::vector< Body > &components)
 CopyAllComponents is a method that changes the internal components array by copying a newly provided one. It is used by the RollbackManager when reverting the current game world data with the last validated game world data. More...
 
- Protected Attributes inherited from core::ComponentManager< Body, static_cast< core::EntityMask >(core::ComponentType::BODY2D)>
EntityManagerentityManager_
 
std::vector< Body > components_
 

Detailed Description

BodyManager is a ComponentManager that holds all the Body in the world.


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