#ifndef OBJ_BOMB_H_
#define OBJ_BOMB_H_

#include "main.h"

#define SOBJ_BOMB_RANGE 2
#define SOBJ_BOMB_DESTROY_PERCENT 10

/* private structure for object OBJID_BOMB */
struct sobj_bomb {
  struct VG_Rect rect;        /* rectangle-position */
  struct VG_Rect rect_expl;   /* rectangle-position of exploding */
  VG_BOOL exploding;          /* whether exploding */
  VG_BOOL playerhit;          /* when exploding, whether OBJID_PLAYER was already hit */
  int to_north, to_east, to_south, to_west;  /* explosion-range: 0 to SOBJ_BOMB_RANGE */

  /* images and sprites */
  struct {
    struct VG_Sprite *bomb;    /* bomb sprite */
    struct VG_Sprite *expl;    /* exploding sprite */
  } images;
};

#endif /* OBJ_BOMB_H_ */
