mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2025-04-19 09:27:16 +02:00
28 lines
814 B
C
28 lines
814 B
C
#ifndef MAP_H
|
|
#define MAP_H
|
|
|
|
|
|
#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
|