mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 02:49:57 +00:00
fix indentation, now using tabs
This commit is contained in:
@@ -14,53 +14,53 @@
|
||||
#include "Color.hpp"
|
||||
|
||||
namespace RAY::Drawables::Drawables2D {
|
||||
class ADrawable2D: public IDrawable
|
||||
class ADrawable2D: public IDrawable
|
||||
{
|
||||
public:
|
||||
//! @brief ADrawable constructor
|
||||
//! @param poition position of top-left point
|
||||
//! @param Color Color of the color
|
||||
ADrawable2D(const Vector2 &position, const RAY::Color &color);
|
||||
//! @brief ADrawable constructor
|
||||
//! @param x x-position of top-left point
|
||||
//! @param y y-position of top-left point
|
||||
//! @param Color Color of the color
|
||||
ADrawable2D(int x, int y, const RAY::Color &color);
|
||||
public:
|
||||
//! @brief ADrawable constructor
|
||||
//! @param poition position of top-left point
|
||||
//! @param Color Color of the color
|
||||
ADrawable2D(const Vector2 &position, const RAY::Color &color);
|
||||
//! @brief ADrawable constructor
|
||||
//! @param x x-position of top-left point
|
||||
//! @param y y-position of top-left point
|
||||
//! @param Color Color of the color
|
||||
ADrawable2D(int x, int y, const RAY::Color &color);
|
||||
|
||||
//! @brief A default copy constructor
|
||||
ADrawable2D(const ADrawable2D &) = default;
|
||||
//! @brief A default copy constructor
|
||||
ADrawable2D(const ADrawable2D &) = default;
|
||||
|
||||
//! @brief A default destructor
|
||||
virtual ~ADrawable2D() = default;
|
||||
//! @brief A default destructor
|
||||
virtual ~ADrawable2D() = default;
|
||||
|
||||
//! @return the top-left position of the ADrawable
|
||||
const Vector2 &getPosition(void) const;
|
||||
//! @return the top-left position of the ADrawable
|
||||
const Vector2 &getPosition(void) const;
|
||||
|
||||
//! @return the color of the ADrawable
|
||||
const RAY::Color &getColor(void) const;
|
||||
//! @return the color of the ADrawable
|
||||
const RAY::Color &getColor(void) const;
|
||||
|
||||
//! @brief set Top-left position
|
||||
ADrawable2D &setPosition(const Vector2 &position);
|
||||
|
||||
//! @brief set Top-left position
|
||||
ADrawable2D &setPosition(int x, int y);
|
||||
|
||||
//! @brief set color
|
||||
ADrawable2D &setColor(const Color &color);
|
||||
//! @brief set Top-left position
|
||||
ADrawable2D &setPosition(const Vector2 &position);
|
||||
|
||||
//! @brief set Top-left position
|
||||
ADrawable2D &setPosition(int x, int y);
|
||||
|
||||
//! @brief set color
|
||||
ADrawable2D &setColor(const Color &color);
|
||||
|
||||
//! @brief Draw drawble on window
|
||||
virtual void drawOn(RAY::Window &window) = 0;
|
||||
//! @brief Draw drawble on window
|
||||
virtual void drawOn(RAY::Window &) = 0;
|
||||
|
||||
//! @brief Draw drawble on image
|
||||
virtual void drawOn(RAY::Image &image) = 0;
|
||||
//! @brief Draw drawble on image
|
||||
virtual void drawOn(RAY::Image &image) = 0;
|
||||
|
||||
protected:
|
||||
//! @brief Top-left position
|
||||
Vector2 _position;
|
||||
//! @brief Color of the ADrawable
|
||||
Color _color;
|
||||
protected:
|
||||
//! @brief Top-left position
|
||||
Vector2 _position;
|
||||
//! @brief Color of the ADrawable
|
||||
Color _color;
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* !ADrawable_HPP_ */
|
||||
|
||||
Reference in New Issue
Block a user