Athena IO Library
athena::Sakura::SpritePart Class Reference
Collaboration diagram for athena::Sakura::SpritePart:
Collaboration graph

Public Member Functions

 SpritePart (SpriteFrame *root)
 
 SpritePart (SpriteFrame *root, const std::string &name, bool hasCollision=false)
 
void setName (const std::string &name)
 
std::string name () const
 
void setCollision (bool col)
 
bool hasCollision () const
 
void setOffset (float x, float y)
 setOffset More...
 
void setOffset (const Vector2Df &offset)
 setOffset More...
 
Vector2Df offset () const
 offset More...
 
void setTextureOffset (float x, float y)
 setTextureOffset More...
 
void setTextureOffset (const Vector2Df &offset)
 setTextureOffset More...
 
Vector2Df textureOffset () const
 textureOffset More...
 
void setSize (atUint32 width, atUint32 height)
 setSize More...
 
void setSize (const Vector2Di &size)
 setSize More...
 
Vector2Di size () const
 size More...
 
void setFlippedHorizontally (const bool val)
 setFlippedHorizontally More...
 
bool flippedHorizontally () const
 flippedHorizontally More...
 
void setFlippedVertically (const bool val)
 setFlippedVertically More...
 
bool flippedVertically () const
 flippedVertically More...
 
void setRoot (SpriteFrame *root)
 
SpriteFrameroot () const
 

Detailed Description

Definition at line 23 of file SpritePart.hpp.

Member Function Documentation

bool athena::Sakura::SpritePart::flippedHorizontally ( ) const

flippedHorizontally

Returns
bool athena::Sakura::SpritePart::flippedVertically ( ) const

flippedVertically

Returns
Vector2Df athena::Sakura::SpritePart::offset ( ) const

offset

Returns
void athena::Sakura::SpritePart::setFlippedHorizontally ( const bool  val)

setFlippedHorizontally

Parameters
val
void athena::Sakura::SpritePart::setFlippedVertically ( const bool  val)

setFlippedVertically

Parameters
val
void athena::Sakura::SpritePart::setOffset ( float  x,
float  y 
)

setOffset

Parameters
x
y
void athena::Sakura::SpritePart::setOffset ( const Vector2Df offset)

setOffset

Parameters
offset
void athena::Sakura::SpritePart::setSize ( atUint32  width,
atUint32  height 
)

setSize

Parameters
width
height
void athena::Sakura::SpritePart::setSize ( const Vector2Di size)

setSize

Parameters
size
void athena::Sakura::SpritePart::setTextureOffset ( float  x,
float  y 
)

setTextureOffset

Parameters
x
y
void athena::Sakura::SpritePart::setTextureOffset ( const Vector2Df offset)

setTextureOffset

Parameters
texOff
Vector2Di athena::Sakura::SpritePart::size ( ) const

size

Returns
Vector2Df athena::Sakura::SpritePart::textureOffset ( ) const

textureOffset

Returns

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