-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgui.h
50 lines (33 loc) · 1.12 KB
/
gui.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
#pragma once
#define _XOPEN_SOURCE_EXTENDED
#define _GNU_SOURCE
#include <ncurses.h>
#include <spawn.h>
#include <math.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <unistd.h>
#include <wchar.h>
#include <stdlib.h>
#include <cstring>
#include <vector>
#include <iostream>
#include <time.h>
#include <cstdio>
#include "room.h"
#include "map.h"
using namespace std;
#define gotoxy(x,y) printf("\033[%d;%dH",(y),(x))
void printT(int x, int y, string s, int F_R, int F_G, int F_B, int B_R, int B_G, int B_B);
float surroundingTilesFour(Map& map, int y, int x, int against);
float surroundingTilesAdj(Map& map, int y, int x, int against);
void rgb(Map& map, int y, int x, int a, int b, int c, int d, int e, int f);
string chooseWall(Map& map, enum category c, int y, int x, int rando);
//Give tiles certain colors and properties such as blocking or not
void genColors(Map& map, bool);
void updateTileColor(Map& map, bool, int y, int x);
//Just used for make walls appear
void genWalls(Map& map);
float calcLighting(Map& m, int posx, int posy, int x, int y, float brightness);
void addDoor(Map& map);
void genRiver(Map& map);