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

#include <BasicBombComponent.hpp>

Inheritance diagram for BBM::BasicBombComponent:
Collaboration diagram for BBM::BasicBombComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 BasicBombComponent (WAL::Entity &entity, int damageHit, int radius, std::vector< unsigned > ignored)
 A component can't be instantiated, it should be derived. More...
 
 BasicBombComponent (const BasicBombComponent &)=default
 A component can't be instantiated, it should be derived. More...
 
 ~BasicBombComponent () override=default
 default destructor More...
 
BasicBombComponentoperator= (const BasicBombComponent &)=delete
 A 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

const int explosionRadius = 3
 The radius of the explosion. More...
 
const int damage = 1
 The damage made by the explosion on an entity. More...
 
std::vector< unsigned > ignoredEntities
 The list of IDs of ignored entities. 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

◆ BasicBombComponent() [1/2]

BBM::BasicBombComponent::BasicBombComponent ( WAL::Entity entity,
int  damageHit,
int  radius,
std::vector< unsigned >  ignored 
)
explicit

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

◆ BasicBombComponent() [2/2]

BBM::BasicBombComponent::BasicBombComponent ( const BasicBombComponent )
default

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

◆ ~BasicBombComponent()

BBM::BasicBombComponent::~BasicBombComponent ( )
overridedefault

default destructor

Member Function Documentation

◆ clone()

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

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

A component can't be assigned.

Member Data Documentation

◆ damage

const int BBM::BasicBombComponent::damage = 1

The damage made by the explosion on an entity.

◆ explosionRadius

const int BBM::BasicBombComponent::explosionRadius = 3

The radius of the explosion.

◆ ignoredEntities

std::vector<unsigned> BBM::BasicBombComponent::ignoredEntities

The list of IDs of ignored entities.


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