#ifndef MAP_H #define MAP_H #ifdef FXCG50 #define T_HEIGHT 16 #define T_WIDTH 16 #else #define T_HEIGHT 8 #define T_WIDTH 8 #endif #ifdef FXCG50 #define PXSIZE 2 #else #define PXSIZE 1 #endif #define BACKGROUND 0 #define FOREGROUND 1 #define MAP_OUTSIDE -2 /* Returned by get_tile_at_pos if the point is outside of * the map. */ #include "mapstruct.h" #include "player.h" /* Draws the map map on the entire screen to be viewed by the player player. */ void render_map(Player *player, Map *map_level); /* Draws the map layer on the entire screen to be viewed by the player player. */ void render_map_by_layer(Player *player, Map *map_level, int layer); /* Get the tile at (x, y) of the map map. If the tile is located outside of the * screen, MAP_OUTSIDE is returned. */ short int get_tile(Map *map_level, int x, int y, int l); /* Returns what is in the walkable layer at (x, y). */ short int get_walkable(Map *map_level, int x, int y); #endif