OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
gtime Class Referencefinal

#include <gametime.h>

Public Member Functions

 gtime ()=default
 
 gtime (int32_t hour, int32_t min)
 
 gtime (int64_t day, int32_t hour, int32_t min)
 
 gtime (int64_t day, int64_t hour, int64_t min)
 
int64_t toInt () const
 
void addMilis (uint64_t t)
 
int64_t day () const
 
gtime timeInDay () const
 
int64_t hour () const
 
int64_t minute () const
 

Static Public Member Functions

static const gtime endOfTime ()
 

Friends

bool operator== (gtime a, gtime b)
 
bool operator!= (gtime a, gtime b)
 
bool operator< (gtime a, gtime b)
 
bool operator<= (gtime a, gtime b)
 

Detailed Description

Definition at line 7 of file gametime.h.

Constructor & Destructor Documentation

◆ gtime() [1/4]

gtime::gtime ( )
default

◆ gtime() [2/4]

gtime::gtime ( int32_t  hour,
int32_t  min 
)
inline

Definition at line 10 of file gametime.h.

◆ gtime() [3/4]

gtime::gtime ( int64_t  day,
int32_t  hour,
int32_t  min 
)
inline

Definition at line 11 of file gametime.h.

◆ gtime() [4/4]

gtime::gtime ( int64_t  day,
int64_t  hour,
int64_t  min 
)
inline

Definition at line 12 of file gametime.h.

Member Function Documentation

◆ addMilis()

void gtime::addMilis ( uint64_t  t)
inline

Definition at line 15 of file gametime.h.

◆ day()

int64_t gtime::day ( ) const
inline

Definition at line 17 of file gametime.h.

◆ endOfTime()

static const gtime gtime::endOfTime ( )
inlinestatic

Definition at line 23 of file gametime.h.

◆ hour()

int64_t gtime::hour ( ) const
inline

Definition at line 20 of file gametime.h.

◆ minute()

int64_t gtime::minute ( ) const
inline

Definition at line 21 of file gametime.h.

◆ timeInDay()

gtime gtime::timeInDay ( ) const
inline

Definition at line 18 of file gametime.h.

◆ toInt()

int64_t gtime::toInt ( ) const
inline

Definition at line 14 of file gametime.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( gtime  a,
gtime  b 
)
friend

Definition at line 43 of file gametime.h.

◆ operator<

bool operator< ( gtime  a,
gtime  b 
)
friend

Definition at line 47 of file gametime.h.

◆ operator<=

bool operator<= ( gtime  a,
gtime  b 
)
friend

Definition at line 51 of file gametime.h.

◆ operator==

bool operator== ( gtime  a,
gtime  b 
)
friend

Definition at line 39 of file gametime.h.


The documentation for this class was generated from the following file: