-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsession.h
48 lines (40 loc) · 911 Bytes
/
session.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
37
38
39
40
41
42
43
44
45
46
47
48
/************************************************************************************
* session.h
*
* descp : Defines current game session
*
* auth : javery
*
* path : C:\Program Files\Microsoft Visual Studio\MyProjects\PrimaryCubes3D\session.h
*
* iDate : 09/17/06
* version:
************************************************************************************/
#ifndef __SESSION_H__
#define __SESSION_H__
typedef enum
{
LVL_EASY,
LVL_NORM,
LVL_HARD
}GameLevel_t;
typedef struct Session_t
{
GameLevel_t currentGameLevel;
int currentStage;
int linkSize,maxLink;
// grid size ,grid padding , space in-between cells
int xDimen,yDimen,xPadding;
float yPadding,deltaX,deltaY;
// time
int totalTime,
timeToNextLevel;
// score
int currentScore,
highScore;
char sCurrentScore[8],
sHighScore[8];
// booleans
c_boolean paused,sessionOver;
}*pSession_t;
#endif