R-TYPE
Public Member Functions | List of all members
ECS::Controlable Class Reference

#include <Controlable.hpp>

Inheritance diagram for ECS::Controlable:
ECS::IComp

Public Member Functions

 Controlable (bool con) noexcept
 
 Controlable (const Controlable &con) noexcept
 
 Controlable (Controlable &&) noexcept=delete
 
 ~Controlable () noexcept override=default
 
Controlableoperator= (const Controlable &) const noexcept=delete
 
Controlableoperator= (Controlable &&) const noexcept=delete
 
bool getControlable () const noexcept
 
void changeControlable () noexcept
 
- Public Member Functions inherited from ECS::IComp
virtual ~IComp () noexcept=default
 

Constructor & Destructor Documentation

◆ Controlable() [1/3]

ECS::Controlable::Controlable ( bool  cont)
explicitnoexcept

This function is a constructor for the Controlable class. It takes a boolean as a parameter and sets the _controlable variable to that boolean

Parameters
contWhether or not the entity is controlable.

◆ Controlable() [2/3]

ECS::Controlable::Controlable ( const Controlable cont)
noexcept

Copy constructor for the Controlable class.

Parameters
contThe Controlable object to copy.

◆ Controlable() [3/3]

ECS::Controlable::Controlable ( Controlable &&  )
explicitdeletenoexcept

◆ ~Controlable()

ECS::Controlable::~Controlable ( )
overridedefaultnoexcept

Member Function Documentation

◆ changeControlable()

void ECS::Controlable::changeControlable ( )
noexcept

If the entity is controlable, it becomes not controlable, and if it's not controlable, it becomes controlable

◆ getControlable()

bool ECS::Controlable::getControlable ( ) const
noexcept

It returns the value of the private variable _controlable.

Returns
A boolean value.

◆ operator=() [1/2]

Controlable& ECS::Controlable::operator= ( const Controlable ) const
deletenoexcept

◆ operator=() [2/2]

Controlable& ECS::Controlable::operator= ( Controlable &&  ) const
deletenoexcept

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