ScummVM API documentation
dragonflg.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_DRAGONFLG_H
22
#define DRAGONS_DRAGONFLG_H
23
24
#include "common/stream.h"
25
#include "common/system.h"
26
27
namespace
Dragons
{
28
29
class
BigfileArchive;
30
31
class
Properties
{
32
public
:
33
Properties
(uint count);
34
~
Properties
();
35
void
init(uint count, byte *properties);
36
void
clear();
37
bool
get
(uint32 propertyId);
38
void
set
(uint32 propertyId,
bool
value);
39
void
save(uint numberToWrite,
Common::WriteStream
*out);
40
void
print(
char
*prefix);
41
42
private
:
43
uint _count;
44
byte *_properties;
45
uint32 getSize();
46
void
getProperyPos(uint32 propertyId, uint &index, byte &mask);
47
};
48
49
class
DragonFLG
{
50
private
:
51
byte *_data;
52
uint32 _dataSize;
53
Properties
*_properties;
54
55
public
:
56
virtual
~
DragonFLG
();
57
58
DragonFLG
(
BigfileArchive
*bigfileArchive);
59
bool
get
(uint32 propertyId);
60
void
set
(uint32 propertyId,
bool
value);
61
62
void
saveState(
Common::WriteStream
*out);
63
void
loadState(
Common::ReadStream
*in);
64
};
65
66
}
// End of namespace Dragons
67
68
#endif //DRAGONS_DRAGONFLG_H
Dragons::DragonFLG
Definition:
dragonflg.h:49
Dragons::BigfileArchive
Definition:
bigfile.h:42
Common::WriteStream
Definition:
stream.h:77
Dragons::Properties
Definition:
dragonflg.h:31
Dragons
Definition:
actor.h:26
Common::ReadStream
Definition:
stream.h:385
engines
dragons
dragonflg.h
Generated on Fri Nov 22 2024 09:15:18 for ScummVM API documentation by
1.8.13