ScummVM API documentation
livingbooks_itemscript.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 MOHAWK_LIVINGBOOKS_ITEMSCRIPT_H
23#define MOHAWK_LIVINGBOOKS_ITEMSCRIPT_H
24
25#include "common/scummsys.h"
26#include "common/array.h"
27#include "common/str.h"
28
29namespace Mohawk {
30
31struct LBKey {
32 byte code;
33 byte modifiers;
34 byte char_;
35 byte repeats;
36};
37
41
42 uint16 state;
43
44 uint16 type;
45 uint16 event;
46 uint16 opcode;
47 uint16 param;
48
49 uint16 argc;
50 uint16 *argvParam;
51 uint16 *argvTarget;
52
53 uint16 targetingType;
55
56 // kLBNotifyChangeMode
57 uint16 newUnknown;
58 uint16 newMode;
59 uint16 newPage;
60 uint16 newSubpage;
61 Common::String newCursor;
62
63 // kLBEventNotified
64 uint16 matchFrom;
65 uint16 matchNotify;
66
67 // kLBOpSendExpression
68 uint32 offset;
69 // kLBOpJumpUnlessExpression
70 uint16 target;
71
72 uint16 dataType;
73 uint16 dataLen;
74 byte *data;
75
78};
79
80} // End of namespace Mohawk
81
82#endif
Definition: str.h:59
Definition: bitmap.h:32
Definition: livingbooks_itemscript.h:31
Definition: livingbooks_itemscript.h:38