Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
mapcell.h
Go to the documentation of this file.
1
7
#ifndef PLIB_MAPCELL_H
8
#define PLIB_MAPCELL_H
9
10
namespace
Pol
11
{
12
namespace
Plib
13
{
14
struct
FLAG
15
{
16
enum
17
{
18
NONE
= 0x0000,
19
MOVELAND
= 0x0001,
// 's'
20
MOVESEA
= 0x0002,
// 'n'
21
BLOCKSIGHT
= 0x0004,
// 'L'
22
OVERFLIGHT
= 0x0008,
// 'f'
23
ALLOWDROPON
= 0x0010,
// 'd'
24
GRADUAL
= 0x0020,
// 'g'
25
BLOCKING
= 0x0040,
// 'B'
26
// MORE_SOLIDS:
27
// for a map entry, indicates there are entries in the solids file.
28
// for a solid, indicates there is another solid following
29
MORE_SOLIDS
= 0x0080,
// '+'
30
31
// the flags above go into base.dat, solids.dat etc, so have to be the lower 8 bits.
32
33
// the flags below are read from tiles.cfg, and don't necessaryily need to stay in here.
34
STACKABLE
= 0x0100,
35
MOVABLE
= 0x0200,
36
// 0x0400
37
EQUIPPABLE
= 0x0800,
38
DESC_PREPEND_A
= 0x1000,
39
DESC_PREPEND_AN
= 0x2000,
40
41
WALKBLOCK
=
MOVELAND
|
MOVESEA
|
BLOCKING
|
BLOCKSIGHT
|
ALLOWDROPON
,
42
MOVE_FLAGS
=
MOVELAND
|
MOVESEA
|
BLOCKING
|
GRADUAL
,
43
DROP_FLAGS
=
BLOCKING
|
ALLOWDROPON
,
44
ALL
= 0xFFFFFFFFLu
45
};
46
};
47
48
struct
MAPCELL
49
{
50
signed
char
z
;
51
unsigned
char
flags
;
52
};
53
static_assert(
sizeof
(
MAPCELL
) == 2,
"size missmatch"
);
54
}
55
}
56
#endif
Pol::Plib::MAPCELL
Definition:
mapcell.h:48
Pol::Plib::FLAG::GRADUAL
Definition:
mapcell.h:24
Pol::Plib::FLAG::MORE_SOLIDS
Definition:
mapcell.h:29
Pol::Plib::FLAG
Definition:
mapcell.h:14
Pol::Plib::FLAG::BLOCKSIGHT
Definition:
mapcell.h:21
Pol::Plib::FLAG::MOVE_FLAGS
Definition:
mapcell.h:42
Pol::Plib::FLAG::NONE
Definition:
mapcell.h:18
Pol::Plib::MAPCELL::z
signed char z
Definition:
mapcell.h:50
Pol::Plib::FLAG::MOVABLE
Definition:
mapcell.h:35
Pol::Plib::FLAG::DESC_PREPEND_AN
Definition:
mapcell.h:39
Pol::Plib::FLAG::STACKABLE
Definition:
mapcell.h:34
Pol::Plib::FLAG::BLOCKING
Definition:
mapcell.h:25
Pol::Plib::FLAG::OVERFLIGHT
Definition:
mapcell.h:22
Pol::Plib::FLAG::EQUIPPABLE
Definition:
mapcell.h:37
Pol::Plib::MAPCELL::flags
unsigned char flags
Definition:
mapcell.h:51
Pol::Plib::FLAG::DESC_PREPEND_A
Definition:
mapcell.h:38
Pol::Plib::FLAG::MOVELAND
Definition:
mapcell.h:19
Pol::Plib::FLAG::ALL
Definition:
mapcell.h:44
Pol
Definition:
berror.cpp:12
Pol::Plib::FLAG::ALLOWDROPON
Definition:
mapcell.h:23
Pol::Plib::FLAG::WALKBLOCK
Definition:
mapcell.h:41
Pol::Plib::FLAG::MOVESEA
Definition:
mapcell.h:20
Pol::Plib::FLAG::DROP_FLAGS
Definition:
mapcell.h:43
plib
mapcell.h
Generated on Wed Oct 10 2018 02:41:52 for Pol by
1.8.11