v1.1.7 moved board info to board.h
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "../globals.h"
|
||||
|
||||
extern boardInfo brdInfo;
|
||||
#include "board.h"
|
||||
|
||||
void setBoardBorders(char board[][brdInfo.x]) {
|
||||
for (int i = 0; i < brdInfo.y; i++) {
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
#ifndef BOARD_H_
|
||||
#define BOARD_H_
|
||||
|
||||
#include "../globals.h"
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
} boardInfo;
|
||||
|
||||
typedef struct {
|
||||
int xs;
|
||||
int xe;
|
||||
int ys;
|
||||
int ye;
|
||||
} playableBoardInfo;
|
||||
|
||||
extern boardInfo brdInfo;
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
#ifndef GLOBALS_H_
|
||||
#define GLOBALS_H_
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
} boardInfo;
|
||||
|
||||
typedef struct {
|
||||
int xs;
|
||||
int xe;
|
||||
int ys;
|
||||
int ye;
|
||||
} playableBoardInfo;
|
||||
|
||||
#endif // GLOBALS_H_
|
||||
@@ -10,9 +10,8 @@
|
||||
#include "./utils/utils.h"
|
||||
#include "./snake/snake.h"
|
||||
#include "./board/board.h"
|
||||
#include "globals.h"
|
||||
|
||||
const char* VERSION = "1.1.6";
|
||||
const char* VERSION = "1.1.7";
|
||||
|
||||
const char SNAKE_VIS = '#';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef SNAKE_H_
|
||||
#define SNAKE_H_
|
||||
|
||||
#include "../globals.h"
|
||||
#include "../board/board.h"
|
||||
|
||||
extern boardInfo brdInfo;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "../globals.h"
|
||||
#include "../board/board.h"
|
||||
|
||||
extern boardInfo brdInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user