ScummVM API documentation
context.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 MEDIASTATION_CONTEXT_H
23#define MEDIASTATION_CONTEXT_H
24
25#include "common/str.h"
26#include "common/path.h"
27#include "common/hashmap.h"
28#include "graphics/palette.h"
29
30#include "mediastation/datafile.h"
31#include "mediastation/actor.h"
32
33namespace MediaStation {
34
35enum StreamType {
36 kDocumentDefStream = 0x01,
37 kControlCommandsStream = 0x0D,
38};
39
40enum ContextSectionType {
41 kContextEndOfSection = 0x00,
42 kContextControlCommands = 0x0d,
43 kContextCreateData = 0x0e,
44 kContextDestroyData = 0x0f,
45 kContextLoadCompleteSection = 0x10,
46 kContextCreateActorData = 0x11,
47 kContextDestroyActorData = 0x12,
48 kContextActorLoadComplete = 0x13,
49 kContextCreateVariableData = 0x14,
50 kContextFunctionSection = 0x31,
51 kContextNameData = 0xbb9
52};
53
54class Context {
55public:
56 ~Context();
57
58 Common::String _name;
60
61 // This is not an internal file ID, but the number of the file
62 // as it appears in the filename. For instance, the context in
63 // "100.cxt" would have file number 100.
64 uint _id = 0;
65};
66
67} // End of namespace MediaStation
68
69#endif
Definition: hashmap.h:85
Definition: str.h:59
Definition: context.h:54