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
29
namespace
Mohawk
{
30
31
struct
LBKey
{
32
byte code;
33
byte modifiers;
34
byte char_;
35
byte repeats;
36
};
37
38
struct
LBScriptEntry
{
39
LBScriptEntry
();
40
~
LBScriptEntry
();
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;
54
Common::Array<Common::String>
targets;
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
76
Common::Array<Common::String>
conditions;
77
Common::Array<LBScriptEntry *>
subentries;
78
};
79
80
}
// End of namespace Mohawk
81
82
#endif
Common::String
Definition:
str.h:59
Common::Array< Common::String >
Mohawk::LBKey
Definition:
livingbooks_itemscript.h:31
Mohawk::LBScriptEntry
Definition:
livingbooks_itemscript.h:38
Mohawk
Definition:
bitmap.h:32
engines
mohawk
livingbooks_itemscript.h
Generated on Sat Jul 25 2026 09:14:39 for ScummVM API documentation by
1.8.13