granatier
characteritem.cpp
Go to the documentation of this file.
24 CharacterItem::CharacterItem(Character* p_model, KGameRenderer* renderer) : ElementItem (p_model, renderer)
41 QRectF shapeRect = QRectF( rect.x()+rect.width()/8, rect.y()+rect.height()/8, rect.width()*3.0/4.0, rect.height()*3.0/4.0 );
void addEllipse(const QRectF &boundingRectangle)
virtual void update(qreal p_x, qreal p_y)
Updates the CharacterItem coordinates.
Definition: characteritem.cpp:46
int width() const
qreal x() const
qreal y() const
This class describes the common characteristics and behaviour of the game characters (Players)...
Definition: character.h:31
QPainterPath shape() const
Overrides the default shape function to make it a small circle This function is used to determinate c...
Definition: characteritem.cpp:34
This class is the graphical representation of a game Element.
Definition: elementitem.h:30
qreal width() const
CharacterItem(Character *p_model, KGameRenderer *renderer)
Creates a new CharacterItem instance.
Definition: characteritem.cpp:24
int height() const
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:10 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:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.