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

#include <CameraSystem.hpp>

Inheritance diagram for BBM::CameraSystem:
Collaboration diagram for BBM::CameraSystem:

Public Member Functions

void onUpdate (WAL::ViewEntity< CameraComponent, PositionComponent > &entity, std::chrono::nanoseconds) override
 
bool introAnimation (WAL::ViewEntity< CameraComponent, PositionComponent > &entity)
 introduciton animation when entering gameScene More...
 
 CameraSystem (WAL::Wal &wal)
 ctor More...
 
 CameraSystem (const CameraSystem &)=default
 Default copy ctor. More...
 
 ~CameraSystem () override=default
 Default dtor. More...
 
CameraSystemoperator= (const CameraSystem &)=delete
 A CameraManager screen system can't be assigned. More...
 
- Public Member Functions inherited from WAL::System< CameraComponent, PositionComponent >
 ~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...
 

Public Attributes

bool hasEnded = false
 A boolean indicating if the intro's animation has ended. More...
 

Additional Inherited Members

- Protected Member Functions inherited from WAL::System< CameraComponent, PositionComponent >
 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< CameraComponent, PositionComponent >
Wal_wal
 A reference to the ECS. More...
 

Constructor & Destructor Documentation

◆ CameraSystem() [1/2]

BBM::CameraSystem::CameraSystem ( WAL::Wal wal)

ctor

◆ CameraSystem() [2/2]

BBM::CameraSystem::CameraSystem ( const CameraSystem )
default

Default copy ctor.

◆ ~CameraSystem()

BBM::CameraSystem::~CameraSystem ( )
overridedefault

Default dtor.

Member Function Documentation

◆ introAnimation()

bool BBM::CameraSystem::introAnimation ( WAL::ViewEntity< CameraComponent, PositionComponent > &  entity)

introduciton animation when entering gameScene

◆ onUpdate()

void BBM::CameraSystem::onUpdate ( WAL::ViewEntity< CameraComponent, PositionComponent > &  entity,
std::chrono::nanoseconds  dtime 
)
override

◆ operator=()

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

A CameraManager screen system can't be assigned.

Member Data Documentation

◆ hasEnded

bool BBM::CameraSystem::hasEnded = false

A boolean indicating if the intro's animation has ended.


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