kapman
#include <kapmanitem.h>
Public Slots | |
void | blink () |
void | manageCollision () |
void | pauseAnim () |
void | resumeAnim () |
void | setFrame (const int p_frame) |
void | setRotationFlag (bool rotate) |
void | startAnim () |
void | startBlinking () |
void | stopAnim () |
void | update (qreal p_x, qreal p_y) |
void | updateDirection () |
Public Slots inherited from CharacterItem | |
virtual void | blink () |
virtual void | startBlinking () |
virtual void | update (qreal p_x, qreal p_y) |
Public Slots inherited from ElementItem | |
virtual void | update (qreal p_x, qreal p_y) |
Public Member Functions | |
KapmanItem (Kapman *p_model) | |
~KapmanItem () | |
Public Member Functions inherited from CharacterItem | |
CharacterItem (Character *p_model) | |
~CharacterItem () | |
QPainterPath | shape () const |
Public Member Functions inherited from ElementItem | |
ElementItem (Element *p_model) | |
~ElementItem () | |
Element * | getModel () const |
QPainterPath | shape () const |
Additional Inherited Members | |
Protected Attributes inherited from CharacterItem | |
QTimer * | m_blinkTimer |
int | m_nbBlinks |
Protected Attributes inherited from ElementItem | |
Element * | m_model |
Detailed Description
This class manage the display of the Kapman.
Definition at line 29 of file kapmanitem.h.
Constructor & Destructor Documentation
KapmanItem::KapmanItem | ( | Kapman * | p_model | ) |
Creates a new KapmanItem instance.
- Parameters
-
p_model the Kapman model
Definition at line 33 of file kapmanitem.cpp.
KapmanItem::~KapmanItem | ( | ) |
Deletes the KapmanItem instance.
Definition at line 64 of file kapmanitem.cpp.
Member Function Documentation
|
slot |
Implements the CharacterItem method.
Definition at line 155 of file kapmanitem.cpp.
|
slot |
Manages the collisions with any Element.
Definition at line 95 of file kapmanitem.cpp.
|
slot |
Pauses the KapmanItem animation.
Definition at line 129 of file kapmanitem.cpp.
|
slot |
Resumes the KapmanItem animation.
Definition at line 134 of file kapmanitem.cpp.
|
slot |
Sets the given frame to the KapmanItem.
- Parameters
-
p_frame the frame to set
Definition at line 145 of file kapmanitem.cpp.
|
inlineslot |
Set if the KapmanItem should be rotated (set by theme flag RotateKapman).
- Parameters
-
0 or 1
Definition at line 121 of file kapmanitem.h.
|
slot |
Starts the KapmanItem animation.
Definition at line 122 of file kapmanitem.cpp.
|
slot |
Implements the CharacterItem method.
Definition at line 149 of file kapmanitem.cpp.
|
slot |
Stops the KapmanItem animation.
Definition at line 139 of file kapmanitem.cpp.
|
slot |
Updates the KapmanItem coordinates.
- Parameters
-
p_x the new x-coordinate p_y the new y-coordinate
Definition at line 113 of file kapmanitem.cpp.
|
slot |
Rotates the image function of the Kapman direction.
Definition at line 68 of file kapmanitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.