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

kmahjongg

  • sources
  • kde-4.14
  • kdegames
  • kmahjongg
KmTypes.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
3 
4  Kmahjongg is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _KM_TYPES_
20 #define _KM_TYPES_
21 
22 //----------------------------------------------------------
23 // TYPEDEFS
24 //----------------------------------------------------------
25 typedef unsigned char UCHAR;
26 typedef unsigned char BYTE;
27 typedef unsigned short USHORT;
28 typedef unsigned long ULONG;
29 
30 
34 typedef struct pos {
35  pos() : e(0), y(0), x(0), f(0) { }
36  USHORT e;
37  USHORT y;
38  USHORT x;
39  USHORT f;
40 } POSITION;
41 
45 typedef struct dep {
46  int turn_dep[4];
47  int place_dep[4];
48  int lhs_dep[2];
49  int rhs_dep[2];
50  bool filled;
51  bool free;
52 } DEPENDENCY;
53 
57 enum TileViewAngle {
58  NW,
59  NE,
60  SE,
61  SW
62 };
63 
64 #define TILE_OFFSET 2
65 #define TILE_CHARACTER (0+TILE_OFFSET)
66 #define TILE_BAMBOO (9+TILE_OFFSET)
67 #define TILE_ROD (18+TILE_OFFSET)
68 #define TILE_SEASON (27+TILE_OFFSET)
69 #define TILE_WIND (31+TILE_OFFSET)
70 #define TILE_DRAGON (35+TILE_OFFSET)
71 #define TILE_FLOWER (38+TILE_OFFSET)
72 
73 #endif
dep::rhs_dep
int rhs_dep[2]
Right side dependencies, same level.
Definition: KmTypes.h:49
pos::e
USHORT e
Member Description.
Definition: KmTypes.h:36
dep::filled
bool filled
True if this tile has been placed.
Definition: KmTypes.h:50
NE
North East.
Definition: KmTypes.h:59
TileViewAngle
TileViewAngle
Tile angles for face composition.
Definition: KmTypes.h:57
pos::x
USHORT x
Member Description.
Definition: KmTypes.h:38
dep::place_dep
int place_dep[4]
Placing dependencies.
Definition: KmTypes.h:47
ULONG
unsigned long ULONG
Definition: KmTypes.h:28
dep::free
bool free
True if this tile can be removed?
Definition: KmTypes.h:51
dep::lhs_dep
int lhs_dep[2]
Left side dependencies, same level.
Definition: KmTypes.h:48
SW
South West.
Definition: KmTypes.h:61
dep::turn_dep
int turn_dep[4]
Turn dependencies.
Definition: KmTypes.h:46
pos::y
USHORT y
Member Description.
Definition: KmTypes.h:37
pos
struct pos POSITION
Definition: KmTypes.h:34
USHORT
unsigned short USHORT
Definition: KmTypes.h:27
pos::pos
pos()
Definition: KmTypes.h:35
UCHAR
unsigned char UCHAR
Definition: KmTypes.h:25
pos::f
USHORT f
Member Description.
Definition: KmTypes.h:39
NW
North West.
Definition: KmTypes.h:58
POSITION
struct pos POSITION
struct pos POSITION
DEPENDENCY
struct dep DEPENDENCY
struct dep DEPENDENCY
dep
struct dep DEPENDENCY
Definition: KmTypes.h:45
SE
South East.
Definition: KmTypes.h:60
BYTE
unsigned char BYTE
Definition: KmTypes.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmahjongg

Skip menu "kmahjongg"
  • 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