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

#include <Bullet.hpp>

Inheritance diagram for ECS::Bullet:
ECS::IComp

Public Member Functions

 Bullet (bool isFriend) noexcept
 
 Bullet (const Bullet &bullet) noexcept
 
 Bullet (Bullet &&) noexcept=delete
 
 ~Bullet () noexcept override=default
 
Bulletoperator= (Bullet &&) const noexcept=delete
 
Bulletoperator= (const Bullet &) const noexcept=delete
 
void setBullet (const bool &isFriend) noexcept
 
bool getBullet () const noexcept
 
- Public Member Functions inherited from ECS::IComp
virtual ~IComp () noexcept=default
 

Constructor & Destructor Documentation

◆ Bullet() [1/3]

ECS::Bullet::Bullet ( bool  isFriend)
explicitnoexcept

This function is a constructor for the Bullet class

Parameters
isFriendWhether the bullet is friendly or not.

◆ Bullet() [2/3]

ECS::Bullet::Bullet ( const Bullet bullet)
noexcept

ECS::Bullet::Bullet(const Bullet& bullet) noexcept : _isFriend(bullet.getBullet())

Parameters
bulletThe bullet to copy.

◆ Bullet() [3/3]

ECS::Bullet::Bullet ( Bullet &&  )
explicitdeletenoexcept

◆ ~Bullet()

ECS::Bullet::~Bullet ( )
overridedefaultnoexcept

Member Function Documentation

◆ getBullet()

bool ECS::Bullet::getBullet ( ) const
noexcept

It returns the value of the private variable _isFriend.

Returns
A boolean value.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setBullet()

void ECS::Bullet::setBullet ( const bool &  isFriend)
noexcept

This function sets the bullet to be friendly or not.

Parameters
isFriendWhether the bullet is friendly or not.

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