P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
SfmlPolygon Class Reference

#include <SfmlPolygon.hpp>

Inheritance diagram for SfmlPolygon:
Collaboration diagram for SfmlPolygon:

Public Member Functions

 SfmlPolygon (std::vector< Vector2f > points)
 ~SfmlPolygon ()=default
bool isReady () const override
 Get the Position object.
Vector2f getPosition () const override
 Get the Position object.
void setPosition (Vector2f position) override
 Set the Position object.
Color getColor () const override
 Get the Color object.
void setColor (Color color) override
 Set the Color object.
std::vector< Vector2f > getPoints () const override
 Get the Points object.
Public Member Functions inherited from graphic::IPolygon
virtual ~IPolygon ()=default
 Destroy the IPolygon object.

Friends

class SfmlWindow

Constructor & Destructor Documentation

◆ SfmlPolygon()

SfmlPolygon::SfmlPolygon ( std::vector< Vector2f > points)
inline

◆ ~SfmlPolygon()

SfmlPolygon::~SfmlPolygon ( )
default

Member Function Documentation

◆ getColor()

Color SfmlPolygon::getColor ( ) const
inlineoverridevirtual

Get the Color object.

Returns
Color

Implements graphic::IPolygon.

◆ getPoints()

std::vector< Vector2f > SfmlPolygon::getPoints ( ) const
inlineoverridevirtual

Get the Points object.

Returns
std::vector<Vector2f>

Implements graphic::IPolygon.

◆ getPosition()

Vector2f SfmlPolygon::getPosition ( ) const
inlineoverridevirtual

Get the Position object.

Returns
Vector2f

Implements graphic::IPolygon.

◆ isReady()

bool SfmlPolygon::isReady ( ) const
inlineoverridevirtual

Get the Position object.

Returns
Vector2f

Implements graphic::IPolygon.

◆ setColor()

void SfmlPolygon::setColor ( Color position)
inlineoverridevirtual

Set the Color object.

Parameters
position

Implements graphic::IPolygon.

◆ setPosition()

void SfmlPolygon::setPosition ( Vector2f position)
inlineoverridevirtual

Set the Position object.

Parameters
position

Implements graphic::IPolygon.

◆ SfmlWindow

friend class SfmlWindow
friend

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