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

Defines a single weather setting (according to INI) More...

#include <weather.hpp>

Collaboration diagram for MWWorld::Weather:

Public Member Functions

 Weather (const std::string &name, const Fallback::Map &fallback, float stormWindSpeed, float rainSpeed, const std::string &particleEffect)
 
float transitionDelta () const
 
float cloudBlendFactor (const float transitionRatio) const
 
float calculateThunder (const float transitionRatio, const float elapsedSeconds, const bool isPaused)
 

Public Attributes

std::string mCloudTexture
 
TimeOfDayInterpolator< osg::Vec4f > mSkyColor
 
TimeOfDayInterpolator< osg::Vec4f > mFogColor
 
TimeOfDayInterpolator< osg::Vec4f > mAmbientColor
 
TimeOfDayInterpolator< osg::Vec4f > mSunColor
 
TimeOfDayInterpolator< float > mLandFogDepth
 
osg::Vec4f mSunDiscSunsetColor
 
float mWindSpeed
 
float mCloudSpeed
 
float mGlareView
 
std::string mAmbientLoopSoundID
 
bool mIsStorm
 
float mRainSpeed
 
float mRainFrequency
 
std::string mParticleEffect
 
std::string mRainEffect
 

Private Member Functions

void flashDecrement (const float elapsedSeconds)
 
float thunderChance (const float transitionRatio, const float elapsedSeconds) const
 
void lightningAndThunder (void)
 

Private Attributes

float mTransitionDelta
 
float mCloudsMaximumPercent
 
float mThunderFrequency
 
float mThunderThreshold
 
std::string mThunderSoundID [4]
 
float mFlashDecrement
 
float mFlashBrightness
 

Detailed Description

Defines a single weather setting (according to INI)

Constructor & Destructor Documentation

Weather::Weather ( const std::string &  name,
const Fallback::Map fallback,
float  stormWindSpeed,
float  rainSpeed,
const std::string &  particleEffect 
)

Here is the call graph for this function:

Member Function Documentation

float Weather::calculateThunder ( const float  transitionRatio,
const float  elapsedSeconds,
const bool  isPaused 
)

Here is the call graph for this function:

float Weather::cloudBlendFactor ( const float  transitionRatio) const
void Weather::flashDecrement ( const float  elapsedSeconds)
inlineprivate

Here is the caller graph for this function:

void Weather::lightningAndThunder ( void  )
inlineprivate

Here is the call graph for this function:

Here is the caller graph for this function:

float Weather::thunderChance ( const float  transitionRatio,
const float  elapsedSeconds 
) const
inlineprivate

Here is the caller graph for this function:

float Weather::transitionDelta ( ) const

Member Data Documentation

TimeOfDayInterpolator<osg::Vec4f> MWWorld::Weather::mAmbientColor
std::string MWWorld::Weather::mAmbientLoopSoundID
float MWWorld::Weather::mCloudsMaximumPercent
private
float MWWorld::Weather::mCloudSpeed
std::string MWWorld::Weather::mCloudTexture
float MWWorld::Weather::mFlashBrightness
private
float MWWorld::Weather::mFlashDecrement
private
TimeOfDayInterpolator<osg::Vec4f> MWWorld::Weather::mFogColor
float MWWorld::Weather::mGlareView
bool MWWorld::Weather::mIsStorm
TimeOfDayInterpolator<float> MWWorld::Weather::mLandFogDepth
std::string MWWorld::Weather::mParticleEffect
std::string MWWorld::Weather::mRainEffect
float MWWorld::Weather::mRainFrequency
float MWWorld::Weather::mRainSpeed
TimeOfDayInterpolator<osg::Vec4f> MWWorld::Weather::mSkyColor
TimeOfDayInterpolator<osg::Vec4f> MWWorld::Weather::mSunColor
osg::Vec4f MWWorld::Weather::mSunDiscSunsetColor
float MWWorld::Weather::mThunderFrequency
private
std::string MWWorld::Weather::mThunderSoundID[4]
private
float MWWorld::Weather::mThunderThreshold
private
float MWWorld::Weather::mTransitionDelta
private
float MWWorld::Weather::mWindSpeed

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