kapman
#include <ghostitem.h>
Public Slots | |
void | blink () |
void | update (qreal p_x, qreal p_y) |
void | updateState () |
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 | |
GhostItem (Ghost *p_model) | |
~GhostItem () | |
void | updateBlinkTimersDuration () |
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 is the graphical representation of a Ghost.
Definition at line 28 of file ghostitem.h.
Constructor & Destructor Documentation
GhostItem::GhostItem | ( | Ghost * | p_model | ) |
Creates a new GhostItem instance.
- Parameters
-
p_model the Ghost model
Definition at line 22 of file ghostitem.cpp.
GhostItem::~GhostItem | ( | ) |
Deletes the CharacterItem instance.
Definition at line 41 of file ghostitem.cpp.
Member Function Documentation
|
slot |
Implements the CharacterItem method.
Definition at line 90 of file ghostitem.cpp.
|
slot |
Updates the view coordinates.
- Parameters
-
p_x the new x-coordinate p_y the new y-coordinate
Definition at line 53 of file ghostitem.cpp.
void GhostItem::updateBlinkTimersDuration | ( | ) |
Ensures the blink timers are correctly set.
Definition at line 45 of file ghostitem.cpp.
|
slot |
Update the image function of the Ghost state.
Definition at line 61 of file ghostitem.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.