File: struct.h

package info (click to toggle)
xgalaga 2.0.34-41
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 1,222
  • sloc: ansic: 15,819; sh: 2,634; perl: 816; makefile: 155
file content (50 lines) | stat: -rw-r--r-- 704 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
#ifndef STRUCT_H
#define STRUCT_H

#include "Wlib.h"

struct torp {
    struct torp *next, *prev;
    int alive, frame;
    int x, y;
    int xspeed, yspeed;
};

struct star {
    int x, y;
    int speed;
    W_Color color;
};

struct alien {
    int x, y;
    int dir;
    int steer;
    int alive;
    int dying;
    int path, path_pos;
    int escorting;
    int entering, enterdelay;
    W_Image *shape;
};

struct explosion {
    struct explosion *next, *prev;
    int x, y;
    int frame;
    W_Image *shape;
};

struct score_bubble {
    struct score_bubble *next, *prev;
    int x, y;
    int count;
    W_Image *shape;
};

struct js_state {
    signed short but;
    signed long dir;
};

#endif