ScummVM API documentation
dragonini.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 #ifndef DRAGONS_DRAGONINI_H
22 #define DRAGONS_DRAGONINI_H
23 
24 #include "common/system.h"
25 #include "dragons/bigfile.h"
26 
27 namespace Dragons {
28 
29 class Actor;
30 
31 enum IniFlags {
32  INI_FLAG_1 = 0x1,
33  INI_FLAG_2 = 0x2,
34  INI_FLAG_4 = 0x4,
35  INI_FLAG_8 = 0x8,
36  INI_FLAG_10 = 0x10,
37  INI_FLAG_20 = 0x20,
38  INI_FLAG_40 = 0x40,
39  INI_FLAG_80 = 0x80
40 };
41 
42 
43 struct DragonINI {
44  uint16 id;
45  int16 iptIndex_maybe;
46  int16 imgId;
47  int16 actorResourceId;
48  uint16 sequenceId;
49  int16 inventorySequenceId;
50  Actor *actor;
51  uint16 sceneId;
52  int16 direction;
53  int16 counter;
54  int16 objectState;
55  uint16 objectState2;
56  int16 x;
57  int16 y;
58  uint16 flags;
59  int16 baseXOffset;
60  int16 baseYOffset;
61  int16 direction2;
62 };
63 
65 private:
66  BigfileArchive *_bigfileArchive;
67  DragonINI *_dragonINI;
68  uint16 _count;
69  DragonINI *_flickerINI;
70 
71 public:
72  DragonINIResource(BigfileArchive *bigfileArchive);
73  void reset();
74  uint16 totalRecords() { return _count; }
75  DragonINI *getRecord(uint16 index);
76  void setFlickerRecord(DragonINI *dragonINI);
77  DragonINI *getFlickerRecord() {
78  return _flickerINI;
79  }
80  bool isFlicker(uint16 index);
81  bool isFlicker(DragonINI *ini) {
82  return isFlicker(ini->id);
83  }
84 
85 };
86 
87 } // End of namespace Dragons
88 
89 #endif //DRAGONS_DRAGONINI_H
Definition: dragonini.h:64
Definition: bigfile.h:42
Definition: actor.h:85
Definition: actor.h:26
Definition: dragonini.h:43