-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
74 lines (60 loc) · 1.21 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// Created by marosm on 3/14/19.
//
#ifndef TETRIS_MAIN_H
#define TETRIS_MAIN_H
///Standard libraries
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <math.h>
#include <time.h>
#include <locale.h>
#if defined(_WIN32) || defined(WIN32)
#include <windows.h>
#include <conio.h>
#elif defined(__linux__)
#include <sys/ioctl.h>
#include <sys/select.h>
#include <termios.h>
//#include <stropts.h>
#include "linuxSpecific.h"
#endif
///Project files
#include "pcg_basic.h"
#include "helper.h"
#include "eventHandler.h"
#include "draw.h"
#include "stonks.h"
#include "graph.h"
#include "draw_otazky.h"
extern struct app
{
int consoleHeight;
int consoleWidth;
int cyclesPerFrame;
int targetFPS;
int state;
} app;
extern struct player
{
int freeCash;
int netWorth;
int stock[5];
} player;
extern struct stocks
{
} stocks;
extern struct cursor
{
int x;
int y;
} cursor;
extern int editMode;
extern int enteredValue;
extern struct state* stonksState;
extern struct Otazka otazka[10];
extern int question;
#endif //TETRIS_MAIN_H