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

A basic position component. More...

#include <ScoreComponent.hpp>

Inheritance diagram for BBM::ScoreComponent:
Collaboration diagram for BBM::ScoreComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 ScoreComponent (WAL::Entity &entity)
 Create a new ScoreComponent linked to a specific entity. More...
 
 ScoreComponent (const ScoreComponent &)=default
 A position component is copy constructable. More...
 
 ~ScoreComponent () override=default
 A default destructor. More...
 
ScoreComponentoperator= (const ScoreComponent &)=delete
 A position component is not assignable. 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

std::chrono::nanoseconds aliveTime
 the score of 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...
 

Detailed Description

A basic position component.

Constructor & Destructor Documentation

◆ ScoreComponent() [1/2]

BBM::ScoreComponent::ScoreComponent ( WAL::Entity entity)
explicit

Create a new ScoreComponent linked to a specific entity.

◆ ScoreComponent() [2/2]

BBM::ScoreComponent::ScoreComponent ( const ScoreComponent )
default

A position component is copy constructable.

◆ ~ScoreComponent()

BBM::ScoreComponent::~ScoreComponent ( )
overridedefault

A default destructor.

Member Function Documentation

◆ clone()

WAL::Component * BBM::ScoreComponent::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=()

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

A position component is not assignable.

Member Data Documentation

◆ aliveTime

std::chrono::nanoseconds BBM::ScoreComponent::aliveTime

the score of the player


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