R-TYPE
Bullet.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2022
3 ** r-type
4 ** File description:
5 ** Bullet
6 */
7 
8 #ifndef BULLET_HPP_
9 #define BULLET_HPP_
10 
11 #include "IComp.hpp"
12 
13 namespace ECS {
14 class Bullet : public IComp {
15  public:
16  explicit Bullet(bool isFriend) noexcept;
17  Bullet(const Bullet& bullet) noexcept;
18  explicit Bullet(Bullet&&) noexcept = delete;
19  ~Bullet() noexcept override = default;
20 
21  Bullet& operator=(Bullet&&) const noexcept = delete;
22  Bullet& operator=(const Bullet&) const noexcept = delete;
23 
24  void setBullet(const bool& isFriend) noexcept;
25  [[nodiscard]] bool getBullet() const noexcept;
26  protected:
27  private:
28  bool _isFriend;
29 };
30 };
31 
32 #endif /* !BULLET_HPP_ */
Definition: Bullet.hpp:14
bool getBullet() const noexcept
Definition: Bullet.cpp:45
Bullet(Bullet &&) noexcept=delete
void setBullet(const bool &isFriend) noexcept
Definition: Bullet.cpp:35
Bullet(bool isFriend) noexcept
Definition: Bullet.cpp:16
Definition: IComp.hpp:7
Definition: ComponentManager.hpp:14