|
Bomberman
|
A system to handle Controllable entities in a menu. More...
#include <MenuControllableSystem.hpp>
Public Member Functions | |
| void | onSelfUpdate (std::chrono::nanoseconds dtime) override |
| A method called after all entities that this system manage has been updated. More... | |
| MenuControllableSystem (WAL::Wal &wal) | |
| A default constructor. More... | |
| MenuControllableSystem (const MenuControllableSystem &)=delete | |
| A MenuControllable system is not copy constructable. More... | |
| ~MenuControllableSystem () override=default | |
| A default destructor. More... | |
| MenuControllableSystem & | operator= (const MenuControllableSystem &)=delete |
| A MenuControllable system is not assignable. More... | |
Public Member Functions inherited from WAL::System<> | |
| ~System () override=default | |
| A virtual, default, destructor. More... | |
| System (System &&) noexcept=default | |
| A system can be moved. More... | |
| View< Dependencies... > & | getView () override |
| Get a view of all entities containing every dependencies of this system. More... | |
| virtual void | onUpdate (ViewEntity< Dependencies... > &entity, std::chrono::nanoseconds dtime) |
| Update the corresponding component of the given entity. More... | |
| virtual void | onFixedUpdate (ViewEntity< Dependencies... > &entity) |
| An alternative of onUpdate that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up. More... | |
| void | update (std::chrono::nanoseconds dtime) final |
| Update the whole system (every entities that this system is responsible can be updated. More... | |
| void | fixedUpdate () final |
| An alternative of update that is called every 8ms (120 times per seconds). If the system slow down, it will try to catch up. More... | |
Public Member Functions inherited from WAL::ISystem | |
| virtual | ~ISystem ()=default |
| A virtual default destructor. More... | |
Public Attributes | |
| WAL::Entity * | currentButton |
| index of the current button selected More... | |
| std::chrono::time_point< std::chrono::steady_clock > | now |
| time (in millisecond) since last check More... | |
Private Member Functions | |
| void | _updateCurrentButton (bool selected, Vector2f move) |
| update current button reference More... | |
| bool | _mouseOnButton (const Vector2f &mousePos, WAL::ViewEntity< OnClickComponent, OnHoverComponent, OnIdleComponent, PositionComponent, Drawable2DComponent > &entity) const |
Private Attributes | |
| Vector2f | _oldMousePosition |
| position of the mouse at the precedent scene (to know which controller event to watch) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::System<> | |
| System (Wal &wal) | |
| A system can't be instantiated, it should be derived. More... | |
| System (const System &)=default | |
| A system can't be instantiated, it should be derived. More... | |
| System & | operator= (const System &)=default |
| A system can't be instantiated, it should be derived. More... | |
Protected Attributes inherited from WAL::System<> | |
| Wal & | _wal |
| A reference to the ECS. More... | |
A system to handle Controllable entities in a menu.
|
explicit |
A default constructor.
|
delete |
A MenuControllable system is not copy constructable.
|
overridedefault |
A default destructor.
|
private |
|
private |
update current button reference
| selected | lets know if te new selected button is 'pressed' |
|
overridevirtual |
A method called after all entities that this system manage has been updated.
| dtime | The delta time. |
Reimplemented from WAL::System<>.
|
delete |
A MenuControllable system is not assignable.
|
private |
position of the mouse at the precedent scene (to know which controller event to watch)
| WAL::Entity* BBM::MenuControllableSystem::currentButton |
index of the current button selected
| std::chrono::time_point<std::chrono::steady_clock> BBM::MenuControllableSystem::now |
time (in millisecond) since last check
1.8.17