OpenMW
Public Member Functions | Private Attributes
MWWorld::TimeStamp Class Reference

In-game time stamp. More...

#include <timestamp.hpp>

List of all members.

Public Member Functions

 TimeStamp (float hour=0, int day=0)
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]

hour [0, 23)

Parameters:
day>=0

Member Function Documentation

float MWWorld::TimeStamp::getHour ( ) const
TimeStamp & MWWorld::TimeStamp::operator+= ( double  hours)
Parameters:
hours>=0

Member Data Documentation

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

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