-
Notifications
You must be signed in to change notification settings - Fork 0
/
background.h
65 lines (38 loc) · 1.31 KB
/
background.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
#include "background.cpp"
#pragma once
using namespace sf;
// returns 1 if straight
// returns 2 if left
// returns 3 if right
// returns 4 if back
int getProbability(float probabilityStraight, float probabilityLeft, float probabilityRight, float proprobabilityBack);
int getProbability(float probability);
void setBeach(int x, int y, int type, float speed);
void setRiverLRLine(int startX1, int startY1, int width);
void setRiverLRBridge(int x, int y, int width, int &riverLength);
void generateRiverLR();
void setRiverUDLine(int startX1, int startY1, int width);
void setRiverUDBridge(int x, int y, int width, int &riverLength);
void generateRiverUD();
void generateBeach();
void generateGrassBeach();
void generateGrassBeachCoast();
void generateCoast();
void generateBeachFlower();
void generateGrassFlower();
bool isEmptyBackground(int type, Vector2i position, Vector2i size);
void generateHouse();
void setCrossAbility();
void generateBox();
void setGrass();
void createTree1();
void createTree2();
void createTree3();
void createTree4();
void createTree5();
void generateTree(int type, std::vector<Vector2f> &tree);
void setBackground(std::vector<Opaque> &houses);
//very slow
//works if the map is less than 800*800
//do not start in thread if map is more than 600*600
void setMinimap(MinimapThread *minimap);