board size change feature
This commit is contained in:
18
globals.h
18
globals.h
@@ -1,14 +1,16 @@
|
||||
#ifndef GLOBALS_H_
|
||||
#define GLOBALS_H_
|
||||
|
||||
// Total board size
|
||||
#define BRD_SIZE_X 30
|
||||
#define BRD_SIZE_Y 15
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
} boardInfo;
|
||||
|
||||
// Playable board coord range values
|
||||
#define PL_BRD_XS 1
|
||||
#define PL_BRD_XE BRD_SIZE_X - 2
|
||||
#define PL_BRD_YS 1
|
||||
#define PL_BRD_YE BRD_SIZE_Y - 2
|
||||
typedef struct {
|
||||
int xs;
|
||||
int xe;
|
||||
int ys;
|
||||
int ye;
|
||||
} playableBoardInfo;
|
||||
|
||||
#endif // GLOBALS_H_
|
||||
|
||||
Reference in New Issue
Block a user