-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.h
51 lines (42 loc) · 898 Bytes
/
data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef DATA_H
#define DATA_H
#include <QByteArray>
#include <QImage>
#include <QSharedPointer>
/**
* Collection of routines used to access/decode original resources
*/
namespace FlashbackData
{
/* level topology:
BNQ
CT adjacent rooms, collision
LEV
MAP bitmap, parette table
MBK
PAL palettes
RP
*/
/* level objects:
ANI
OBJ
PGE objects
TBN
*/
class Level
{
public:
static QSharedPointer<Level> load(int level);
~Level();
int initialRoom() const;
const QByteArray &adjacentRooms() const;
QImage roomBitmap(int room) const;
private:
Level(int level);
class CT *m_CT; // adjacent rooms, collision
class MAP *m_MAP; // bitmap, parette table
class PAL *m_PAL; // palettes
class PGE *m_PGE; // objects
};
}
#endif // DATA_H