| 
    World of Might and Magic
    0.2.0
    
   Open reimplementation of Might and Magic 6 7 8 game engine 
   | 
 
 
 
 
См. документацию.
    6 #define TIME_SECONDS_PER_QUANT      30 
    7 #define TIME_UNPACK_GAME_SECONDS    (uint64_t)TIME_SECONDS_PER_QUANT / (double)TIME_QUANT 
   11 #define TIME_PACK_GAME_SECONDS      (uint64_t)TIME_QUANT / (double)TIME_SECONDS_PER_QUANT 
   17     GameTime(
int seconds, 
int minutes, 
int hours = 0, 
int days = 0,
 
   18              int weeks = 0, 
int months = 0, 
int years = 0) {
 
   22                          TIME_PACK_GAME_SECONDS;
 
   46         this->
value += ((
uint64_t)60 * minutes * TIME_PACK_GAME_SECONDS);
 
   49         this->
value -= ((
uint64_t)60 * 60 * hours * TIME_PACK_GAME_SECONDS);
 
   52         this->
value += ((
uint64_t)60 * 60 * 24 * days * TIME_PACK_GAME_SECONDS);
 
   55         this->
value += ((
uint64_t)60 * 60 * 24 * 7 * 4 * 12 * years * TIME_PACK_GAME_SECONDS);
 
   77     explicit operator bool() {
 
   81     operator int() { 
return static_cast<int>(this->
value); }  
 
   84         return GameTime(seconds, 0, 0, 0, 0, 0, 0);
 
   87         return GameTime(0, minutes, 0, 0, 0, 0, 0);
 
   90         return GameTime(0, 0, hours, 0, 0, 0, 0);
 
   93         return GameTime(0, 0, 0, days, 0, 0, 0);
 
   96         return GameTime(0, 0, 0, 0, 0, 0, years);
 
  103 #pragma pack(push, 1) 
  137     static const unsigned int Minute = 2 * TIME_QUANT;
 
  
 
unsigned int uTimeElapsed
 
static const unsigned int Minute
 
int GetDaysOfWeek() const
 
int GetDaysOfMonth() const
 
static GameTime FromYears(int years)
 
unsigned __int64 uint64_t
 
static GameTime FromHours(int hours)
 
int GetMinutesFraction() const
 
GameTime & operator+=(GameTime &rhs)
 
int GetSecondsFraction() const
 
static const unsigned int Year
 
static GameTime FromMinutes(int minutes)
 
uint64_t GetMinutes() const
 
static const unsigned int Day
 
int GetHoursOfDay() const
 
GameTime(int seconds, int minutes, int hours=0, int days=0, int weeks=0, int months=0, int years=0)
 
EGLSyncKHR EGLint EGLint * value
 
bool operator<(const GameTime &rhs) const
 
int GetWeeksOfMonth() const
 
static const unsigned int Month
 
int GetMonthsOfYear() const
 
void AddMinutes(int minutes)
 
uint64_t GetSeconds() const
 
static const unsigned int Week
 
static const unsigned int Hour
 
GameTime operator-(GameTime &rhs)
 
static GameTime FromDays(int days)
 
uint64_t GetHours() const
 
void SubtractHours(int hours)
 
GameTime operator+(GameTime &rhs)
 
bool operator>(const GameTime &rhs) const
 
unsigned int uTotalGameTimeElapsed
 
bool operator>=(const GameTime &rhs) const
 
static GameTime FromSeconds(int seconds)
 
bool operator<=(const GameTime &rhs) const