#include <LightningManager.h>
SkyX::VClouds::LightningManager::LightningManager |
( |
VClouds * |
vc | ) |
|
|
explicit |
SkyX::VClouds::LightningManager::~LightningManager |
( |
| ) |
|
void SkyX::VClouds::LightningManager::_setVisible |
( |
const bool & |
v | ) |
|
void SkyX::VClouds::LightningManager::_updateRenderQueueGroup |
( |
const Ogre::uint8 & |
rqg | ) |
|
Update render queue group.
- Parameters
-
Lightning* SkyX::VClouds::LightningManager::addLightning |
( |
const Ogre::Vector3 & |
p, |
|
|
const Ogre::Vector3 & |
d, |
|
|
const Ogre::Real |
l, |
|
|
const Ogre::uint32 & |
div = static_cast< Ogre::uint32 >(Ogre::Math::RangeRandom(12, 30)) |
|
) |
| |
Add lightning.
- Parameters
-
- Returns
- The lightning or null in error case (the max number of simultaneous lightnings is 3)
void SkyX::VClouds::LightningManager::addListener |
( |
Listener * |
listener | ) |
|
|
inline |
void SkyX::VClouds::LightningManager::create |
( |
| ) |
|
const Ogre::Real& SkyX::VClouds::LightningManager::getAverageLightningApparitionTime |
( |
| ) |
const |
|
inline |
Get average lightning apparition time.
- Returns
- Average lightning apparition time
const Ogre::Vector3& SkyX::VClouds::LightningManager::getLightningColor |
( |
| ) |
const |
|
inline |
const Ogre::Real& SkyX::VClouds::LightningManager::getLightningTimeMultiplier |
( |
| ) |
const |
|
inline |
Set lightning time multiplier.
- Returns
- Lightning time multiplier
const std::vector<Listener*>& SkyX::VClouds::LightningManager::getListeners |
( |
| ) |
const |
|
inline |
Get listeners.
- Returns
- Listeners
const bool& SkyX::VClouds::LightningManager::isCreated |
( |
| ) |
const |
|
inline |
Has been create() already called?
- Returns
- true if created() have been already called, false if not
References SkyX::mCreated.
const bool& SkyX::VClouds::LightningManager::isEnabled |
( |
| ) |
const |
|
inline |
Get whether the lightning system is enabled or not.
- Returns
- true if the lightning system is enabled, false otherwise
References SkyX::mEnabled.
void SkyX::VClouds::LightningManager::remove |
( |
| ) |
|
void SkyX::VClouds::LightningManager::removeListener |
( |
Listener * |
listener | ) |
|
Remove listener.
- Parameters
-
void SkyX::VClouds::LightningManager::removeListeners |
( |
| ) |
|
|
inline |
void SkyX::VClouds::LightningManager::setAverageLightningApparitionTime |
( |
const Ogre::Real & |
alat | ) |
|
|
inline |
Set average lightning apparition time.
- Parameters
-
alat | Average lightning apparition time |
void SkyX::VClouds::LightningManager::setEnabled |
( |
const bool & |
enable | ) |
|
Enable or disable the lightning system.
- Parameters
-
enable | true to enable the lightning system, false otherwise |
void SkyX::VClouds::LightningManager::setLightningColor |
( |
const Ogre::Vector3 & |
c | ) |
|
Set lightning color.
- Parameters
-
void SkyX::VClouds::LightningManager::setLightningTimeMultiplier |
( |
const Ogre::Real & |
m | ) |
|
|
inline |
Set lightning time multiplier.
- Parameters
-
void SkyX::VClouds::LightningManager::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
Update, to be invoked per frame.
- Parameters
-
timeSinceLastFrame | Time since last frame |
void SkyX::VClouds::LightningManager::updateMaterial |
( |
| ) |
|
The documentation for this class was generated from the following file: