Bomberman
Public Member Functions | List of all members
RAY::Drawables::Drawables2D::Point Class Reference

Point in a two-dimensionnal space. More...

#include <Point.hpp>

Inheritance diagram for RAY::Drawables::Drawables2D::Point:
Collaboration diagram for RAY::Drawables::Drawables2D::Point:

Public Member Functions

 Point (const Vector2 &position, const Color &)
 Point constructor. More...
 
 Point (int x, int y, const Color &)
 Point constructor. More...
 
 Point (const Point &)=default
 A default copy constructor. More...
 
Pointoperator= (const Point &)=default
 A point is assignable. More...
 
 ~Point () override=default
 A default destructor. More...
 
void drawOn (RAY::Window &) override
 Draw point on window. More...
 
void drawOn (RAY::Image &image) override
 Draw point on image. More...
 
- Public Member Functions inherited from RAY::Drawables::ADrawable2D
 ADrawable2D (const Vector2 &position, const RAY::Color &color, float scale=1, float rotation=0)
 ADrawable constructor. More...
 
 ADrawable2D (int x, int y, const RAY::Color &color, float scale=1, float rotation=0)
 ADrawable constructor. More...
 
 ADrawable2D (const ADrawable2D &)=default
 A default copy constructor. More...
 
 ~ADrawable2D () override=default
 A default destructor. More...
 
const RAY::Vector2getPosition (void) const
 
const RAY::ColorgetColor (void) const
 
ADrawable2DsetPosition (const Vector2 &position)
 set Top-left position More...
 
ADrawable2DsetPosition (int x, int y)
 set Top-left position More...
 
ADrawable2DsetColor (const Color &color)
 set color More...
 
float getScale () const
 scale getter More...
 
void setScale (float scale)
 scale setters More...
 
- Public Member Functions inherited from RAY::Drawables::IDrawable
virtual ~IDrawable ()=default
 

Additional Inherited Members

- Protected Attributes inherited from RAY::Drawables::ADrawable2D
float _rotation = 0
 rotation More...
 
float _scale = 1
 scale More...
 
Vector2 _position
 Top-left position. More...
 
Color _color
 Color of the ADrawable. More...
 

Detailed Description

Point in a two-dimensionnal space.

Constructor & Destructor Documentation

◆ Point() [1/3]

RAY::Drawables::Drawables2D::Point::Point ( const Vector2 position,
const Color color 
)

Point constructor.

Parameters
positionposition of point
ColorColor of the circle

◆ Point() [2/3]

RAY::Drawables::Drawables2D::Point::Point ( int  x,
int  y,
const Color color 
)

Point constructor.

Parameters
xx-position of point
yy-position of point
ColorColor of the circle

◆ Point() [3/3]

RAY::Drawables::Drawables2D::Point::Point ( const Point )
default

A default copy constructor.

◆ ~Point()

RAY::Drawables::Drawables2D::Point::~Point ( )
overridedefault

A default destructor.

Member Function Documentation

◆ drawOn() [1/2]

void RAY::Drawables::Drawables2D::Point::drawOn ( RAY::Image image)
overridevirtual

Draw point on image.

Implements RAY::Drawables::ADrawable2D.

◆ drawOn() [2/2]

void RAY::Drawables::Drawables2D::Point::drawOn ( RAY::Window )
overridevirtual

Draw point on window.

Implements RAY::Drawables::ADrawable2D.

◆ operator=()

Point& RAY::Drawables::Drawables2D::Point::operator= ( const Point )
default

A point is assignable.


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