19 lines
421 B
C
19 lines
421 B
C
#ifndef MAP_H
|
|
#define MAP_H
|
|
#include "tile.h"
|
|
|
|
struct Map {
|
|
int width;
|
|
int height;
|
|
int depth;
|
|
struct Tile ****tiles;
|
|
};
|
|
|
|
struct Map *newMap(int width, int height, int depth);
|
|
int nullMap(struct Map *map);
|
|
void freeMap(struct Map *map, int flags);
|
|
|
|
int moveTile(struct Map *map, struct Tile *tile, float x, float y, float z);
|
|
int addTileToMap(struct Map *map, struct Tile *tile, float x, float y, float z);
|
|
#endif
|