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

#include <BumperTimerComponent.hpp>

Inheritance diagram for BBM::BumperTimerComponent:
Collaboration diagram for BBM::BumperTimerComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 BumperTimerComponent (WAL::Entity &entity)
 Constructor. More...
 
 BumperTimerComponent (const BumperTimerComponent &)=default
 A BumperTimer component can't be instantiated, it should be derived. More...
 
 ~BumperTimerComponent () override=default
 default destructor More...
 
BumperTimerComponentoperator= (const BumperTimerComponent &)=delete
 A BumperTimer component can't be assigned. More...
 
- Public Member Functions inherited from WAL::Component
Componentoperator= (const Component &)=delete
 A component can't be assigned. More...
 
virtual ~Component ()=default
 A virtual destructor. More...
 
virtual void onStart ()
 The entity or this component has just been enabled. More...
 
virtual void onStop ()
 The entity or this component has just been disable. More...
 

Public Attributes

bool _isReseting = false
 
std::chrono::nanoseconds resetRate = 1500ms
 The number of seconds of each rest. This variable is used to reset the nextReset value. More...
 
std::chrono::nanoseconds nextReset = resetRate
 The number of nanosecond before the next bumper reset for the player. More...
 

Additional Inherited Members

- Protected Member Functions inherited from WAL::Component
 Component (Entity &entity)
 A component can't be instantiated, it should be derived. More...
 
 Component (const Component &)=default
 A component can't be instantiated, it should be derived. More...
 
- Protected Attributes inherited from WAL::Component
Entity_entity
 The entity that own this component. More...
 

Constructor & Destructor Documentation

◆ BumperTimerComponent() [1/2]

BBM::BumperTimerComponent::BumperTimerComponent ( WAL::Entity entity)

Constructor.

◆ BumperTimerComponent() [2/2]

BBM::BumperTimerComponent::BumperTimerComponent ( const BumperTimerComponent )
default

A BumperTimer component can't be instantiated, it should be derived.

◆ ~BumperTimerComponent()

BBM::BumperTimerComponent::~BumperTimerComponent ( )
overridedefault

default destructor

Member Function Documentation

◆ clone()

WAL::Component * BBM::BumperTimerComponent::clone ( WAL::Entity entity) const
overridevirtual

Clone a component for another or the same entity.

Parameters
entityThe entity that owns the ne component.

Implements WAL::Component.

◆ operator=()

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

A BumperTimer component can't be assigned.

Member Data Documentation

◆ _isReseting

bool BBM::BumperTimerComponent::_isReseting = false

◆ nextReset

std::chrono::nanoseconds BBM::BumperTimerComponent::nextReset = resetRate

The number of nanosecond before the next bumper reset for the player.

◆ resetRate

std::chrono::nanoseconds BBM::BumperTimerComponent::resetRate = 1500ms

The number of seconds of each rest. This variable is used to reset the nextReset value.


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