|
Bomberman
|
A system to handle keyboard entities. More...
#include <IAControllableSystem.hpp>
Public Member Functions | |
| void | onFixedUpdate (WAL::ViewEntity< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent > &entity) override |
| void | onSelfUpdate (std::chrono::nanoseconds dtime) override |
| A method called after all entities that this system manage has been updated. More... | |
| IAControllableSystem (WAL::Wal &wal) | |
| A default constructor. More... | |
| IAControllableSystem (const IAControllableSystem &)=default | |
| A keyboard system is copy constructable. More... | |
| ~IAControllableSystem () override=default | |
| A default destructor. More... | |
| IAControllableSystem & | operator= (const IAControllableSystem &)=default |
| A keyboard system is assignable. More... | |
Public Member Functions inherited from WAL::System< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent > | |
| ~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... | |
Private Member Functions | |
| void | updateDangerBomb (Vector3f pos, int radius, std::chrono::nanoseconds ringIn) |
| update danger map with a bomb More... | |
| void | registerFunc (LuaG::State &state) |
| Register the functions to the lua. More... | |
| void | UpdateMapInfos (WAL::ViewEntity< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent > &entity) |
| update the raw info of the map More... | |
Private Attributes | |
| WAL::Wal & | _wal |
| Reference to wal to get Views. More... | |
| bool | _cached |
| Are the infos cached for current update. More... | |
| LuaMap | _luamap |
| Map to handle the informations. More... | |
| std::vector< MapInfo > | _players |
| All players in the map. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::System< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent > | |
| 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< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent > | |
| Wal & | _wal |
| A reference to the ECS. More... | |
A system to handle keyboard entities.
| BBM::IAControllableSystem::IAControllableSystem | ( | WAL::Wal & | wal | ) |
A default constructor.
|
default |
A keyboard system is copy constructable.
|
overridedefault |
A default destructor.
|
override |
|
overridevirtual |
A method called after all entities that this system manage has been updated.
| dtime | The delta time. |
Reimplemented from WAL::System< PositionComponent, ControllableComponent, IAControllableComponent, BombHolderComponent >.
|
default |
A keyboard system is assignable.
|
private |
Register the functions to the lua.
|
private |
update danger map with a bomb
|
private |
update the raw info of the map
|
private |
Are the infos cached for current update.
|
private |
Map to handle the informations.
|
private |
All players in the map.
|
private |
Reference to wal to get Views.
1.8.17