forked from Wavestation/oq-zik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.sch
executable file
·106 lines (81 loc) · 2.51 KB
/
common.sch
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
/* ScummC
* Copyright (C) 2007 Alban Bedel
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
// The action verbs
verb Give, PickUp, Use;
verb Open, LookAt, Smell;
verb TalkTo,Move;
verb WalkTo, WalkToXY;
verb UsedWith;
verb InventoryObject;
bit verbsOn,cursorOn,cursorLoaded;
int sntcVerb,sntcObjA,sntcObjADesc,sntcObjB,sntcObjBDesc;
int* invObj;
// The sentence line
verb SntcLine;
// The inventory slots
verb invSlot0 @ 100, invSlot1 @ 101, invSlot2 @ 102, invSlot3 @ 103,
invSlot4 @ 104, invSlot5 @ 105, invSlot6 @ 106, invSlot7 @ 107;
// The inventory arrows
verb invUp, invDown;
int invOffset;
#define INVENTORY_COL 2
#define INVENTORY_LINE 2
#define INVENTORY_SLOTS (INVENTORY_COL*INVENTORY_LINE)
// The verb colors
#define VERB_COLOR 104
#define VERB_HI_COLOR 10
#define VERB_DIM_COLOR 93
#define VERB_BACK_COLOR 60
// Object callbacks
verb Icon,Preposition,SetBoxes;
// Object class
class Openable,Pickable, Person;
// Allow the objects to insert a word (like "to" or "with") between the
// verb and object in the sentence.
char *sntcPrepo;
// List of the objects used to handle action on actors
int *actorObject;
// define actors
actor ensignZob;
#define ZOB_COLOR 231
#define ZOB_DIM_COLOR 232
actor commanderZif;
#define ZIF_COLOR 243
actor carol;
#define CAROL_COLOR 249
// animated item actors
actor bluecupActor;
actor cubeActor;
// The room we start in
room Road;
// The secret room
room SecretRoom;
room ResRoom {
// our standard charset
chset chtest;
// dialog charset
chset dialogCharset;
script inputHandler(int area,int cmd, int btn);
script keyboardHandler(int key);
script inventoryHandler(int obj);
//script showVerbs(int show);
script showCursor();
script hideCursor();
script mouseWatch();
script defaultAction(int vrb, int objA, int objB);
script quit();
}