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

A class that acts as a model for the moons. More...

#include <weather.hpp>

Collaboration diagram for MWWorld::MoonModel:

Public Member Functions

 MoonModel (const std::string &name, const Fallback::Map &fallback)
 
MWRender::MoonState calculateState (const TimeStamp &gameTime) const
 

Private Member Functions

float angle (const TimeStamp &gameTime) const
 
float moonRiseHour (unsigned int daysPassed) const
 
float rotation (float hours) const
 
unsigned int phase (const TimeStamp &gameTime) const
 
float shadowBlend (float angle) const
 
float hourlyAlpha (float gameHour) const
 
float earlyMoonShadowAlpha (float angle) const
 

Private Attributes

float mFadeInStart
 
float mFadeInFinish
 
float mFadeOutStart
 
float mFadeOutFinish
 
float mAxisOffset
 
float mSpeed
 
float mDailyIncrement
 
float mFadeStartAngle
 
float mFadeEndAngle
 
float mMoonShadowEarlyFadeAngle
 

Detailed Description

A class that acts as a model for the moons.

Constructor & Destructor Documentation

MoonModel::MoonModel ( const std::string &  name,
const Fallback::Map fallback 
)

Member Function Documentation

float MoonModel::angle ( const TimeStamp gameTime) const
inlineprivate

Here is the call graph for this function:

Here is the caller graph for this function:

MWRender::MoonState MoonModel::calculateState ( const TimeStamp gameTime) const

Here is the call graph for this function:

Here is the caller graph for this function:

float MoonModel::earlyMoonShadowAlpha ( float  angle) const
inlineprivate

Here is the caller graph for this function:

float MoonModel::hourlyAlpha ( float  gameHour) const
inlineprivate

Here is the caller graph for this function:

float MoonModel::moonRiseHour ( unsigned int  daysPassed) const
inlineprivate

Here is the caller graph for this function:

unsigned int MoonModel::phase ( const TimeStamp gameTime) const
inlineprivate

Here is the call graph for this function:

Here is the caller graph for this function:

float MoonModel::rotation ( float  hours) const
inlineprivate

Here is the caller graph for this function:

float MoonModel::shadowBlend ( float  angle) const
inlineprivate

Here is the caller graph for this function:

Member Data Documentation

float MWWorld::MoonModel::mAxisOffset
private
float MWWorld::MoonModel::mDailyIncrement
private
float MWWorld::MoonModel::mFadeEndAngle
private
float MWWorld::MoonModel::mFadeInFinish
private
float MWWorld::MoonModel::mFadeInStart
private
float MWWorld::MoonModel::mFadeOutFinish
private
float MWWorld::MoonModel::mFadeOutStart
private
float MWWorld::MoonModel::mFadeStartAngle
private
float MWWorld::MoonModel::mMoonShadowEarlyFadeAngle
private
float MWWorld::MoonModel::mSpeed
private

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