|
GPR5100 - Rollback
|
PlayerCharacterManager is a ComponentManager that holds all the PlayerCharacter in the game. More...
#include <player_character.h>


Public Member Functions | |
| PlayerCharacterManager (core::EntityManager &entityManager, PhysicsManager &physicsManager, GameManager &gameManager) | |
| void | FixedUpdate (sf::Time dt) |
Public Member Functions inherited from core::ComponentManager< PlayerCharacter, static_cast< core::EntityMask >(ComponentType::PLAYER_CHARACTER)> | |
| ComponentManager (EntityManager &entityManager) | |
| ComponentManager (const ComponentManager &)=delete | |
| ComponentManager (ComponentManager &&)=delete | |
| ComponentManager & | operator= (ComponentManager &)=delete |
| ComponentManager & | operator= (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 PlayerCharacter & | GetComponent (Entity entity) const |
| GetComponent is a method that gets a constant reference to a Component given the Entity. More... | |
| PlayerCharacter & | GetComponent (Entity entity) |
| GetComponent is a method that gets a reference to a Component given the Entity. More... | |
| void | SetComponent (Entity entity, const PlayerCharacter &value) |
| SetComponent is a method that sets a new value of the Component of an Entity. More... | |
| const std::vector< PlayerCharacter > & | GetAllComponents () const |
| GetAllComponents is a method that returns the internal array of components. More... | |
| void | CopyAllComponents (const std::vector< PlayerCharacter > &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< PlayerCharacter, static_cast< core::EntityMask >(ComponentType::PLAYER_CHARACTER)> | |
| EntityManager & | entityManager_ |
| std::vector< PlayerCharacter > | components_ |
PlayerCharacterManager is a ComponentManager that holds all the PlayerCharacter in the game.