kapman
kapman.cpp
Go to the documentation of this file.
96 if ((m_askedXSpeed != 0 || m_askedYSpeed != 0) && (m_askedXSpeed != m_xSpeed || m_askedYSpeed != m_ySpeed)) {
Cell getCell(const int p_row, const int p_column) const
Gets the Cell at the given coordinates.
Definition: maze.cpp:180
qreal m_speedIncrease
The value the character's speed is incremented by when level up.
Definition: character.h:66
This class describes the common characteristics and behaviour of the game characters (Kapman and the ...
Definition: character.h:27
static const qreal LOW_SPEED_INC
Speed increase on easy level (percentage)
Definition: character.h:43
void move()
Moves the Character function of its current coordinates and speed.
Definition: character.cpp:38
Definition: cell.h:38
bool onCenter()
Checks the Character gets on a Cell center during its next movement.
Definition: character.cpp:191
This class describes the common characteristics and behaviour of any game Element (character or item)...
Definition: element.h:30
void initSpeedInc()
Initializes the Kapman speed from the Character speed.
Definition: kapman.cpp:184
static const qreal MEDIUM_SPEED_INC
Speed increase on medium level (percentage)
Definition: character.h:46
void sWinPoints(Element *p_element)
Signals to the game that the kapman win points.
qreal m_normalSpeed
Reference to the speed of the character when in "normal" behaviour.
Definition: character.h:63
void moveOnCenter()
Moves the character on the center of its current Cell.
Definition: character.cpp:222
Definition: element.h:38
int getRowFromY(const qreal p_y) const
Gets the row index corresponding to the given y-coordinate.
Definition: maze.cpp:199
int getColFromX(const qreal p_x) const
Gets the column index corresponding to the given x-coordinate.
Definition: maze.cpp:203
void emitGameUpdated()
Emits a signal to Kapmanitem in order to manage collisions.
Definition: kapman.cpp:144
static const qreal HIGH_SPEED_INC
Speed increase on hard level (percentage)
Definition: character.h:49
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.