rename LICENSE to COPYING and add a more complete LICENSE file.
[rofl0r-openDOW.git] / map.h
blobece734656c7a5f90b1ef03345b900259c5194684
1 #ifndef MAP_H
2 #define MAP_H
4 #include <stdint.h>
5 #include "palpic.h"
6 #include "vec2f.h"
7 #include "enemy.h"
9 enum map_scrolldir {
10 MS_UP,
11 MS_LEFT,
12 MS_RIGHT,
15 struct map_fglayer {
16 uint8_t fg[12][12];
19 struct map_bglayer {
20 uint8_t bg[6][3];
23 struct map_screen {
24 struct map_bglayer bg;
25 struct map_fglayer fg;
28 enum map_type {
29 MT_FOREST = 0,
30 MT_URBAN,
31 MT_DESERT,
32 MT_MAX,
35 typedef uint8_t mapscreen_index;
36 #define MAPSCREEN_BLOCKED ((mapscreen_index) -1)
38 struct map {
39 enum map_type maptype;
40 enum enemy_type enemy_type;
41 const char mission_text[5][34];
42 vec2f worldmap_coords;
43 mapscreen_index screen_map[28][7];
44 uint8_t client_face;
45 uint8_t mini_pic;
46 uint8_t bonuslayer_count;
47 uint8_t rewardk; /* reward in 1000$ */
48 uint8_t boss_id;
49 prgb enemy_palette[8];
52 #endif