/* man.h */

/* Controls movement and display of man */

#ifndef __man_h
#define __man_h

/* His status */
typedef enum {
  status_PLAYING,
  status_ESC,
  status_COMPLETED, /* All bombs blown up and got clear */
  status_TIMEUP,    /* Out of time */
  status_BLOWNUP,
  status_ERROR
} man_status;

/* Initialise his position in map */
void man_init_pos(int x,int y);

/* Draw him */
void man_draw(int vga);

/* Controls his movement at the highest level (call once every game loop) */
man_status man_move(void);

/* His position on map */
extern int man_mapx,man_mapy;

#endif
