granatier
player.h
Go to the documentation of this file.
110 Player(qreal p_x, qreal p_y, const QString& p_playerID, const PlayerSettings* p_playerSettings, Arena* p_arena);
void emitGameUpdated()
Emits a signal to PlayerItem in order to manage collisions.
Definition: player.cpp:804
This class describes the common characteristics and behaviour of the game characters (Players)...
Definition: character.h:31
QString getDesktopFilePath() const
Gets the path to the Player Desktop file.
Definition: player.cpp:75
void keyPressed(QKeyEvent *keyEvent)
Manages the keys for moving and dropping bombs.
Definition: player.cpp:939
void bombDropped(Player *player, qreal x, qreal y, bool newBomb, int throwDistance)
Emitted when the player drops a bomb.
void keyReleased(QKeyEvent *keyEvent)
Manages the keys for moving and dropping bombs.
Definition: player.cpp:996
Player(qreal p_x, qreal p_y, const QString &p_playerID, const PlayerSettings *p_playerSettings, Arena *p_arena)
Creates a new Player instance.
Definition: player.cpp:35
void bonusUpdated(Player *player, Granatier::Bonus::Type bonusType, int percentageElapsed)
Emitted when the player has taken a bonus.
void move()
Moves the Character function of its current coordinates and speed.
Definition: character.cpp:33
void setShortcuts(const Shortcuts &keys)
Shortcuts for moving and dropping bombs.
Definition: player.cpp:65
Definition: playersettings.h:27
int signZeroPositive(const qreal value)
Returns the sign of a value with a positive sign for zero.
Definition: player.cpp:1048
void resurrectBonusTaken()
Emitted when the player has taken the resurrect bonus.
void slot_refillBombArmory()
refills the bomb armory after a bomb is exploded
Definition: player.cpp:838
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.