mirror of
https://github.com/Valeh2012/PersonalVotingMachine
synced 2024-11-30 04:40:58 +02:00
43 lines
719 B
C
43 lines
719 B
C
|
|
|
|
|
|
#ifndef _MAP_H
|
|
#define _MAP_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
struct _item_onmap_struct
|
|
{
|
|
uint8_t x;
|
|
uint8_t y;
|
|
uint8_t template_index;
|
|
uint8_t option;
|
|
};
|
|
typedef struct _item_onmap_struct item_onmap_t;
|
|
|
|
struct _map_struct
|
|
{
|
|
unsigned char *data;
|
|
item_onmap_t *onmap_list;
|
|
uint16_t init_proc;
|
|
uint8_t onmap_cnt;
|
|
uint8_t width;
|
|
uint8_t height;
|
|
};
|
|
typedef struct _map_struct map_t;
|
|
|
|
struct _item_template_struct
|
|
{
|
|
uint16_t init_proc;
|
|
uint16_t hit_proc;
|
|
uint16_t step_proc;
|
|
uint8_t fg_tile; /* for tga output and inital tile */
|
|
};
|
|
typedef struct _item_template_struct item_template_t;
|
|
|
|
extern unsigned char map_code[] ;
|
|
extern item_template_t item_template_list[];
|
|
extern map_t map_list[];
|
|
|
|
#endif |