32 lines
343 B
C
32 lines
343 B
C
#ifndef BONUS_H
|
|
#define BONUS_H
|
|
|
|
#include <box.h>
|
|
|
|
// Bonus
|
|
// Come from boxes
|
|
|
|
typedef enum
|
|
{
|
|
BONUS_NONE=0,
|
|
BONUS_CHAMPI,
|
|
BONUS_FLEUR,
|
|
BONUS_1UP,
|
|
BONUS_STAR
|
|
} bonus_id; // TODO add fragment
|
|
|
|
typedef struct
|
|
{
|
|
int type;
|
|
box_t b;
|
|
int p1;
|
|
} bonus_t;
|
|
|
|
void bonusSet(bonus_id t, int x, int y);
|
|
|
|
void bonusDraw();
|
|
|
|
void bonusMove();
|
|
|
|
#endif
|