Bromeon
Public Member Functions
thor::Positionable Class Reference

Functionality class for a 2D position. More...

Inheritance diagram for thor::Positionable:
Inheritance graph

List of all members.

Public Member Functions

 Positionable (sf::Vector2f position=sf::Vector2f(0.f, 0.f))
 (Default) Constructor
void SetPosition (sf::Vector2f position)
 Sets the object's position.
void SetPosition (float x, float y)
 Sets the object's position.
void Move (sf::Vector2f offset)
 Moves the object by a given offset.
void Move (float offsetX, float offsetY)
 Moves the object by a given offset.
sf::Vector2f GetPosition () const
 Returns the object's position.

Detailed Description

Functionality class for a 2D position.

Stores a position vector and provides methods to access it.


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