R-TYPE
Rotate.hpp
Go to the documentation of this file.
1 #ifndef _ROTATE
2 #define _ROTATE
3 
4 #include "IComp.hpp"
5 
6 namespace ECS {
7 
8 class Rotate : public IComp {
9 public:
10  explicit Rotate(short rotate) noexcept;
11  Rotate(const Rotate& rotate) noexcept;
12  explicit Rotate(Rotate&&) noexcept = delete;
13  ~Rotate() noexcept override = default;
14 
15  Rotate& operator=(const Rotate&) const noexcept = delete;
16  Rotate& operator=(Rotate&&) const noexcept = delete;
17 
18  [[nodiscard]] short getRotate() const noexcept;
19  void setRotate(short rotate) noexcept;
20 
21 private:
22  short _rotate;
23 };
24 
25 };
26 
27 #endif
Definition: IComp.hpp:7
Definition: Rotate.hpp:8
short getRotate() const noexcept
Definition: Rotate.cpp:28
Rotate(Rotate &&) noexcept=delete
void setRotate(short rotate) noexcept
Definition: Rotate.cpp:30
Rotate(short rotate) noexcept
Definition: Rotate.cpp:8
Definition: ComponentManager.hpp:14