Back to index

gcompris  8.2.2
Defines | Typedefs
chess_makros.h File Reference
#include <glib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NONE   0
#define AB_ZUGL   512 /* Length of list generated moves */
#define AB_ZUG_S   256 /* Beginning of generated capture moves*/
#define WHITE   1 /* White to Move */
#define BLACK   129 /* Black to move */
#define SAN   0 /* Standard algebraic notation */
#define COORD   1 /* Coordinate notation */
#define GAME_NONE   0 /* No game */
#define GAME_PAUSED   1 /* Game is paused */
#define GAME_PROGRESS   2 /* Game is in progress */
#define GAME_ABORTED   3 /* Game was aborted */
#define GAME_WHITE   4 /* White won the game */
#define GAME_BLACK   5 /* Black won the game */
#define GAME_DRAW   6 /* Draw */
#define COMPUTER_BLACK   1
#define COMPUTER_WHITE   2
#define AUTOPLAY   3
#define ANALYSE   4
#define HUMANS   5
#define OL   9 /********************************************/
#define OM   10 /* */
#define OR   11 /* OL | OM | OR */
#define LI   -1 /* ----+------+---- */
#define RE   1 /* LI | FELD | RE */
#define UL   -11 /* ----+------+---- */
#define UM   -10 /* UL | UM | UR */
#define UR   -9 /********************************************/
#define WP   33 /* white pawn */
#define WN   34 /* white knight */
#define WB   35 /* white bishop */
#define WR   36 /* white rook */
#define WQ   37 /* white queen */
#define WK   38 /* white king */
#define BP   65 /* black pawn */
#define BN   66 /* black knight */
#define BB   67 /* black bishop */
#define BR   68 /* black rook */
#define BQ   69 /* black queen */
#define BK   70 /* black king */
#define EMPTY   0 /* empty */
#define BORDER   16 /* border (illegal) */
#define WPIECE(c)   ((c) & 32) /* white piece? */
#define BPIECE(c)   ((c) & 64) /* black piece? */
#define A1   21
#define B1   22
#define C1   23
#define D1   24
#define E1   25
#define F1   26
#define G1   27
#define H1   28
#define A2   31
#define B2   32
#define C2   33
#define D2   34
#define E2   35
#define F2   36
#define G2   37
#define H2   38
#define A3   41
#define B3   42
#define C3   43
#define D3   44
#define E3   45
#define F3   46
#define G3   47
#define H3   48
#define A4   51
#define B4   52
#define C4   53
#define D4   54
#define E4   55
#define F4   56
#define G4   57
#define H4   58
#define A5   61
#define B5   62
#define C5   63
#define D5   64
#define E5   65
#define F5   66
#define G5   67
#define H5   68
#define A6   71
#define B6   72
#define C6   73
#define D6   74
#define E6   75
#define F6   76
#define G6   77
#define H6   78
#define A7   81
#define B7   82
#define C7   83
#define D7   84
#define E7   85
#define F7   86
#define G7   87
#define H7   88
#define A8   91
#define B8   92
#define C8   93
#define D8   94
#define E8   95
#define F8   96
#define G8   97
#define H8   98

Typedefs

typedef gushort Square
typedef gchar Piece

Define Documentation

#define A1   21

Definition at line 108 of file chess_makros.h.

#define A2   31

Definition at line 116 of file chess_makros.h.

#define A3   41

Definition at line 124 of file chess_makros.h.

#define A4   51

Definition at line 132 of file chess_makros.h.

#define A5   61

Definition at line 140 of file chess_makros.h.

#define A6   71

Definition at line 148 of file chess_makros.h.

#define A7   81

Definition at line 156 of file chess_makros.h.

#define A8   91

Definition at line 164 of file chess_makros.h.

#define AB_ZUG_S   256 /* Beginning of generated capture moves*/

Definition at line 38 of file chess_makros.h.

#define AB_ZUGL   512 /* Length of list generated moves */

Definition at line 37 of file chess_makros.h.

#define ANALYSE   4

Definition at line 61 of file chess_makros.h.

#define AUTOPLAY   3

Definition at line 60 of file chess_makros.h.

#define B1   22

Definition at line 109 of file chess_makros.h.

#define B2   32

Definition at line 117 of file chess_makros.h.

#define B3   42

Definition at line 125 of file chess_makros.h.

#define B4   52

Definition at line 133 of file chess_makros.h.

#define B5   62

Definition at line 141 of file chess_makros.h.

#define B6   72

Definition at line 149 of file chess_makros.h.

#define B7   82

Definition at line 157 of file chess_makros.h.

#define B8   92

Definition at line 165 of file chess_makros.h.

#define BB   67 /* black bishop */

Definition at line 94 of file chess_makros.h.

#define BK   70 /* black king */

Definition at line 97 of file chess_makros.h.

#define BLACK   129 /* Black to move */

Definition at line 42 of file chess_makros.h.

#define BN   66 /* black knight */

Definition at line 93 of file chess_makros.h.

#define BORDER   16 /* border (illegal) */

Definition at line 99 of file chess_makros.h.

#define BP   65 /* black pawn */

Definition at line 92 of file chess_makros.h.

#define BPIECE (   c)    ((c) & 64) /* black piece? */

Definition at line 102 of file chess_makros.h.

#define BQ   69 /* black queen */

Definition at line 96 of file chess_makros.h.

#define BR   68 /* black rook */

Definition at line 95 of file chess_makros.h.

#define C1   23

Definition at line 110 of file chess_makros.h.

#define C2   33

Definition at line 118 of file chess_makros.h.

#define C3   43

Definition at line 126 of file chess_makros.h.

#define C4   53

Definition at line 134 of file chess_makros.h.

#define C5   63

Definition at line 142 of file chess_makros.h.

