![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMapTime.h>
Public Member Functions | |
cMapTime (TIMESECD_t dwDayLenSec=(3 *60 *60), float fDayLightPercent=0.7f) | |
~cMapTime () | |
float | get_MapTime () const |
void | put_MapTime (float fMapTime) |
DWORD | get_MapDays () const |
void | CheckMapParams () |
UNITTEST_FRIEND (cMapTime) | |
Static Public Member Functions | |
static bool | isTimeNight (float fMapTime) |
static bool | isTimeDay (float fMapTime) |
static float | ConvertHoursToRadians (float fHours) |
static float | ConvertRadiansToHours (float fRadians) |
Public Attributes | |
TIMESECD_t | m_nDayLenSec |
float | m_fDayLightPercent |
TIMESYSD_t | m_nTimeOffset |
Static Public Attributes | |
static TIMESYS_t | sm_TimeSysFirst = cTimeSys::k_CLEAR |
Static Protected Member Functions | |
static TIMESYS_t | get_SystemTime () |
Given hard real time compute the game time of day. All clients must agree on what time of day it is! Allow night and day rates to flow differently. NOTE: decreasing time of day!
GrayMapData::cMapTime::cMapTime | ( | TIMESECD_t | dwDayLenSec = (3 * 60 * 60) , |
float | fDayLightPercent = 0.7f |
||
) |
GrayMapData::cMapTime::~cMapTime | ( | ) |
void GrayMapData::cMapTime::CheckMapParams | ( | ) |
|
static |
|
static |
DWORD GrayMapData::cMapTime::get_MapDays | ( | ) | const |
float GrayMapData::cMapTime::get_MapTime | ( | ) | const |
from the real time clock get the time of day. Called once per frame for the client.
|
staticprotected |
|
inlinestatic |
|
inlinestatic |
void GrayMapData::cMapTime::put_MapTime | ( | float | fMapTime | ) |
GrayMapData::cMapTime::UNITTEST_FRIEND | ( | cMapTime | ) |
float GrayMapData::cMapTime::m_fDayLightPercent |
TIMESECD_t GrayMapData::cMapTime::m_nDayLenSec |
TIMESYSD_t GrayMapData::cMapTime::m_nTimeOffset |
|
static |