Pol  Revision:3cfda13
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 
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
signed char z
Definition: mapcell.h:50
unsigned char flags
Definition: mapcell.h:51
Definition: berror.cpp:12