File: hiscore.h

package info (click to toggle)
ketm 0.0.6-24
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 10,336 kB
  • ctags: 1,301
  • sloc: ansic: 7,302; sh: 3,540; makefile: 135
file content (57 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (7)
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