annotate Time.h @ 306:e33f5a1cdc46

Food status
author Nomad
date Tue, 19 Feb 2013 22:06:49 +0200
parents 9c0607679772
children b27dd658ea77
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 61 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct Timer
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 static Timer *Create() {return new Timer;}
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 Timer():
Ritor1
parents:
diff changeset
11 bReady(false), bPaused(false)
Ritor1
parents:
diff changeset
12 {
Ritor1
parents:
diff changeset
13 bTackGameTime = 0;
Ritor1
parents:
diff changeset
14 uStartTime = 0;
Ritor1
parents:
diff changeset
15 uStopTime = 0;
Ritor1
parents:
diff changeset
16 uGameTimeStart = 0;
Ritor1
parents:
diff changeset
17 field_18 = 0;
Ritor1
parents:
diff changeset
18 uTimeElapsed = 0;
Ritor1
parents:
diff changeset
19 dt_in_some_format = 0;
Ritor1
parents:
diff changeset
20 uTotalGameTimeElapsed = 0;
Ritor1
parents:
diff changeset
21 }
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23 void Initialize();
Ritor1
parents:
diff changeset
24 unsigned __int64 Time();
Ritor1
parents:
diff changeset
25 int Update();
Ritor1
parents:
diff changeset
26 void Pause();
Ritor1
parents:
diff changeset
27 void Resume();
Ritor1
parents:
diff changeset
28 void TrackGameTime();
Ritor1
parents:
diff changeset
29 void StopGameTime();
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 unsigned int bReady;
Ritor1
parents:
diff changeset
32 unsigned int bPaused;
Ritor1
parents:
diff changeset
33 int bTackGameTime;
Ritor1
parents:
diff changeset
34 unsigned int uStartTime;
Ritor1
parents:
diff changeset
35 unsigned int uStopTime;
Ritor1
parents:
diff changeset
36 int uGameTimeStart;
Ritor1
parents:
diff changeset
37 int field_18;
Ritor1
parents:
diff changeset
38 unsigned int uTimeElapsed;
Ritor1
parents:
diff changeset
39 int dt_in_some_format;
Ritor1
parents:
diff changeset
40 unsigned int uTotalGameTimeElapsed;
Ritor1
parents:
diff changeset
41 };
Ritor1
parents:
diff changeset
42 #pragma pack(pop)
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46 extern Timer *pMiscTimer;
Ritor1
parents:
diff changeset
47 extern Timer *pEventTimer;