1 #ifndef SSPRITEPART_HPP 2 #define SSPRITEPART_HPP 4 #include "athena/SakuraGlobal.hpp" 29 Q_PROPERTY(QString name READ name WRITE setName)
30 Q_PROPERTY(
bool hasCollision READ hasCollision WRITE setCollision)
44 void setName(
const std::string& name);
45 std::string name()
const;
47 void setName(
const QString& name);
51 void setCollision(
bool col);
52 bool hasCollision()
const;
102 #ifndef ATHENA_USE_QT 113 void setSize(atUint32 width, atUint32 height);
119 #ifndef ATHENA_USE_QT 122 void setSize(
const QSize& size);
129 #ifndef ATHENA_USE_QT 164 void nameChanged(QString);
165 void orientationChanged(
bool,
bool);
166 void offsetChanged(QPoint);
167 void textureOffsetChanged(QPoint);
168 void sizeChanged(QSize);
169 void collisionChanged(
bool);
174 #ifndef ATHENA_USE_QT 180 #ifndef ATHENA_USE_QT 186 QPoint m_textureOffset;
191 atUint32 m_frameIndex;
200 #endif // SSPRITEPART_HPP void setTextureOffset(float x, float y)
setTextureOffset
Vector2Di size() const
size
void setSize(atUint32 width, atUint32 height)
setSize
bool flippedVertically() const
flippedVertically
Vector2Df offset() const
offset
bool flippedHorizontally() const
flippedHorizontally
Vector2Df textureOffset() const
textureOffset
void setFlippedVertically(const bool val)
setFlippedVertically
void setFlippedHorizontally(const bool val)
setFlippedHorizontally
void setOffset(float x, float y)
setOffset