Remove static label from joymnu functions
[kraptor.git] / include / premio.h
blob122eac0437b45fd3ab3364c48299b0677333785d
1 /*-------------------------------------------------------
2 premio.h
3 --------------------------------------------------------
4 Copyright (c) 2002, Kronoman
5 En memoria de mi querido padre
6 Enero - 2003
7 -------------------------------------------------------- */
9 #ifndef PREMIO_H
10 #define PREMIO_H
12 #include <allegro.h>
14 /* cantidad maxima de clases de premios */
15 #define MAX_PREMIO_CLASS 20
17 /* contenedor de las clases de premios */
18 typedef struct PREMIO_CLASS {
19 int premiar;
20 int cantidad;
21 int vida;
22 BITMAP *sprite;
23 SAMPLE *sonido;
24 } PREMIO_CLASS;
26 /* estructura de datos que contiene cada premio individual; */
27 typedef struct PREMIO {
28 fixed x, y, r; /* posicion y rotacion (efecto cool)*/
29 fixed dx, dy, dr; /* direccion */
30 int vida; /* vida que le queda */
31 int clase; /* indice de la clase de premio */
32 struct PREMIO *next;
33 } PREMIO;
35 /* globales exportadas */
36 extern PREMIO_CLASS premio_class[MAX_PREMIO_CLASS];
38 /* prototipos */
39 PREMIO *agrega_premio(int premio, fixed x, fixed y);
40 void mover_premio(int x, int y, int w, int h);
41 void liberar_premio();
42 void dibujar_premio(BITMAP *bmp, int x, int y);
43 #endif