Bomberman
GridCenteredComponent.hpp
Go to the documentation of this file.
1 //
2 // Created by Zoe Roux on 5/24/21.
3 //
4 
5 #pragma once
6 
8 
9 namespace BBM
10 {
14  {
15  public:
17  float force = 1;
18 
20  Component *clone(WAL::Entity &entity) const override;
21 
24  explicit GridCenteredComponent(WAL::Entity &entity);
27  GridCenteredComponent(const GridCenteredComponent &other) = default;
29  ~GridCenteredComponent() override = default;
32  };
33 }
WAL::Component
Represent a single component of WAL.
Definition: Component.hpp:17
BBM
Definition: AnimationsComponent.cpp:9
WAL::Entity
An entity of the WAL's ECS.
Definition: Entity.hpp:20
Component.hpp
BBM::GridCenteredComponent::clone
Component * clone(WAL::Entity &entity) const override
Clone a component for another or the same entity.
Definition: GridCenteredComponent.cpp:13
BBM::GridCenteredComponent::operator=
GridCenteredComponent & operator=(const GridCenteredComponent &)=delete
A GridCenteredComponent is not assignable.
WAL::Component::Component
Component(Entity &entity)
A component can't be instantiated, it should be derived.
Definition: Component.cpp:9
BBM::GridCenteredComponent::GridCenteredComponent
GridCenteredComponent(WAL::Entity &entity)
Create a new, default GridCenteredComponent.
Definition: GridCenteredComponent.cpp:9
BBM::GridCenteredComponent::force
float force
The force factor applied at each frame.
Definition: GridCenteredComponent.hpp:17
BBM::GridCenteredComponent::~GridCenteredComponent
~GridCenteredComponent() override=default
A default destructor.
BBM::GridCenteredComponent
A component to slowly center entities to the middle of their current block. This allow flexibility in...
Definition: GridCenteredComponent.hpp:13