mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-07 03:25:10 +00:00
fix indentation, now using tabs
This commit is contained in:
@@ -12,50 +12,50 @@
|
||||
#include "Drawables/ADrawable2D.hpp"
|
||||
|
||||
namespace RAY::Drawables::Drawables2D {
|
||||
class Rectangle: public ADrawable2D
|
||||
class Rectangle: public ADrawable2D
|
||||
{
|
||||
public:
|
||||
//! @brief Rectangle constructor
|
||||
//! @param position position of top-left point
|
||||
//! @param dimensions dimensions of the rectangle
|
||||
//! @param Color Color of the rectangle
|
||||
Rectangle(const Vector2 &position, const Vector2 &dimensions, const Color &color);
|
||||
public:
|
||||
//! @brief Rectangle constructor
|
||||
//! @param position position of top-left point
|
||||
//! @param dimensions dimensions of the rectangle
|
||||
//! @param Color Color of the rectangle
|
||||
Rectangle(const Vector2 &position, const Vector2 &dimensions, const Color &color);
|
||||
|
||||
//! @brief Rectangle constructor
|
||||
//! @param x x-position of top-left point
|
||||
//! @param y y-position of top-left point
|
||||
//! @param width width of the rectangle
|
||||
//! @param length length of the rectangle
|
||||
//! @param Color Color of the rectangle
|
||||
Rectangle(int x, int y, int width, int height, const Color &color);
|
||||
|
||||
//! @brief A default copy constructor
|
||||
Rectangle(const Rectangle &) = default;
|
||||
//! @brief Rectangle constructor
|
||||
//! @param x x-position of top-left point
|
||||
//! @param y y-position of top-left point
|
||||
//! @param width width of the rectangle
|
||||
//! @param length length of the rectangle
|
||||
//! @param Color Color of the rectangle
|
||||
Rectangle(int x, int y, int width, int height, const Color &color);
|
||||
|
||||
//! @brief A default copy constructor
|
||||
Rectangle(const Rectangle &) = default;
|
||||
|
||||
//! @brief A rectangle is assignable
|
||||
Rectangle &operator=(const Rectangle &) = default;
|
||||
//! @brief A rectangle is assignable
|
||||
Rectangle &operator=(const Rectangle &) = default;
|
||||
|
||||
//! @brief A default destructor
|
||||
~Rectangle() = default;
|
||||
//! @brief A default destructor
|
||||
~Rectangle() = default;
|
||||
|
||||
//! @return the dimensions of the rectangle
|
||||
const Vector2 &getDimensions(void);
|
||||
//! @return the dimensions of the rectangle
|
||||
const Vector2 &getDimensions(void);
|
||||
|
||||
//! @brief set dimensions
|
||||
Rectangle &setDimensions(const Vector2 &dimensions);
|
||||
//! @brief set dimensions
|
||||
Rectangle &setDimensions(const Vector2 &dimensions);
|
||||
|
||||
//! @brief set dimensions
|
||||
Rectangle &setDimensions(int x, int y);
|
||||
//! @brief set dimensions
|
||||
Rectangle &setDimensions(int x, int y);
|
||||
|
||||
//! @brief Draw point on window
|
||||
void drawOn(RAY::Window &window) override;
|
||||
//! @brief Draw point on image
|
||||
void drawOn(RAY::Image &image) override;
|
||||
//! @brief Draw point on window
|
||||
void drawOn(RAY::Window &) override;
|
||||
//! @brief Draw point on image
|
||||
void drawOn(RAY::Image &image) override;
|
||||
|
||||
private:
|
||||
//! @brief Diemnsions of the rectangle
|
||||
Vector2 _dimensions;
|
||||
};
|
||||
private:
|
||||
//! @brief Diemnsions of the rectangle
|
||||
Vector2 _dimensions;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* !PIXEL_HPP_ */
|
||||
|
||||
Reference in New Issue
Block a user