#define C6   73

Definition at line 150 of file chess_makros.h.

#define C7   83

Definition at line 158 of file chess_makros.h.

#define C8   93

Definition at line 166 of file chess_makros.h.

#define COMPUTER_BLACK   1

Definition at line 58 of file chess_makros.h.

#define COMPUTER_WHITE   2

Definition at line 59 of file chess_makros.h.

#define COORD   1 /* Coordinate notation */

Definition at line 46 of file chess_makros.h.

#define D1   24

Definition at line 111 of file chess_makros.h.

#define D2   34

Definition at line 119 of file chess_makros.h.

#define D3   44

Definition at line 127 of file chess_makros.h.

#define D4   54

Definition at line 135 of file chess_makros.h.

#define D5   64

Definition at line 143 of file chess_makros.h.

#define D6   74

Definition at line 151 of file chess_makros.h.

#define D7   84

Definition at line 159 of file chess_makros.h.

#define D8   94

Definition at line 167 of file chess_makros.h.

#define E1   25

Definition at line 112 of file chess_makros.h.

#define E2   35

Definition at line 120 of file chess_makros.h.

#define E3   45

Definition at line 128 of file chess_makros.h.

#define E4   55

Definition at line 136 of file chess_makros.h.

#define E5   65

Definition at line 144 of file chess_makros.h.

#define E6   75

Definition at line 152 of file chess_makros.h.

#define E7   85

Definition at line 160 of file chess_makros.h.

#define E8   95

Definition at line 168 of file chess_makros.h.

#define EMPTY   0 /* empty */

Definition at line 98 of file chess_makros.h.

#define F1   26

Definition at line 113 of file chess_makros.h.

#define F2   36

Definition at line 121 of file chess_makros.h.

#define F3   46

Definition at line 129 of file chess_makros.h.

#define F4   56

Definition at line 137 of file chess_makros.h.

#define F5   66

Definition at line 145 of file chess_makros.h.

#define F6   76

Definition at line 153 of file chess_makros.h.

#define F7   86

Definition at line 161 of file chess_makros.h.

#define F8   96

Definition at line 169 of file chess_makros.h.

#define G1   27

Definition at line 114 of file chess_makros.h.

#define G2   37

Definition at line 122 of file chess_makros.h.

#define G3   47

Definition at line 130 of file chess_makros.h.

#define G4   57

Definition at line 138 of file chess_makros.h.

#define G5   67

Definition at line 146 of file chess_makros.h.

#define G6   77

Definition at line 154 of file chess_makros.h.

#define G7   87

Definition at line 162 of file chess_makros.h.

#define G8   97

Definition at line 170 of file chess_makros.h.

#define GAME_ABORTED   3 /* Game was aborted */

Definition at line 52 of file chess_makros.h.

#define GAME_BLACK   5 /* Black won the game */

Definition at line 54 of file chess_makros.h.

#define GAME_DRAW   6 /* Draw */

Definition at line 55 of file chess_makros.h.

#define GAME_NONE   0 /* No game */

Definition at line 49 of file chess_makros.h.

#define GAME_PAUSED   1 /* Game is paused */

Definition at line 50 of file chess_makros.h.

#define GAME_PROGRESS   2 /* Game is in progress */

Definition at line 51 of file chess_makros.h.

#define GAME_WHITE   4 /* White won the game */

Definition at line 53 of file chess_makros.h.

#define H1   28

Definition at line 115 of file chess_makros.h.

#define H2   38

Definition at line 123 of file chess_makros.h.

#define H3   48

Definition at line 131 of file chess_makros.h.

#define H4   58

Definition at line 139 of file chess_makros.h.

#define H5   68

Definition at line 147 of file chess_makros.h.

#define H6   78

Definition at line 155 of file chess_makros.h.

#define H7   88

Definition at line 163 of file chess_makros.h.

#define H8   98

Definition at line 171 of file chess_makros.h.

#define HUMANS   5

Definition at line 62 of file chess_makros.h.

#define LI   -1 /* ----+------+---- */

Definition at line 67 of file chess_makros.h.

#define NONE   0

Definition at line 34 of file chess_makros.h.

#define OL   9 /********************************************/

Definition at line 64 of file chess_makros.h.

#define OM   10 /* */

Definition at line 65 of file chess_makros.h.

#define OR   11 /* OL | OM | OR */

Definition at line 66 of file chess_makros.h.

#define RE   1 /* LI | FELD | RE */

Definition at line 68 of file chess_makros.h.

#define SAN   0 /* Standard algebraic notation */

Definition at line 45 of file chess_makros.h.

#define UL   -11 /* ----+------+---- */

Definition at line 69 of file chess_makros.h.

#define UM   -10 /* UL | UM | UR */

Definition at line 70 of file chess_makros.h.

#define UR   -9 /********************************************/

Definition at line 71 of file chess_makros.h.

#define WB   35 /* white bishop */

Definition at line 88 of file chess_makros.h.

#define WHITE   1 /* White to Move */

Definition at line 41 of file chess_makros.h.

#define WK   38 /* white king */

Definition at line 91 of file chess_makros.h.

#define WN   34 /* white knight */

Definition at line 87 of file chess_makros.h.

#define WP   33 /* white pawn */

Definition at line 86 of file chess_makros.h.

#define WPIECE (   c)    ((c) & 32) /* white piece? */

Definition at line 101 of file chess_makros.h.

#define WQ   37 /* white queen */

Definition at line 90 of file chess_makros.h.

#define WR   36 /* white rook */

Definition at line 89 of file chess_makros.h.


Typedef Documentation

typedef gchar Piece

Definition at line 31 of file chess_makros.h.

typedef gushort Square

Definition at line 30 of file chess_makros.h.