GPR5100 - Rollback
Loading...
Searching...
No Matches
Public Member Functions | List of all members
core::PositionManager Class Reference

PositionManager is a ComponentManager that holds positions in 2d space. Positions are in physics space (using pixelPerMeter in globals.h) More...

#include <transform.h>

Inheritance diagram for core::PositionManager:
Inheritance graph
[legend]
Collaboration diagram for core::PositionManager:
Collaboration graph
[legend]

Public Member Functions

 ComponentManager (EntityManager &entityManager)
 
 ComponentManager (const ComponentManager &)=delete
 
 ComponentManager (ComponentManager &&)=delete
 
- Public Member Functions inherited from core::ComponentManager< Vec2f, static_cast< Component >(ComponentType::POSITION)>
 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 Vec2fGetComponent (Entity entity) const
 GetComponent is a method that gets a constant reference to a Component given the Entity. More...
 
Vec2fGetComponent (Entity entity)
 GetComponent is a method that gets a reference to a Component given the Entity. More...
 
void SetComponent (Entity entity, const Vec2f &value)
 SetComponent is a method that sets a new value of the Component of an Entity. More...
 
const std::vector< Vec2f > & GetAllComponents () const
 GetAllComponents is a method that returns the internal array of components. More...
 
void CopyAllComponents (const std::vector< Vec2f > &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...
 

Additional Inherited Members

- Protected Attributes inherited from core::ComponentManager< Vec2f, static_cast< Component >(ComponentType::POSITION)>
EntityManagerentityManager_
 
std::vector< Vec2fcomponents_
 

Detailed Description

PositionManager is a ComponentManager that holds positions in 2d space. Positions are in physics space (using pixelPerMeter in globals.h)


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