• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kgoldrunner

  • sources
  • kde-4.14
  • kdegames
  • kgoldrunner
  • src
Classes | Macros | Typedefs | Enumerations | Variables
kgrglobals.h File Reference
#include <QByteArray>
#include <QString>
Include dependency graph for kgrglobals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  KGrGameData
 
class  KGrLevelData
 
class  KGrMessage
 
class  KGrRecording
 

Macros

#define ACTION_CODE   0xa0
 
#define DIRECTION_CODE   0x80
 
#define END_CODE   0xff
 
#define KEY_OPT_CODE   0x9c
 
#define MODE_CODE   0x90
 
#define SPEED_CODE   0xe0
 

Typedefs

typedef char AccessFlag
 
typedef char DirectionFlag
 
typedef char Flags
 

Enumerations

enum  {
  GoldSound, StepSound, ClimbSound, FallSound,
  DigSound, LadderSound, DeathSound, CompletedSound,
  VictorySound, GameOverSound, NumSounds
}
 
enum  AnimationType {
  RUN_R, RUN_L, CLIMB_R, CLIMB_L,
  CLIMB_U, CLIMB_D, FALL_R, FALL_L,
  OPEN_BRICK, CLOSE_BRICK, nAnimationTypes
}
 
enum  Axis { X, Y, nAxes }
 
enum  DebugCodes {
  DO_STEP, BUG_FIX, LOGGING, S_POSNS,
  S_HERO, S_OBJ, ENEMY_0, ENEMY_1,
  ENEMY_2, ENEMY_3, ENEMY_4, ENEMY_5,
  ENEMY_6
}
 
enum  Direction {
  STAND, RIGHT, LEFT, UP,
  DOWN, nDirections, DIG_RIGHT = nDirections, DIG_LEFT,
  NO_DIRECTION, UP_LEFT, DOWN_LEFT, UP_RIGHT,
  DOWN_RIGHT, EndDirection
}
 
enum  EditAction {
  CREATE_LEVEL, EDIT_ANY, SAVE_EDITS, MOVE_LEVEL,
  DELETE_LEVEL, CREATE_GAME, EDIT_GAME
}
 
enum  GameAction {
  NEW, NEXT_LEVEL, LOAD, SAVE_GAME,
  PAUSE, HIGH_SCORE, KILL_HERO, HINT,
  DEMO, SOLVE, INSTANT_REPLAY, REPLAY_LAST,
  REPLAY_ANY
}
 
enum  HeroStatus { NORMAL, WON_LEVEL, DEAD, UNEXPECTED_END }
 
enum  KBAction {
  KB_UP, KB_DOWN, KB_LEFT, KB_RIGHT,
  KB_DIGLEFT, KB_DIGRIGHT, KB_STOP
}
 
enum  Owner { SYSTEM, USER }
 
enum  SelectAction {
  SL_START, SL_ANY, SL_CREATE, SL_UPDATE,
  SL_SAVE, SL_MOVE, SL_DELETE, SL_CR_GAME,
  SL_UPD_GAME, SL_REPLAY, SL_SOLVE, SL_NONE
}
 
enum  Setting {
  PLAY_SOUNDS, STARTUP_DEMO, MOUSE, KEYBOARD,
  LAPTOP, CLICK_KEY, HOLD_KEY, NORMAL_SPEED,
  BEGINNER_SPEED, CHAMPION_SPEED, INC_SPEED, DEC_SPEED,
  PLAY_STEPS
}
 

Variables

const AnimationType aType [nDirections]
 
const char BACKDROP = '0'
 
const char BAR = 'T'
 
const char BRICK = 'M'
 
const char CONCRETE = 'X'
 
const int ConcreteWall = 1
 
const DirectionFlag dFlag [nDirections]
 
const char EDIT_HINT = '1'
 
const char EDIT_TEST = '2'
 
const char ENEMY = 'E'
 
const AccessFlag ENTERABLE = 0x20
 
const char FBRICK = 'F'
 
const int FIELDHEIGHT = 20
 
const int FIELDWIDTH = 28
 
const char FLASHING = 'b'
 
const char FREE = ' '
 
const int gameCycle = 4
 
