|
Bomberman
|
Represent a single component of WAL. More...
#include <Component.hpp>
Public Member Functions | |
| Component & | operator= (const Component &)=delete |
| A component can't be assigned. More... | |
| virtual | ~Component ()=default |
| A virtual destructor. More... | |
| virtual Component * | clone (Entity &entity) const =0 |
| Clone a component for another or the same entity. 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... | |
Protected Member Functions | |
| 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 | |
| Entity & | _entity |
| The entity that own this component. More... | |
Represent a single component of WAL.
|
explicitprotected |
A component can't be instantiated, it should be derived.
|
protecteddefault |
A component can't be instantiated, it should be derived.
|
virtualdefault |
A virtual destructor.
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implemented in BBM::SoundComponent, BBM::ControllableComponent, BBM::Drawable2DComponent, BBM::GamepadComponent, BBM::CollisionComponent, BBM::MusicComponent, BBM::KeyboardComponent, BBM::HealthComponent, BBM::AlphaVarShaderComponent, BBM::TagComponent< name >, BBM::Drawable3DComponent, BBM::ShaderComponent, BBM::BombHolderComponent, BBM::ButtonComponent< T >, BBM::LobbyComponent, BBM::ResumeLobbyComponent, BBM::BombExplosionShaderComponent, BBM::IAControllableComponent, BBM::MovableComponent, BBM::WhiteShaderComponent, BBM::AnimationsComponent, BBM::BumperTimerComponent, BBM::IntroAnimationComponent, BBM::PositionComponent, BBM::BasicBombComponent, BBM::PlayerBonusComponent, BBM::TimerComponent, BBM::StatComponent, BBM::LevitateComponent, BBM::CameraComponent, BBM::ColorComponent, BBM::GridCenteredComponent, BBM::SpeedComponent, BBM::GravityComponent, BBM::ScoreComponent, and BBM::AnimatorComponent.
|
virtual |
The entity or this component has just been enabled.
Reimplemented in BBM::ShaderComponentModel, BBM::GamepadComponent, and BBM::KeyboardComponent.
|
virtual |
The entity or this component has just been disable.
|
protected |
The entity that own this component.
1.8.17