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

#include <Acceleration.hpp>

Inheritance diagram for ECS::Acceleration:
ECS::IComp

Public Member Functions

 Acceleration (float x, float y) noexcept
 
 Acceleration (const Acceleration &acc) noexcept
 
 Acceleration (Acceleration &&) noexcept=delete
 
Accelerationoperator= (const Acceleration &) const noexcept=delete
 
Accelerationoperator= (Acceleration &&) const noexcept=delete
 
float getAcceleration_x () const noexcept
 
float getAcceleration_y () const noexcept
 
void setAcceleration_x (float x) noexcept
 
void setAcceleration_y (float y) noexcept
 
 ~Acceleration () noexcept override=default
 
- Public Member Functions inherited from ECS::IComp
virtual ~IComp () noexcept=default
 

Constructor & Destructor Documentation

◆ Acceleration() [1/3]

ECS::Acceleration::Acceleration ( float  x,
float  y 
)
explicitnoexcept

This function is the default constructor for the Acceleration class

◆ Acceleration() [2/3]

ECS::Acceleration::Acceleration ( const Acceleration acc)
noexcept

This function is a copy constructor for the Acceleration class.

Parameters
accThe acceleration to copy.

◆ Acceleration() [3/3]

ECS::Acceleration::Acceleration ( Acceleration &&  )
explicitdeletenoexcept

◆ ~Acceleration()

ECS::Acceleration::~Acceleration ( )
overridedefaultnoexcept

Member Function Documentation

◆ getAcceleration_x()

float ECS::Acceleration::getAcceleration_x ( ) const
noexcept

It returns the value of the private variable _x.

Returns
The value of the private member variable _x.

◆ getAcceleration_y()

float ECS::Acceleration::getAcceleration_y ( ) const
noexcept

It returns the y value of the acceleration.

Returns
The acceleration in the y direction.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setAcceleration_x()

void ECS::Acceleration::setAcceleration_x ( float  x)
noexcept

Sets the acceleration in the x direction.

Parameters
xThe x-coordinate of the acceleration.

◆ setAcceleration_y()

void ECS::Acceleration::setAcceleration_y ( float  y)
noexcept

This function sets the acceleration in the y direction.

Parameters
yThe y-coordinate of the acceleration.

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