1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#ifndef _HISCORE_H_
#define _HISCORE_H_
#include <SDL/SDL.h>
#include <math.h>
#include "font.h"
#include "sprite.h"
#include "player.h"
enum _hclist_show_states {
HCLISTS_INIT,
HCLISTS_FADEIN,
HCLISTS_WAIT,
HCLISTS_FADEOUT,
HCLISTS_QUIT
};
enum _hclist_edit_states {
HCLISTE_INIT,
HCLISTE_ENTRY,
HCLISTE_QUIT
};
typedef struct {
char name[4];
int score;
} HSC_LIST;
typedef struct {
double xg;
double yg;
int dir;
double ph;
double phspeed;
double amp;
double ampspeed;
int arrived;
} HSC_DATA;
typedef struct {
SDL_Surface *l;
double s;
char ascii;
int xpos,ypos;
} LETTER;
void hsc_init();
void hsc_show_init();
void hsc_show_work();
void hsc_show_move();
void hsc_entry_init();
void hsc_entry_work();
void hsc_entry_show();
#endif
|