-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvmain.h
More file actions
48 lines (41 loc) · 1.02 KB
/
convmain.h
File metadata and controls
48 lines (41 loc) · 1.02 KB
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
#charset "us-ascii"
#include <adv3.h>
#include <en_us.h>
// define the '+' property
// (we need this only once per source file)
+ property location;
// For the Breakable object, the following enums are defined.
// When broken, send the object to nil.
enum breakDestroy;
// When broken, replace the object with the value in breakReplacement.
enum breakReplace;
// When broken, do nothing. This is for custom modifications.
enum breakRemain;
// Some debug code to track room counts.
#ifdef __DEBUG
PreinitObject
execute {
local roomCount = 0;
local cur = firstObj(Room);
while(cur != nil)
{
roomCount++;
cur = nextObj(cur, Room);
}
local thingCount = 0;
cur = firstObj(Thing);
while(cur != nil) {
thingCount++;
cur = nextObj(cur,Thing);
}
local objectCount = 0;
cur = firstObj();
while(cur != nil) {
objectCount++;
cur = nextObj(cur);
}
"<p>This game contains <<roomCount>> rooms, <<thingCount>> Things and <<objectCount>> general objects.<p> ";
}
execBeforeMe = [adv3LibPreinit]
;
#endif