SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Weather Class Reference
Inheritance diagram for Weather:
Inheritance graph
[legend]

Public Member Functions

 Weather ()
 The weather manager stores information about the weather.
 
void update (float dt)
 
void playSound ()
 
void startLightning ()
 Set the flag that a lightning should be shown.
 
bool shouldLightning ()
 
irr::core::vector3df getIntensity ()
 

Private Attributes

float m_next_lightning
 
float m_lightning
 
SFXBasem_thunder_sound
 
SFXBasem_weather_sound
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractSingleton< Weather >
static S * getInstance ()
 Used to get the instance, after a dynamic cast. This is important when making a double-inheritance of this class. For example, if A is a singleton inherited by B, you can call B::getInstance<A>() to have the instance returned as a A*. If the cast fails, a log message will notify it.
 
static WeathergetInstance ()
 Used to get the instance.
 
static void kill ()
 Used to kill the singleton, if needed.
 
- Protected Member Functions inherited from AbstractSingleton< Weather >
 AbstractSingleton ()
 Constructor.
 
virtual ~AbstractSingleton ()
 Destructor.
 

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