const int graphicsCycle = 8
 
const char HENEMY = 'a'
 
const char HERO = 'R'
 
const char HLADDER = 'Z'
 
const char HOLE = 'O'
 
const char KGoldrunnerRules = 'K'
 
const char LADDER = 'H'
 
const int movement [EndDirection][nAxes]
 
const char NUGGET = 'N'
 
const char ScavengerRules = 'S'
 
const int STEP = 4
 
const int TickTime = 20
 
const char TraditionalRules = 'T'
 
const char USEDHOLE = 'U'
 

Macro Definition Documentation

#define ACTION_CODE   0xa0

Definition at line 148 of file kgrglobals.h.

#define DIRECTION_CODE   0x80

Definition at line 145 of file kgrglobals.h.

#define END_CODE   0xff

Definition at line 150 of file kgrglobals.h.

#define KEY_OPT_CODE   0x9c

Definition at line 147 of file kgrglobals.h.

#define MODE_CODE   0x90

Definition at line 146 of file kgrglobals.h.

#define SPEED_CODE   0xe0

Definition at line 149 of file kgrglobals.h.

Typedef Documentation

typedef char AccessFlag

Definition at line 171 of file kgrglobals.h.

typedef char DirectionFlag

Definition at line 170 of file kgrglobals.h.

typedef char Flags

Definition at line 172 of file kgrglobals.h.

Enumeration Type Documentation

anonymous enum
Enumerator
GoldSound 
StepSound 
ClimbSound 
FallSound 
DigSound 
LadderSound 
DeathSound 
CompletedSound 
VictorySound 
GameOverSound 
NumSounds 

Definition at line 70 of file kgrglobals.h.

enum AnimationType
Enumerator
RUN_R 
RUN_L 
CLIMB_R 
CLIMB_L 
CLIMB_U 
CLIMB_D 
FALL_R 
FALL_L 
OPEN_BRICK 
CLOSE_BRICK 
nAnimationTypes 

Definition at line 203 of file kgrglobals.h.

enum Axis
Enumerator
X 
Y 
nAxes 

Definition at line 187 of file kgrglobals.h.

enum DebugCodes
Enumerator
DO_STEP 
BUG_FIX 
LOGGING 
S_POSNS 
S_HERO 
S_OBJ 
ENEMY_0 
ENEMY_1 
ENEMY_2 
ENEMY_3 
ENEMY_4 
ENEMY_5 
ENEMY_6 

Definition at line 213 of file kgrglobals.h.

enum Direction
Enumerator
STAND 
RIGHT 
LEFT 
UP 
DOWN 
nDirections 
DIG_RIGHT 
DIG_LEFT 
NO_DIRECTION 
UP_LEFT 
DOWN_LEFT 
UP_RIGHT 
DOWN_RIGHT 
EndDirection 

Definition at line 174 of file kgrglobals.h.

enum EditAction
Enumerator
CREATE_LEVEL 
EDIT_ANY 
SAVE_EDITS 
MOVE_LEVEL 
DELETE_LEVEL 
CREATE_GAME 
EDIT_GAME 

Definition at line 156 of file kgrglobals.h.

enum GameAction
Enumerator
NEW 
NEXT_LEVEL 
LOAD 
SAVE_GAME 
PAUSE 
HIGH_SCORE 
KILL_HERO 
HINT 
DEMO 
SOLVE 
INSTANT_REPLAY 
REPLAY_LAST 
REPLAY_ANY 

Definition at line 152 of file kgrglobals.h.

enum HeroStatus
Enumerator
NORMAL 
WON_LEVEL 
DEAD 
UNEXPECTED_END 

Definition at line 219 of file kgrglobals.h.

enum KBAction
Enumerator
KB_UP 
KB_DOWN 
KB_LEFT 
KB_RIGHT 
KB_DIGLEFT 
KB_DIGRIGHT 
KB_STOP 

Definition at line 56 of file kgrglobals.h.

enum Owner
Enumerator
SYSTEM 
USER 

Definition at line 26 of file kgrglobals.h.

