granatier
elementitem.h
Go to the documentation of this file.
ElementItem(Element *p_model, KGameRenderer *renderer)
Creates a new ElementItem instance.
Definition: elementitem.cpp:26
virtual void update(qreal p_x, qreal p_y)
Updates the ElementItem coordinates.
Definition: elementitem.cpp:55
Element * m_model
The instance of Element the ElementItem will represent.
Definition: elementitem.h:40
virtual void updateGraphicsInternal(qreal svgScaleFactor)
Definition: elementitem.cpp:70
This class is the graphical representation of a game Element.
Definition: elementitem.h:30
This class describes the common characteristics and behaviour of any game Element (character or item)...
Definition: element.h:32
QPainterPath shape() const
Reimplement QGraphicsItem::shape() to return an ellipse to improve collisions.
Definition: elementitem.cpp:48
virtual void updateGraphics(qreal svgScaleFactor)
Updates the graphics after a resize.
Definition: elementitem.cpp:65
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.