3 //FIXME: change to functions
4 public const FLDW = 100;
5 public const FLDH = 100;
11 public const TILE_EMPTY = 0;
12 public const TILE_WALL = 1;
13 public const TILE_DOORC = 2; // closed door
14 public const TILE_DOORO = 3; // opened door
15 public const TILE_STEP = 4;
16 public const TILE_WATER = 5;
17 public const TILE_ACID1 = 6;
18 public const TILE_ACID2 = 7;
19 public const TILE_MBLOCK = 8; // just blocks monsters
20 public const TILE_LIFTU = 9;
21 public const TILE_LIFTD = 10;
22 public const TILE_ACTTRAP = 255;
25 // flags for vanilla switches
26 public const SWITCH_PLAYER_PRESS = 0b0000_0001;
27 public const SWITCH_MONSTER_PRESS = 0b0000_0010;
28 public const SWITCH_PLAYER_PROXIMITY = 0b0000_0100;
29 public const SWITCH_MONSTER_PROXIMITY = 0b0000_1000;
30 public const SWITCH_KEY_RED = 0b0001_0000;
31 public const SWITCH_KEY_GREEN = 0b0010_0000;
32 public const SWITCH_KEY_BLUE = 0b0100_0000;
36 //public extern void mapSetSize (uint width, uint height);
37 //public extern void mapSetName (string name);
38 //public extern void mapSetSky (string skyspr);
39 //public extern void mapSetMusic (string musicname);
42 public const LAYER_FRONT = 0;
43 public const LAYER_BACK = 1;
45 //public extern void mapSetRect (string texture, uint layer, int x0, int y0, int width, int height);
46 //public void mapSetTile (string texture, uint layer, int x, int y) { mapSetRect(texture, layer, x, y, 1, 1); }
49 //public extern void mapSetTypeRect (uint type, int x0, int y0, int width, int height);
50 //public void mapSetTypeTile (uint type, int x, int y) { mapSetTypeRect(type, x, y, 1, 1); }
54 // this puts "permanent" lights
55 // `radius` is [2..512]
57 //public Actor mapPutLightColorless (int x, int y, uint radius) { return mapPutLightRGB(x, y, radius, 0, 0, 0); }
58 //public extern Actor mapPutLightRGB (int x, int y, uint radius, uint r, uint g, uint b);
61 public extern int mapGetTypeTile (int x, int y) pure;
62 public extern int mapGetTile (uint layer, int x, int y) pure;
64 public extern void mapSetTypeTile (int x, int y, int tid);
65 public extern void mapSetTile (uint layer, int x, int y, int tid);
67 // [0..3] (0: not a water)
68 public extern int mapGetWaterTexture (int fg);
70 public extern int getMapViewHeight () pure;
71 public extern void setMapViewPos (int x, int y);