A base class for anything that has a position on the screen.
More...
#include <Transformable.hpp>
|
virtual void | setPosition (const dl::Vector2f &position) |
| Sets the position of the transformable.
|
|
void | setPosition (float x, float y) |
| Sets the position of the transformable.
|
|
virtual void | move (const dl::Vector2f &offset) |
| Moves the transformable offset number of pixels.
|
|
void | move (float xOffset, float yOffset) |
| Moves the transformable offset number of pixels.
|
|
const dl::Vector2f & | getPosition () const |
|
A base class for anything that has a position on the screen.
◆ getPosition()
const dl::Vector2f & dl::Transformable::getPosition |
( |
| ) |
const |
- Returns
- The transformable's position
◆ move() [1/2]
Moves the transformable offset number of pixels.
- Parameters
-
Reimplemented in dl::Sprite.
◆ move() [2/2]
void dl::Transformable::move |
( |
float | xOffset, |
|
|
float | yOffset ) |
Moves the transformable offset number of pixels.
- Parameters
-
xOffset | The offset to move (X) |
yOffset | The offset to move (Y) |
◆ setPosition() [1/2]
void dl::Transformable::setPosition |
( |
const dl::Vector2f & | position | ) |
|
|
virtual |
Sets the position of the transformable.
- Parameters
-
position | The position to set |
Reimplemented in dl::Sprite.
◆ setPosition() [2/2]
void dl::Transformable::setPosition |
( |
float | x, |
|
|
float | y ) |
Sets the position of the transformable.
- Parameters
-
x | The position to set (X) |
y | The position to set (Y) |
The documentation for this class was generated from the following files: