-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.py
75 lines (61 loc) · 807 Bytes
/
local.py
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
75
import math
#room shapes
S_ROUND = 1
S_SQUARE = 2
# trap triggers
TR_TRIP = 1
TR_AREA = 2
TR_CHEST = 3
TR_DOOR = 4
enum RESET{R_AUTO,
R_MANUAL,
R_NON,
enum FROM{F_PATH,
F_ROOM,
F_CHEST,
F_COUNT};
enum SCROLL{SC_TRAPS,
SC_COUNT};
enum TREASURETYPE{T_GOLD,
T_ART,
T_OBJ,
T_WEOPON,
T_MAGICAL};
struct Point
{
float x;
float y;
};
struct Path
{
float x;
float y;
float angle;
int steps;
float turn;
bool met;
list <Point> path;
int wait; // the offsett required before settinga path to met.
};
struct Trap
{
int x;
int y;
TRIGGER trigger;
RESET reset;
int findDc;
int disableDc;
int dammage;
int die;
int ID;
int roomNum;
};
struct Treasure
{
int x;
int y;
TREASURETYPE type;
bool trapped;
};
struct Encounter
{};