-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscopes.inc
107 lines (93 loc) · 1.37 KB
/
scopes.inc
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.enum GameState
start
playing
end
win
.endenum
.enum InputResult
none
move
attack
new_dlevel
escape
win
.endenum
.enum Messages
none
hit
hurt
kill
heal
scroll
quaff
levelup
.endenum
.struct Message
type .byte 1 ; one of Messages enum
amount .byte 1 ; amount for hit/hurt/heal messages
.endstruct
.enum Mobs
player
goblin
orc
ogre
dragon
.endenum
.struct Coord
xcoord .byte
ycoord .byte
.endstruct
.enum Direction
up = 1
right = 2
down = 3
left = 4
.endenum
.struct Mob
coords .tag Coord
hp .byte
type .byte ; one of Mobs enum
direction .byte ; direction mob is facing
.endstruct
.struct PlayerStats
level .byte
exp .byte
maxhp .byte
power .byte
.endstruct
.enum ItemTypes
none
potion
scroll
.endenum
.enum Potions
heal
fullheal
poison
confusion
power
.endenum
.enum Scrolls
teleport
mapping
fire
fear
amnesia
.endenum
.struct Item
appearance .word ; pointer to appearance string
item .byte ; one of above item enums
type .byte
.endstruct
.struct ItemDrop
coords .tag Coord
item .tag Item
.endstruct
.enum Features
none
chest
.endenum
.struct Feature
coords .tag Coord
type .byte
.endstruct