kapman
characteritem.cpp
Go to the documentation of this file.
35 QRectF shapeRect = QRectF( rect.x()+rect.width()/4, rect.y()+rect.height()/4, rect.width()/2, rect.height()/2 );
void addEllipse(const QRectF &boundingRectangle)
virtual void update(qreal p_x, qreal p_y)
Updates the CharacterItem coordinates.
Definition: characteritem.cpp:40
qreal x() const
qreal y() const
qreal x() const
qreal y() const
This class describes the common characteristics and behaviour of the game characters (Kapman and the ...
Definition: character.h:27
QPainterPath shape() const
Overrides the default shape function to make it a small circle This function is used to determinate c...
Definition: characteritem.cpp:28
virtual QRectF boundingRect() const
void setPos(const QPointF &pos)
CharacterItem(Character *p_model)
Creates a new CharacterItem instance.
Definition: characteritem.cpp:20
This class is the graphical representation of a game Element.
Definition: elementitem.h:28
qreal width() const
void start(int msec)
qreal height() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:15 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:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.