ScummVM API documentation
verbs.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_VERBS_H
23 #define SCUMM_VERBS_H
24 
25 #include "common/scummsys.h"
26 #include "common/rect.h"
27 
28 namespace Scumm {
29 
34 enum ClickArea {
35  kVerbClickArea = 1,
36  kSceneClickArea = 2,
37  kInventoryClickArea = 3,
38  kKeyClickArea = 4,
39  kSentenceClickArea = 5
40 };
41 
42 enum {
43  kTextVerbType = 0,
44  kImageVerbType = 1
45 };
46 
47 struct VerbSlot {
48  Common::Rect curRect;
49  Common::Rect oldRect;
50  uint16 verbid;
51  uint8 color, hicolor, dimcolor, bkcolor, type;
52  uint8 charset_nr, curmode;
53  uint16 saveid;
54  uint8 key;
55  bool center;
56  uint8 prep;
57  uint16 imgindex;
58  int16 origLeft;
59 };
60 
61 enum VerbsV0 {
62  kVerbNone = 0,
63  kVerbOpen = 1,
64  kVerbClose = 2,
65  kVerbGive = 3,
66  kVerbTurnOn = 4,
67  kVerbTurnOff = 5,
68  kVerbFix = 6,
69  kVerbNewKid = 7,
70  kVerbUnlock = 8,
71  kVerbPush = 9,
72  kVerbPull = 10,
73  kVerbUse = 11,
74  kVerbRead = 12,
75  kVerbWalkTo = 13,
76  kVerbPickUp = 14,
77  kVerbWhatIs = 15
78 };
79 
80 enum VerbPrepsV0 {
81  kVerbPrepNone = 0,
82  kVerbPrepIn = 1,
83  kVerbPrepWith = 2,
84  kVerbPrepOn = 3,
85  kVerbPrepTo = 4,
86  kVerbPrepObject = 0xFF // prep depends on object (USE)
87 };
88 
89 } // End of namespace Scumm
90 
91 #endif
Definition: rect.h:144
ClickArea
Definition: verbs.h:34
Definition: actor.h:30
Definition: verbs.h:47