granatier
playeritem.cpp
Go to the documentation of this file.
37 PlayerItem::PlayerItem(Player* p_model, KGameRenderer* renderer) : CharacterItem(p_model, renderer)
171 // The arena and the points labels have a negative zValue which allows to exclude them from the treatment of collisions
301 transform.translate(-m_itemSizeReal.width() * (1-m_fallingAnimationCounter*0.02) / 2.0, -m_itemSizeReal.width() * (1-m_fallingAnimationCounter*0.02) / 2.0);
368 transform.translate(-m_itemSizeReal.width() * resurrectionScale / 2.0, -m_itemSizeReal.width() * resurrectionScale / 2.0);
int width() const
virtual void update(qreal p_x, qreal p_y)
Updates the ElementItem coordinates.
Definition: elementitem.cpp:55
void setFrameRange(int startFrame, int endFrame)
void setDuration(int duration)
void setPaused(bool paused)
void setLoopCount(int count)
int size() const
void setCurveShape(CurveShape shape)
void updateDirection()
Rotates the image function of the Player direction.
Definition: playeritem.cpp:124
This class is the graphical representation of a Character.
Definition: characteritem.h:30
QTransform & translate(qreal dx, qreal dy)
Definition: granatierglobals.h:129
Element * m_model
The instance of Element the ElementItem will represent.
Definition: elementitem.h:40
PlayerItem(Player *p_model, KGameRenderer *renderer)
Creates a new PlayerItem instance.
Definition: playeritem.cpp:37
This class is the graphical representation of a Bomb explosion.
Definition: bombexplosionitem.h:33
This class describes the common characteristics and behaviour of the bomb item.
Definition: bomb.h:30
virtual void doActionOnCollision(Player *p_player)
Computes an action on a collision with the Player.
Definition: element.cpp:30
virtual void updateGraphicsInternal(qreal svgScaleFactor)
Definition: elementitem.cpp:70
QTransform & rotate(qreal angle, Qt::Axis axis)
void setFrame(const int p_frame)
Sets the given frame to the PlayerItem.
Definition: playeritem.cpp:261
int height() const
void stop()
Definition: granatierglobals.h:128
void bonusItemTaken(BonusItem *bonusItem)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void start()
State state() const
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.