Scid  4.6.5
Macros | Typedefs | Functions | Variables
game.cpp File Reference
#include "common.h"
#include "game.h"
#include "position.h"
#include "pgnparse.h"
#include "naglatex.h"
#include "nagtext.h"
#include "bytebuf.h"
#include "textbuf.h"
#include "stored.h"
#include "dstring.h"
#include <cstring>
Include dependency graph for game.cpp:

Go to the source code of this file.

Macros

#define MAX_MOVES   5000
 
#define MAX_VARS_PER_MOVE   10
 
#define ENCODE_NAG   11
 
#define ENCODE_COMMENT   12
 
#define ENCODE_START_MARKER   13
 
#define ENCODE_END_MARKER   14
 
#define ENCODE_END_GAME   15
 
#define ENCODE_FIRST   11
 
#define ENCODE_LAST   15
 

Typedefs

typedef GameGamePtr
 

Functions

void transPieces (char *s)
 
char transPiecesChar (char c)
 
uint strGetRatingType (const char *name)
 
void game_printNag (byte nag, char *str, bool asSymbol, gameFormatT format)
 
byte game_parseNag (const char *str)
 
bool isSpecialMoveCode (byte val)
 

Variables

int language = 0
 
const char * langPieces []
 
const char * ratingTypeNames [17]
 
const char * commonTags [255-MAX_TAG_LEN]
 

Macro Definition Documentation

#define ENCODE_COMMENT   12

Definition at line 3306 of file game.cpp.

#define ENCODE_END_GAME   15

Definition at line 3309 of file game.cpp.

#define ENCODE_END_MARKER   14

Definition at line 3308 of file game.cpp.

#define ENCODE_FIRST   11

Definition at line 3311 of file game.cpp.

#define ENCODE_LAST   15

Definition at line 3312 of file game.cpp.

#define ENCODE_NAG   11

Definition at line 3305 of file game.cpp.

#define ENCODE_START_MARKER   13

Definition at line 3307 of file game.cpp.

#define MAX_MOVES   5000

Definition at line 448 of file game.cpp.

#define MAX_VARS_PER_MOVE   10

Definition at line 449 of file game.cpp.

Typedef Documentation

typedef Game* GamePtr

Definition at line 134 of file game.cpp.

Function Documentation

byte game_parseNag ( const char *  str)

Definition at line 186 of file game.cpp.

void game_printNag ( byte  nag,
char *  str,
bool  asSymbol,
gameFormatT  format 
)

Definition at line 143 of file game.cpp.

bool isSpecialMoveCode ( byte  val)
inline

Definition at line 3322 of file game.cpp.

uint strGetRatingType ( const char *  name)

Definition at line 125 of file game.cpp.

void transPieces ( char *  s)

Definition at line 42 of file game.cpp.

char transPiecesChar ( char  c)

Definition at line 60 of file game.cpp.

Variable Documentation

const char* commonTags[255-MAX_TAG_LEN]
Initial value:
=
{
"WhiteCountry", "BlackCountry",
"Annotator",
"PlyCount",
"EventDate",
"Opening", "Variation",
"Setup", "Source", "SetUp",
NULL, NULL, NULL, NULL,
NULL
}

Definition at line 3504 of file game.cpp.

const char* langPieces[]
Initial value:
= { "",
"PPKRQDRTBFNC", "PPKRQDRTBANC", "PBKKQDRTBLNS",
"PPKRQDRTBANC", "PpKKQDRTBLNP", "PPKKQDRVBSNJ",
"PGKKQVRBBFNH", "PBKKQDRTBLNS", "PBKKQDRTBLNS", "PPKRQDRTBANC", "PSKKQDRTBLNR", "" }

Definition at line 34 of file game.cpp.

int language = 0

Definition at line 29 of file game.cpp.

const char* ratingTypeNames[17]
Initial value:
= {
"Elo", "Rating", "Rapid", "ICCF", "USCF", "DWZ", "ECF",
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL
}

Definition at line 116 of file game.cpp.