kgoldrunner
KGrHero Class Reference
#include <kgrfigure.h>

Detailed Description
Class to draw and control the hero (main player character).Definition at line 114 of file kgrfigure.h.
Public Slots | |
| void | fallTimeDone () |
| void | walkTimeDone () |
Signals | |
| void | caughtHero () |
| void | digs () |
| void | gotNugget (int) |
| void | haveAllNuggets () |
| void | leaveLevel () |
Public Member Functions | |
| void | dig () |
| void | digLeft () |
| void | digRight () |
| void | doStep () |
| void | init (int, int) |
| KGrHero (KGrCanvas *, int, int) | |
| void | loseNugget () |
| void | setDirection (int, int) |
| void | setEnemyList (QList< KGrEnemy * > *) |
| void | setKey (Direction) |
| void | setSpeed (int) |
| void | showFigure () |
| void | showState (char) |
| void | start () |
| void | startWalk () |
| virtual | ~KGrHero () |
Public Attributes | |
| bool | started |
Static Public Attributes | |
| static int | FALLDELAY = 0 |
| static int | WALKDELAY = 0 |
Constructor & Destructor Documentation
| KGrHero::KGrHero | ( | KGrCanvas * | view, | |
| int | x, | |||
| int | y | |||
| ) |
Definition at line 334 of file kgrfigure.cpp.
| KGrHero::~KGrHero | ( | ) | [virtual] |
Definition at line 850 of file kgrfigure.cpp.
Member Function Documentation
| void KGrHero::caughtHero | ( | ) | [signal] |
| void KGrHero::dig | ( | ) |
Definition at line 726 of file kgrfigure.cpp.
| void KGrHero::digLeft | ( | ) |
Definition at line 734 of file kgrfigure.cpp.
| void KGrHero::digRight | ( | ) |
Definition at line 755 of file kgrfigure.cpp.
| void KGrHero::digs | ( | ) | [signal] |
| void KGrHero::doStep | ( | ) |
Definition at line 492 of file kgrfigure.cpp.
| void KGrHero::fallTimeDone | ( | ) | [slot] |
Definition at line 648 of file kgrfigure.cpp.
| void KGrHero::gotNugget | ( | int | ) | [signal] |
| void KGrHero::haveAllNuggets | ( | ) | [signal] |
| void KGrHero::init | ( | int | a, | |
| int | b | |||
| ) | [virtual] |
| void KGrHero::leaveLevel | ( | ) | [signal] |
| void KGrHero::loseNugget | ( | ) |
Definition at line 818 of file kgrfigure.cpp.
| void KGrHero::setDirection | ( | int | i, | |
| int | j | |||
| ) |
Definition at line 435 of file kgrfigure.cpp.
Definition at line 776 of file kgrfigure.cpp.
| void KGrHero::setKey | ( | Direction | key | ) |
Definition at line 420 of file kgrfigure.cpp.
| void KGrHero::setSpeed | ( | int | gamespeed | ) |
Definition at line 565 of file kgrfigure.cpp.
| void KGrHero::showFigure | ( | ) |
| void KGrHero::showState | ( | char | option | ) |
Definition at line 503 of file kgrfigure.cpp.
| void KGrHero::start | ( | ) |
Definition at line 549 of file kgrfigure.cpp.
| void KGrHero::startWalk | ( | ) |
Definition at line 362 of file kgrfigure.cpp.
| void KGrHero::walkTimeDone | ( | ) | [slot] |
Definition at line 584 of file kgrfigure.cpp.
Member Data Documentation
int KGrHero::FALLDELAY = 0 [static] |
Definition at line 133 of file kgrfigure.h.
| bool KGrHero::started |
Definition at line 120 of file kgrfigure.h.
int KGrHero::WALKDELAY = 0 [static] |
Definition at line 132 of file kgrfigure.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference