OpenMW
|
In-game time stamp. More...
#include <timestamp.hpp>
Public Member Functions | |
TimeStamp (float hour=0, int day=0) | |
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.
MWWorld::TimeStamp::TimeStamp | ( | float | hour = 0 , |
int | day = 0 |
||
) | [explicit] |
hour [0, 23)
day | >=0 |
int MWWorld::TimeStamp::getDay | ( | ) | const |
float MWWorld::TimeStamp::getHour | ( | ) | const |
TimeStamp & MWWorld::TimeStamp::operator+= | ( | double | hours | ) |
hours | >=0 |
int MWWorld::TimeStamp::mDay [private] |
float MWWorld::TimeStamp::mHour [private] |