OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWWorld::TimeStamp Class Reference

In-game time stamp. More...

#include <timestamp.hpp>

Collaboration diagram for MWWorld::TimeStamp:

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
 
TimeStampoperator+= (double hours)
 

Private Attributes

float mHour
 
int mDay
 

Detailed Description

In-game time stamp.

This class is based on the global variables GameHour and DaysPassed.

Constructor & Destructor Documentation

MWWorld::TimeStamp::TimeStamp ( float  hour = 0,
int  day = 0 
)
explicit
Parameters
hour[0, 23)
day>=0
MWWorld::TimeStamp::TimeStamp ( const ESM::TimeStamp esm)
explicit

Member Function Documentation

int MWWorld::TimeStamp::getDay ( ) const

Here is the caller graph for this function:

float MWWorld::TimeStamp::getHour ( ) const

Here is the caller graph for this function:

TimeStamp & MWWorld::TimeStamp::operator+= ( double  hours)
Parameters
hours>=0
ESM::TimeStamp MWWorld::TimeStamp::toEsm ( ) const

Here is the caller graph for this function:

Member Data Documentation

int MWWorld::TimeStamp::mDay
private
float MWWorld::TimeStamp::mHour
private

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