#include <piecesprite.h>
Inheritance diagram for PieceSprite:
Public Types | |
| enum | MovementState { Idle, LinearMove } |
| Possible animation states of the sprite. More... | |
Public Member Functions | |
| PieceSprite (QString id, ThemeManager *theme, int advancePeriod, int no, QGraphicsScene *canvas) | |
| Constructor for the sprite. | |
| ~PieceSprite () | |
| Destructor. | |
| virtual void | advance (int phase) |
| Standard QGI advance function. | |
| virtual int | type () const |
| Retrieve the type of QGI. | |
| virtual void | changeTheme () |
| Standard Themable function. | |
| SpriteNotify * | notify () |
| Retrieve the sprite notification object. | |
| void | startLinear (QPointF end, double velocity) |
| Start a linear movement from the current position to the given end position with the given velocity. | |
| void | startLinear (QPointF start, QPointF end, double velocity) |
| Start a linear movement from the start point to the given end position with the given velocity. | |
The pixmap can be animated and moving.
Definition at line 37 of file piecesprite.h.
|
|
Possible animation states of the sprite.
Definition at line 51 of file piecesprite.h. |
|
||||||||||||||||||||||||
|
Constructor for the sprite.
Definition at line 35 of file piecesprite.cpp. References ThemeManager::updateTheme(). Here is the call graph for this function: |
|
|
Destructor.
Definition at line 43 of file piecesprite.cpp. |
|
|
Standard QGI advance function.
Reimplemented from PixmapSprite. Definition at line 88 of file piecesprite.cpp. References PixmapSprite::advance(), SpriteNotify::emitSignal(), Themable::getScale(), Idle, LinearMove, PixmapSprite::mStart, and PixmapSprite::mTime. Here is the call graph for this function: |
|
|
Standard Themable function. It is called when the theme item needs to completely refresh iteself. Reimplemented from PixmapSprite. Definition at line 49 of file piecesprite.cpp. References PixmapSprite::changeTheme(). Here is the call graph for this function: |
|
|
Retrieve the sprite notification object. This object indicates the end of a movement.
Definition at line 72 of file piecesprite.h. Referenced by DisplayGame::displayPiece(). |
|
||||||||||||||||
|
Start a linear movement from the start point to the given end position with the given velocity.
Definition at line 56 of file piecesprite.cpp. References Themable::getScale(), LinearMove, PixmapSprite::mStart, and PixmapSprite::mTime. Here is the call graph for this function: |
|
||||||||||||
|
Start a linear movement from the current position to the given end position with the given velocity.
Definition at line 73 of file piecesprite.cpp. References Themable::getScale(), LinearMove, PixmapSprite::mStart, and PixmapSprite::mTime. Referenced by DisplayGame::displayPiece(). Here is the call graph for this function: |
|
|
Retrieve the type of QGI. This item is UserType+2
Reimplemented from PixmapSprite. Definition at line 61 of file piecesprite.h. |
1.4.6