Skip to content
Snippets Groups Projects
map.h 561 B
Newer Older
Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed
/*
// Created by Tiny on 2/16/2021.
*/

/*!
 * \file map.h
 * \brief Map Header File
 * \authors Tin
 * \version 1
 * \date 16/02/2021
 *
 * Map structure and functions definiton.
 *
 */

Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed
#ifndef INSAGAME_MAP_H
#define INSAGAME_MAP_H

/*!
 * \struct MAP
 * \brief Map structure
 */

Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed
typedef struct {
	char *path; /**< Path of image bmp of map */
	int width; /**< Map's width */
	int height; /**< Map's height */
	int **functional; /**< 2D functional matrix */
Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed
} MAP;

int initmap(MAP *map,char *path);
int **maptomatrix(MAP *map);
Le-Bao-Tin.Ha's avatar
Le-Bao-Tin.Ha committed




#endif /*INSAGAME_MAP_H*/