-
Notifications
You must be signed in to change notification settings - Fork 1
/
mytypes.h
36 lines (27 loc) · 815 Bytes
/
mytypes.h
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
#ifndef __MYTYPES__H_
#define __MYTYPES__H_
typedef enum tagGameErrors
{
GE_NO_ERROR = 0,
GE_CLASS_NOT_REGISTERED = 22,
GE_WINDOW_NOT_CREATED = 23,
GE_FULLSCREEN_NOT_AVAILABLE = 24
}GameErrors;
typedef enum tagTrueFalse
{
MY_FALSE =0,
MY_TRUE =1
}TrueFalse;
typedef struct tagBat
{
int posy; /* y co-ord of the Bat */
float cury;
float speedy; /* speed of the bat up/down (+/- speed) */
}Bat; /* Both Players and the Enemis will have the same struct */
typedef struct tagBall
{
int posx,posy; /* x and y co-ords of the Bat */
float curx, cury;
float speedx, speedy; /* speed of the ball leftright(+/- speed) and up/down (+/- speed) */
}Ball;
#endif