TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3DGameUnits.h
Go to the documentation of this file.
1 
9 #ifndef G3D_GAMEUNITS_H
10 #define G3D_GAMEUNITS_H
11 
12 #include "G3D/platform.h"
13 
14 namespace G3D {
15 
17 typedef double GameTime;
18 
22 typedef double SimTime;
23 
27 typedef double RealTime;
28 
29 enum AMPM {AM, PM};
30 
32 enum {SECOND=1, MINUTE=60, HOUR = 60*60, DAY=24*60*60, SUNRISE=24*60*60/4, SUNSET=24*60*60*3/4, MIDNIGHT=0, METER=1, KILOMETER=1000};
33 
40 SimTime toSeconds(int hour, int minute, double seconds, AMPM ap);
41 SimTime toSeconds(int hour, int minute, AMPM ap);
42 
43 }
44 
45 #endif
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32
double SimTime
Definition: G3DGameUnits.h:22
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32
SimTime toSeconds(int hour, int minute, double seconds, AMPM ap)
Definition: AABox.h:25
Definition: G3DGameUnits.h:29
AMPM
Definition: G3DGameUnits.h:29
double GameTime
Definition: G3DGameUnits.h:17
float seconds()
Definition: units.h:97
double RealTime
Definition: G3DGameUnits.h:27
Definition: G3DGameUnits.h:29
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32
Definition: G3DGameUnits.h:32