enum SelectAction
Enumerator
SL_START 
SL_ANY 
SL_CREATE 
SL_UPDATE 
SL_SAVE 
SL_MOVE 
SL_DELETE 
SL_CR_GAME 
SL_UPD_GAME 
SL_REPLAY 
SL_SOLVE 
SL_NONE 

Definition at line 60 of file kgrglobals.h.

enum Setting
Enumerator
PLAY_SOUNDS 
STARTUP_DEMO 
MOUSE 
KEYBOARD 
LAPTOP 
CLICK_KEY 
HOLD_KEY 
NORMAL_SPEED 
BEGINNER_SPEED 
CHAMPION_SPEED 
INC_SPEED 
DEC_SPEED 
PLAY_STEPS 

Definition at line 159 of file kgrglobals.h.

Variable Documentation

const AnimationType aType[nDirections]
Initial value:
= {
FALL_L, RUN_R, RUN_L, CLIMB_U, CLIMB_D}
FALL_L
Definition: kgrglobals.h:207
RUN_L
Definition: kgrglobals.h:204
CLIMB_U
Definition: kgrglobals.h:206
RUN_R
Definition: kgrglobals.h:204
CLIMB_D
Definition: kgrglobals.h:206

Definition at line 210 of file kgrglobals.h.

const char BACKDROP = '0'

Definition at line 43 of file kgrglobals.h.

const char BAR = 'T'

Definition at line 39 of file kgrglobals.h.

const char BRICK = 'M'

Definition at line 33 of file kgrglobals.h.

const char CONCRETE = 'X'

Definition at line 32 of file kgrglobals.h.

const int ConcreteWall = 1

Definition at line 168 of file kgrglobals.h.

const DirectionFlag dFlag[nDirections]
Initial value:
= {
0x10,
0x1,
0x2,
0x4,
0x8}

Definition at line 178 of file kgrglobals.h.

const char EDIT_HINT = '1'

Definition at line 45 of file kgrglobals.h.

const char EDIT_TEST = '2'

Definition at line 46 of file kgrglobals.h.

const char ENEMY = 'E'

Definition at line 29 of file kgrglobals.h.

const AccessFlag ENTERABLE = 0x20

Definition at line 185 of file kgrglobals.h.

const char FBRICK = 'F'

Definition at line 34 of file kgrglobals.h.

const int FIELDHEIGHT = 20

Definition at line 49 of file kgrglobals.h.

const int FIELDWIDTH = 28

Definition at line 48 of file kgrglobals.h.

const char FLASHING = 'b'

Definition at line 38 of file kgrglobals.h.

const char FREE = ' '

Definition at line 28 of file kgrglobals.h.

const int gameCycle = 4

Definition at line 52 of file kgrglobals.h.

const int graphicsCycle = 8

Definition at line 53 of file kgrglobals.h.

const char HENEMY = 'a'

Definition at line 30 of file kgrglobals.h.

const char HERO = 'R'

Definition at line 31 of file kgrglobals.h.

const char HLADDER = 'Z'

Definition at line 35 of file kgrglobals.h.

const char HOLE = 'O'

Definition at line 40 of file kgrglobals.h.

const char KGoldrunnerRules = 'K'

Definition at line 66 of file kgrglobals.h.

const char LADDER = 'H'

Definition at line 36 of file kgrglobals.h.

const int movement[EndDirection][nAxes]
Initial value:
= {
{ 0, 0},
{+1, 0},
{-1, 0},
{ 0, -1},
{ 0, +1},
{ 0, 0},
{ 0, 0},
{ 0, 0},
{-1, -1},
{-1, +1},
{+1, -1},
{+1, +1}}

Definition at line 189 of file kgrglobals.h.

const char NUGGET = 'N'

Definition at line 37 of file kgrglobals.h.

const char ScavengerRules = 'S'

Definition at line 67 of file kgrglobals.h.

const int STEP = 4

Definition at line 51 of file kgrglobals.h.

const int TickTime = 20

Definition at line 217 of file kgrglobals.h.

const char TraditionalRules = 'T'

Codes for the rules of the selected game and level.

Definition at line 65 of file kgrglobals.h.

const char USEDHOLE = 'U'

Definition at line 41 of file kgrglobals.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgoldrunner

Skip menu "kgoldrunner"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal