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

#include <WhiteShaderComponent.hpp>

Inheritance diagram for BBM::WhiteShaderComponent:
Collaboration diagram for BBM::WhiteShaderComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 WhiteShaderComponent (WAL::Entity &entity)
 ctor More...
 
 WhiteShaderComponent (const WhiteShaderComponent &)=default
 Default copy ctor. More...
 
 ~WhiteShaderComponent () override=default
 Default dtor. More...
 
WhiteShaderComponentoperator= (const WhiteShaderComponent &)=delete
 Default assignment operator. 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

float whiteValue = 0
 Transparency. More...
 
float balance = 1
 used to increase & decrease white value More...
 
std::chrono::nanoseconds clock = 0ns
 The clock to use. 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

◆ WhiteShaderComponent() [1/2]

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

ctor

◆ WhiteShaderComponent() [2/2]

BBM::WhiteShaderComponent::WhiteShaderComponent ( const WhiteShaderComponent )
default

Default copy ctor.

◆ ~WhiteShaderComponent()

BBM::WhiteShaderComponent::~WhiteShaderComponent ( )
overridedefault

Default dtor.

Member Function Documentation

◆ clone()

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

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

Default assignment operator.

Member Data Documentation

◆ balance

float BBM::WhiteShaderComponent::balance = 1

used to increase & decrease white value

◆ clock

std::chrono::nanoseconds BBM::WhiteShaderComponent::clock = 0ns

The clock to use.

◆ whiteValue

float BBM::WhiteShaderComponent::whiteValue = 0

Transparency.


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