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

#include <Rotate.hpp>

Inheritance diagram for ECS::Rotate:
ECS::IComp

Public Member Functions

 Rotate (short rotate) noexcept
 
 Rotate (const Rotate &rotate) noexcept
 
 Rotate (Rotate &&) noexcept=delete
 
 ~Rotate () noexcept override=default
 
Rotateoperator= (const Rotate &) const noexcept=delete
 
Rotateoperator= (Rotate &&) const noexcept=delete
 
short getRotate () const noexcept
 
void setRotate (short rotate) noexcept
 
- Public Member Functions inherited from ECS::IComp
virtual ~IComp () noexcept=default
 

Constructor & Destructor Documentation

◆ Rotate() [1/3]

ECS::Rotate::Rotate ( short  rotate)
explicitnoexcept

A constructor for the Rotate class.

Parameters
rotateThe amount of degrees to rotate the image.

◆ Rotate() [2/3]

ECS::Rotate::Rotate ( const Rotate rotate)
noexcept

Copy constructor for the Rotate class.

Parameters
rotateThe angle of rotation in degrees.

◆ Rotate() [3/3]

ECS::Rotate::Rotate ( Rotate &&  )
explicitdeletenoexcept

◆ ~Rotate()

ECS::Rotate::~Rotate ( )
overridedefaultnoexcept

Member Function Documentation

◆ getRotate()

short ECS::Rotate::getRotate ( ) const
noexcept

It returns the value of the private variable _rotate.

Returns
The rotate value.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setRotate()

void ECS::Rotate::setRotate ( short  rotate)
noexcept

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