2019-11-24 14:28:04 +01:00
|
|
|
#ifndef LEVEL_H
|
2020-02-16 20:43:35 +01:00
|
|
|
#define LEVEL_H
|
2019-11-24 14:28:04 +01:00
|
|
|
|
2020-02-01 16:39:34 +01:00
|
|
|
// Utilitaire de décompression de level
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
typedef struct
|
2020-02-01 16:39:34 +01:00
|
|
|
{
|
2020-02-16 20:43:35 +01:00
|
|
|
uint8_t width;
|
2020-02-02 16:05:56 +01:00
|
|
|
uint8_t height;
|
2020-02-01 16:39:34 +01:00
|
|
|
uint8_t data[]; // rough data
|
|
|
|
} packed_level_t;
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
//void unpackLevel(packed_level_t const * const packed_level_t);
|
2020-02-01 16:39:34 +01:00
|
|
|
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void setLevel(int w, int l); // Configures the level
|
2020-02-01 16:39:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void getLevelID(int w, int l, char * str); // Retruns level ID into a char [4]
|
2020-02-01 16:39:34 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void mallocError();
|
2019-11-24 14:28:04 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
#endif
|