-
Notifications
You must be signed in to change notification settings - Fork 15
/
globals.h
51 lines (40 loc) · 1.1 KB
/
globals.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
#ifndef GLOBALS_H
#define GLOBALS_H
#define _GNU_SOURCE
#include <stdio.h>
#include <allegro.h>
#include "resource.h"
// system_of_measurements
#define METRIC 0
#define IMPERIAL 1
// Display mode flags
#define FULL_SCREEN_MODE 0
#define WINDOWED_MODE 1
#define FULLSCREEN_MODE_SUPPORTED 2
#define WINDOWED_MODE_SUPPORTED 4
#define WINDOWED_MODE_SET 8
// Password for Datafiles (Tr. Code Definitions and Resources)
#define PASSWORD NULL
// Colors in the main palette
#define C_TRANSP -1
#define C_BLACK 0
#define C_WHITE 1
#define C_RED 255
#define C_BLUE 254
#define C_GREEN 99
#define C_DARK_YELLOW 54
#define C_PURPLE 9
#define C_DARK_GRAY 126
#define C_GRAY 50
#define C_LIGHT_GRAY 55
// Options
extern int system_of_measurements;
extern int display_mode;
extern int log_comms;
// File names
extern char *options_file_name;
extern char *code_defs_file_name;
void write_log(const char *log_string);
void write_comm_log(const char *marker, const char *data);
extern DATAFILE *datafile;
#endif