My Project
constants.h File Reference

Contains every application constants. More...

Go to the source code of this file.

Macros

#define GAME_SPEED   12
 
#define WINDOW_WIDTH   480
 
#define WINDOW_HEIGHT   480
 
#define GRID_START_X   110
 
#define GRID_START_Y   0
 
#define CELL_SIZE   74
 
#define NUMBER_CELL   5
 
#define FONT_SIZE   26
 
#define TEXT_START_Y   397
 
#define TEXT_H   73
 
#define P1   5
 
#define P2   10
 

Enumerations

enum  { NONE, PLAYER1, PLAYER2 }
 
enum  {
  GROUND, FIRST, SECOND, THIRD,
  DOME
}
 
enum  { GRASS, ROAD, CASTLE }
 

Detailed Description

Contains every application constants.

Author
Maxime LEFEBVRE
Date
26/03/2018
Version
1.0

Definition in file constants.h.

Macro Definition Documentation

◆ CELL_SIZE

#define CELL_SIZE   74

Definition at line 17 of file constants.h.

◆ FONT_SIZE

#define FONT_SIZE   26

Definition at line 19 of file constants.h.

◆ GAME_SPEED

#define GAME_SPEED   12

Definition at line 12 of file constants.h.

◆ GRID_START_X

#define GRID_START_X   110

Definition at line 15 of file constants.h.

◆ GRID_START_Y

#define GRID_START_Y   0

Definition at line 16 of file constants.h.

◆ NUMBER_CELL

#define NUMBER_CELL   5

Definition at line 18 of file constants.h.

◆ P1

#define P1   5

Definition at line 22 of file constants.h.

◆ P2

#define P2   10

Definition at line 23 of file constants.h.

◆ TEXT_H

#define TEXT_H   73

Definition at line 21 of file constants.h.

◆ TEXT_START_Y

#define TEXT_START_Y   397

Definition at line 20 of file constants.h.

◆ WINDOW_HEIGHT

#define WINDOW_HEIGHT   480

Definition at line 14 of file constants.h.

◆ WINDOW_WIDTH

#define WINDOW_WIDTH   480

Definition at line 13 of file constants.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NONE 
PLAYER1 
PLAYER2 

Definition at line 28 of file constants.h.

◆ anonymous enum

anonymous enum
Enumerator
GROUND 
FIRST 
SECOND 
THIRD 
DOME 

Definition at line 33 of file constants.h.

◆ anonymous enum

anonymous enum
Enumerator
GRASS 
ROAD 
CASTLE 

Definition at line 36 of file constants.h.