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

#include <GravityComponent.hpp>

Inheritance diagram for BBM::GravityComponent:
Collaboration diagram for BBM::GravityComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 GravityComponent (WAL::Entity &entity)
 Constructor. More...
 
 GravityComponent (const GravityComponent &)=default
 A Gravity component can't be instantiated, it should be derived. More...
 
 ~GravityComponent () override=default
 default destructor More...
 
GravityComponentoperator= (const GravityComponent &)=delete
 A Gravity 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...
 

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

◆ GravityComponent() [1/2]

BBM::GravityComponent::GravityComponent ( WAL::Entity entity)

Constructor.

◆ GravityComponent() [2/2]

BBM::GravityComponent::GravityComponent ( const GravityComponent )
default

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

◆ ~GravityComponent()

BBM::GravityComponent::~GravityComponent ( )
overridedefault

default destructor

Member Function Documentation

◆ clone()

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

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

A Gravity component can't be assigned.


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