/* data.h --- data management
 *
 * This file is gift-ware.  This file is given to you freely
 * as a gift.  You may use, modify, redistribute, and generally hack
 * it about in any way you like, and you do not have to give anyone
 * anything in return.
 *
 * I do not accept any responsibility for any effects, adverse or
 * otherwise, that this code may have on just about anything that
 * you can think of.  Use it at your own risk.
 *
 * Copyright (C) 1999  Michael Bukin
 */

#ifndef __bma_data_h
#define __bma_data_h

#define EATER_FRAMES	4
#define MAX_PRIZE	1

/* Sprites.  */
extern BITMAP *eater_left_sprite[EATER_FRAMES];
extern BITMAP *eater_up_sprite[EATER_FRAMES];
extern BITMAP *eater_right_sprite[EATER_FRAMES];
extern BITMAP *eater_down_sprite[EATER_FRAMES];
extern BITMAP *ghost_left_sprite;
extern BITMAP *ghost_up_sprite;
extern BITMAP *ghost_right_sprite;
extern BITMAP *ghost_down_sprite;
extern BITMAP *bones_left_sprite;
extern BITMAP *bones_up_sprite;
extern BITMAP *bones_right_sprite;
extern BITMAP *bones_down_sprite;
extern BITMAP *wall_sprite;
extern BITMAP *wall_left_sprite;
extern BITMAP *wall_up_sprite;
extern BITMAP *wall_right_sprite;
extern BITMAP *wall_down_sprite;
extern BITMAP *wall_top_left_sprite;
extern BITMAP *wall_top_right_sprite;
extern BITMAP *wall_bottom_left_sprite;
extern BITMAP *wall_bottom_right_sprite;
extern BITMAP *bonus_sprite;
extern BITMAP *coin_sprite;
extern BITMAP *door_sprite;
extern BITMAP *prize_sprite[MAX_PRIZE];

#ifdef __cplusplus
extern "C" {
#endif

  /* Draw sprite with different color.  */
  void draw_colored_sprite (BITMAP *dst, BITMAP *src, int dx, int dy, int color);

  /* Make all data.  */
  void game_data_init (char *progname);

  /* Free all data.  */
  void game_data_exit (void);

#ifdef __cplusplus
}
#endif

#endif /* !__bma_data_h */

/*
 * data.h ends here
 */
