annotate Time.h @ 962:0423c40d7e88

UpdateWindows and pWindow->Release
author Ritor1
date Tue, 07 May 2013 17:32:23 +0600
parents 1a47a988c0b8
children f93d17337113
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
810
f5156b8c61ad savegame refactoring
Gloval
parents: 783
diff changeset
4
f5156b8c61ad savegame refactoring
Gloval
parents: 783
diff changeset
5
0
Ritor1
parents:
diff changeset
6 /* 61 */
Ritor1
parents:
diff changeset
7 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
8 struct Timer
Ritor1
parents:
diff changeset
9 {
Ritor1
parents:
diff changeset
10 static Timer *Create() {return new Timer;}
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 Timer():
Ritor1
parents:
diff changeset
13 bReady(false), bPaused(false)
Ritor1
parents:
diff changeset
14 {
Ritor1
parents:
diff changeset
15 bTackGameTime = 0;
Ritor1
parents:
diff changeset
16 uStartTime = 0;
Ritor1
parents:
diff changeset
17 uStopTime = 0;
Ritor1
parents:
diff changeset
18 uGameTimeStart = 0;
Ritor1
parents:
diff changeset
19 field_18 = 0;
Ritor1
parents:
diff changeset
20 uTimeElapsed = 0;
Ritor1
parents:
diff changeset
21 dt_in_some_format = 0;
Ritor1
parents:
diff changeset
22 uTotalGameTimeElapsed = 0;
Ritor1
parents:
diff changeset
23 }
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 void Initialize();
Ritor1
parents:
diff changeset
26 unsigned __int64 Time();
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 0
diff changeset
27 void Update();
0
Ritor1
parents:
diff changeset
28 void Pause();
Ritor1
parents:
diff changeset
29 void Resume();
Ritor1
parents:
diff changeset
30 void TrackGameTime();
Ritor1
parents:
diff changeset
31 void StopGameTime();
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 unsigned int bReady;
Ritor1
parents:
diff changeset
34 unsigned int bPaused;
Ritor1
parents:
diff changeset
35 int bTackGameTime;
Ritor1
parents:
diff changeset
36 unsigned int uStartTime;
Ritor1
parents:
diff changeset
37 unsigned int uStopTime;
Ritor1
parents:
diff changeset
38 int uGameTimeStart;
Ritor1
parents:
diff changeset
39 int field_18;
Ritor1
parents:
diff changeset
40 unsigned int uTimeElapsed;
Ritor1
parents:
diff changeset
41 int dt_in_some_format;
Ritor1
parents:
diff changeset
42 unsigned int uTotalGameTimeElapsed;
Ritor1
parents:
diff changeset
43 };
957
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
44
0
Ritor1
parents:
diff changeset
45 #pragma pack(pop)
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 extern Timer *pMiscTimer;
957
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
50 extern Timer *pEventTimer;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
51
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
52 const unsigned int Minute = 256;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
53 const unsigned int Hour = 60 * Minute;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
54 const unsigned int Day = 24 * Hour;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
55 const unsigned int Week = 7 * Day;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
56 const unsigned int Month = 4 * Week;
1a47a988c0b8 menu Debug
Ritor1
parents: 810
diff changeset
57 const unsigned int Year = 12 * Month;