ScummVM API documentation
object_extra.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 CHEWY_OBJECT_EXTRA_H
23 #define CHEWY_OBJECT_EXTRA_H
24 
25 #include "common/serializer.h"
26 #include "common/stream.h"
27 
28 namespace Chewy {
29 
30 #define OBJZU_AUF 0
31 #define OBJZU_ZU 1
32 #define OBJZU_AN 2
33 #define OBJZU_AUS 3
34 #define OBJZU_LOCKED 5
35 #define OBJZU_GEOEFFNET 6
36 #define OBJZU_NASS 7
37 #define OBJZU_TROCKEN 8
38 #define OBJZU_OELIG 9
39 #define OBJZU_HEISS 10
40 #define OBJZU_KALT 11
41 #define OBJZU_LEER 12
42 #define OBJZU_VOLL 13
43 #define OBJZU_UNDICHT 14
44 #define OBJZU_KLEMMT 15
45 #define SIB_GET_INV 16
46 
47 struct RoomMovObject {
48  int16 RoomNr = 0;
49 
50  int16 X = 0;
51  int16 Y = 0;
52  uint8 XOff = 0;
53  uint8 YOff = 0;
54  int16 TxtNr = 0;
55  int16 NeuObj = 0;
56  int16 ActionObj = 0;
57  uint8 ZustandAk = 0;
58  uint8 ZustandOff = 0;
59  uint8 ZustandFlipFlop = 0;
60  uint8 AutoMov = 0;
61  uint8 AniFlag = 0;
62  uint8 Del = 0;
63  uint8 Attribut = 0;
64  uint8 HeldHide = 0;
65  int16 ZEbene = 0;
66 
67  void synchronize(Common::Serializer &s);
68  bool load(Common::SeekableReadStream *src);
69  static constexpr int SIZE() { return 24; }
70 };
71 
72 struct IibFileHeader {
73  char Id[4];
74  char Tafname[14];
75  uint32 Size;
76 
77  bool load(Common::SeekableReadStream *src);
78  IibFileHeader();
79 };
80 
82  int16 RoomNr = 0;
83  int16 X = 0;
84  int16 Y = 0;
85  uint8 XOff = 0;
86  uint8 YOff = 0;
87  int16 InvNr = 0;
88  int16 TxtNr = 0;
89  uint8 HideSib = 0;
90  uint8 Dummy = 0;
91  uint8 ZustandAk = 0;
92  uint8 ZustandOff = 0;
93  uint8 ZustandFlipFlop = 0;
94  uint8 AutoMov = 0;
95  uint8 AniFlag = 0;
96  uint8 HeldHide = 0;
97  int16 StaticAk = 0;
98  int16 StaticOff = 0;
99 
100  void synchronize(Common::Serializer &s);
101  bool load(Common::SeekableReadStream *src);
102 };
103 
105  char _id[4];
106  int16 _nr;
107 
108  bool load(Common::SeekableReadStream *src);
109 
110  SibFileHeader();
111 };
112 
113 struct RoomExit {
114  int16 RoomNr = 0;
115  int16 X = 0;
116  int16 Y = 0;
117  uint8 XOff = 0;
118  uint8 YOff = 0;
119  int16 Exit = 0;
120  uint8 ExitMov = 0;
121  uint8 AutoMov = 0;
122  uint8 Attribut = 0;
123  uint8 dummy = 0;
124 
125  void synchronize(Common::Serializer &s);
126  bool load(Common::SeekableReadStream *src);
127 };
128 
130  char _id[4];
131  int16 _nr;
132 
133  bool load(Common::SeekableReadStream *src);
134  EibFileHeader();
135 };
136 
137 } // namespace Chewy
138 
139 #endif
Definition: object_extra.h:81
Definition: stream.h:745
Definition: serializer.h:79
Definition: object_extra.h:47
Definition: object_extra.h:129
Definition: object_extra.h:72
Definition: object_extra.h:113
Definition: object_extra.h:104
Definition: types.h:511
Definition: ani_dat.h:25