kgoldrunner
KGrSprite Class Reference
#include <kgrsprite.h>
Inheritance diagram for KGrSprite:
Public Member Functions | |
KGrSprite (KGameRenderer *renderer, QString &key, const char type, const int tickTime=20) | |
~KGrSprite () | |
void | animate (bool missed) |
void | changeCoordinateSystem (int topLeftX, int topLeftY, int tileSize) |
int | currentFrame () |
QPointF | currentLoc () |
void | move (double x, double y, int frame) |
void | setAnimation (bool repeating, int x, int y, int startFrame, int nFrames, int dx, int dy, int dt, int nFrameChanges) |
void | setCoordinateSystem (int topLeftX, int topLeftY, int tileSize) |
void | setZ (qreal z) |
char | spriteType () |
Detailed Description
Definition at line 29 of file kgrsprite.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 24 of file kgrsprite.cpp.
KGrSprite::~KGrSprite | ( | ) |
Definition at line 49 of file kgrsprite.cpp.
Member Function Documentation
void KGrSprite::animate | ( | bool | missed | ) |
Definition at line 91 of file kgrsprite.cpp.
void KGrSprite::changeCoordinateSystem | ( | int | topLeftX, |
int | topLeftY, | ||
int | tileSize | ||
) |
Definition at line 130 of file kgrsprite.cpp.
|
inline |
Definition at line 38 of file kgrsprite.h.
|
inline |
Definition at line 37 of file kgrsprite.h.
void KGrSprite::move | ( | double | x, |
double | y, | ||
int | frame | ||
) |
Definition at line 53 of file kgrsprite.cpp.
void KGrSprite::setAnimation | ( | bool | repeating, |
int | x, | ||
int | y, | ||
int | startFrame, | ||
int | nFrames, | ||
int | dx, | ||
int | dy, | ||
int | dt, | ||
int | nFrameChanges | ||
) |
Definition at line 70 of file kgrsprite.cpp.
void KGrSprite::setCoordinateSystem | ( | int | topLeftX, |
int | topLeftY, | ||
int | tileSize | ||
) |
Definition at line 120 of file kgrsprite.cpp.
|
inline |
Definition at line 39 of file kgrsprite.h.
|
inline |
Definition at line 36 of file kgrsprite.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.