kapman
character.h
Go to the documentation of this file.
qreal m_speedIncrease
The value the character's speed is incremented by when level up.
Definition: character.h:66
virtual void initSpeedInc()=0
Initializes the Character speed increment considering the difficulty level.
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
void increaseCharactersSpeed()
Increases the Character speed with each level completed.
Definition: character.cpp:100
void initSpeed()
Initializes the Character speed considering the difficulty level.
Definition: character.cpp:83
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
static const qreal MEDIUM_SPEED_INC
Speed increase on medium level (percentage)
Definition: character.h:46
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
Character(qreal p_x, qreal p_y, Maze *p_maze)
Creates a new Character instance.
Definition: character.cpp:30
static const qreal HIGH_SPEED_INC
Speed increase on hard level (percentage)
Definition: character.h:49
bool isInLineSight(Character *p_character)
Checks the Character is in the line of sight of the given other Character.
Definition: character.cpp:109
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.