ScummVM API documentation
attr.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 MADS_CORE_ATTR_H
23#define MADS_CORE_ATTR_H
24
25#include "mads/core/buffer.h"
26#include "mads/core/room.h"
27#include "mads/core/tile.h"
28
29namespace MADS {
30
31#define ATTR_WALK_MASK 0x80
32#define ATTR_SPECIAL_MASK 0x70
33#define ATTR_DEPTH_MASK 0x0f
34
35#define ATTR_PACKED_ATTR_MASK 0x03
36#define ATTR_PACKED_WALK_MASK 0x02
37#define ATTR_PACKED_DEPTH_MASK 0x01
38
39extern int attr_walk(Buffer *attr, int x, int y);
40
41extern int rex_attr_depth(Buffer *depth, int x, int y);
42extern int attr_depth(TileMapHeader *depth_map, int x, int y);
43
44extern int attr_special(Buffer *attr, int x, int y);
45extern int rex_attr_special(Buffer *special, int x, int y);
46
47extern int attr_load(char *base_name, int item_type, int variant,
48 Buffer *target, int size_x, int size_y);
49
50extern int attr_load_error;
51
52extern void init_attr();
53
54} // namespace MADS
55
56#endif
Definition: display_client.h:113