OpenMW
|
In-game time stamp. More...
#include <timestamp.hpp>
Public Member Functions | |
TimeStamp (float hour=0, int day=0) | |
TimeStamp (const ESM::TimeStamp &esm) | |
ESM::TimeStamp | toEsm () const |
float | getHour () const |
int | getDay () const |
TimeStamp & | operator+= (double hours) |
Private Attributes | |
float | mHour |
int | mDay |
In-game time stamp.
This class is based on the global variables GameHour and DaysPassed.
|
explicit |
hour | [0, 23) |
day | >=0 |
|
explicit |
int MWWorld::TimeStamp::getDay | ( | ) | const |
float MWWorld::TimeStamp::getHour | ( | ) | const |
TimeStamp & MWWorld::TimeStamp::operator+= | ( | double | hours | ) |
hours | >=0 |
ESM::TimeStamp MWWorld::TimeStamp::toEsm | ( | ) | const |
|
private |
|
private |