Bomberman
Public Member Functions | List of all members
BBM::PlayerBonusSystem Class Reference

The system that allow one to place bombs. More...

#include <PlayerBonusSystem.hpp>

Inheritance diagram for BBM::PlayerBonusSystem:
Collaboration diagram for BBM::PlayerBonusSystem:

Public Member Functions

void onUpdate (WAL::ViewEntity< PlayerBonusComponent, ControllableComponent, BombHolderComponent > &entity, std::chrono::nanoseconds dtime) override
 
 PlayerBonusSystem (WAL::Wal &wal)
 A default constructor. More...
 
 PlayerBonusSystem (const PlayerBonusSystem &)=default
 A bomb holder system is copy constructable. More...
 
 ~PlayerBonusSystem () override=default
 A default destructor. More...
 
PlayerBonusSystemoperator= (const PlayerBonusSystem &)=delete
 A bomb holder system is not assignable. More...
 
- Public Member Functions inherited from WAL::System< PlayerBonusComponent, ControllableComponent, 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...
 
virtual void onSelfUpdate (std::chrono::nanoseconds dtime)
 A method called after all entities that this system manage has been updated. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from WAL::System< PlayerBonusComponent, ControllableComponent, 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...
 
Systemoperator= (const System &)=default
 A system can't be instantiated, it should be derived. More...
 
- Protected Attributes inherited from WAL::System< PlayerBonusComponent, ControllableComponent, BombHolderComponent >
Wal_wal
 A reference to the ECS. More...
 

Detailed Description

The system that allow one to place bombs.

Constructor & Destructor Documentation

◆ PlayerBonusSystem() [1/2]

BBM::PlayerBonusSystem::PlayerBonusSystem ( WAL::Wal wal)
explicit

A default constructor.

◆ PlayerBonusSystem() [2/2]

BBM::PlayerBonusSystem::PlayerBonusSystem ( const PlayerBonusSystem )
default

A bomb holder system is copy constructable.

◆ ~PlayerBonusSystem()

BBM::PlayerBonusSystem::~PlayerBonusSystem ( )
overridedefault

A default destructor.

Member Function Documentation

◆ onUpdate()

void BBM::PlayerBonusSystem::onUpdate ( WAL::ViewEntity< PlayerBonusComponent, ControllableComponent, BombHolderComponent > &  entity,
std::chrono::nanoseconds  dtime 
)
override

◆ operator=()

PlayerBonusSystem& BBM::PlayerBonusSystem::operator= ( const PlayerBonusSystem )
delete

A bomb holder system is not assignable.


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