#include <LightningManager.h>
Definition at line 35 of file LightningManager.h.
◆ LightningManager()
SkyX::VClouds::LightningManager::LightningManager |
( |
VClouds * |
vc | ) |
|
◆ ~LightningManager()
SkyX::VClouds::LightningManager::~LightningManager |
( |
| ) |
|
◆ _setVisible()
void SkyX::VClouds::LightningManager::_setVisible |
( |
const bool & |
v | ) |
|
◆ _updateRenderQueueGroup()
void SkyX::VClouds::LightningManager::_updateRenderQueueGroup |
( |
const Ogre::uint8 & |
rqg | ) |
|
◆ addLightning()
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)
Definition at line 202 of file LightningManager.cpp.
◆ addListener()
void SkyX::VClouds::LightningManager::addListener |
( |
Listener * |
listener | ) |
|
|
inline |
◆ create()
void SkyX::VClouds::LightningManager::create |
( |
| ) |
|
◆ getAverageLightningApparitionTime()
const Ogre::Real& SkyX::VClouds::LightningManager::getAverageLightningApparitionTime |
( |
| ) |
const |
|
inline |
Get average lightning apparition time.
- Returns
- Average lightning apparition time
Definition at line 174 of file LightningManager.h.
◆ getLightningColor()
const Ogre::Vector3& SkyX::VClouds::LightningManager::getLightningColor |
( |
| ) |
const |
|
inline |
◆ getLightningTimeMultiplier()
const Ogre::Real& SkyX::VClouds::LightningManager::getLightningTimeMultiplier |
( |
| ) |
const |
|
inline |
◆ getListeners()
const std::vector<Listener*>& SkyX::VClouds::LightningManager::getListeners |
( |
| ) |
const |
|
inline |
◆ isCreated()
const bool& SkyX::VClouds::LightningManager::isCreated |
( |
| ) |
const |
|
inline |
Has been create() already called?
- Returns
- true if created() have been already called, false if not
Definition at line 182 of file LightningManager.h.
◆ isEnabled()
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
Definition at line 127 of file LightningManager.h.
◆ remove()
void SkyX::VClouds::LightningManager::remove |
( |
| ) |
|
◆ removeListener()
void SkyX::VClouds::LightningManager::removeListener |
( |
Listener * |
listener | ) |
|
◆ removeListeners()
void SkyX::VClouds::LightningManager::removeListeners |
( |
| ) |
|
|
inline |
◆ setAverageLightningApparitionTime()
void SkyX::VClouds::LightningManager::setAverageLightningApparitionTime |
( |
const Ogre::Real & |
alat | ) |
|
|
inline |
Set average lightning apparition time.
- Parameters
-
alat | Average lightning apparition time |
Definition at line 165 of file LightningManager.h.
◆ setEnabled()
void SkyX::VClouds::LightningManager::setEnabled |
( |
const bool & |
enable | ) |
|
Enable or disable the lightning system.
- Parameters
-
enable | true to enable the lightning system, false otherwise |
Definition at line 281 of file LightningManager.cpp.
◆ setLightningColor()
void SkyX::VClouds::LightningManager::setLightningColor |
( |
const Ogre::Vector3 & |
c | ) |
|
◆ setLightningTimeMultiplier()
void SkyX::VClouds::LightningManager::setLightningTimeMultiplier |
( |
const Ogre::Real & |
m | ) |
|
|
inline |
◆ update()
void SkyX::VClouds::LightningManager::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
Update, to be invoked per frame.
- Parameters
-
timeSinceLastFrame | Time since last frame |
Definition at line 105 of file LightningManager.cpp.
◆ updateMaterial()
void SkyX::VClouds::LightningManager::updateMaterial |
( |
| ) |
|
◆ mAverageLightningApparitionTime
Ogre::Real SkyX::VClouds::LightningManager::mAverageLightningApparitionTime |
|
private |
◆ mCreated
bool SkyX::VClouds::LightningManager::mCreated |
|
private |
◆ mEnabled
bool SkyX::VClouds::LightningManager::mEnabled |
|
private |
◆ mLightningColor
Ogre::Vector3 SkyX::VClouds::LightningManager::mLightningColor |
|
private |
◆ mLightningMaterial
Ogre::MaterialPtr SkyX::VClouds::LightningManager::mLightningMaterial |
|
private |
◆ mLightnings
std::vector<Lightning*> SkyX::VClouds::LightningManager::mLightnings |
|
private |
◆ mLightningTimeMultiplier
Ogre::Real SkyX::VClouds::LightningManager::mLightningTimeMultiplier |
|
private |
◆ mListeners
std::vector<Listener*> SkyX::VClouds::LightningManager::mListeners |
|
private |
◆ mRemainingTime
Ogre::Real SkyX::VClouds::LightningManager::mRemainingTime |
|
private |
◆ mSceneNodes
std::vector<Ogre::SceneNode*> SkyX::VClouds::LightningManager::mSceneNodes |
|
private |
◆ mVClouds
VClouds* SkyX::VClouds::LightningManager::mVClouds |
|
private |
◆ mVolCloudsLightningMaterial
Ogre::MaterialPtr SkyX::VClouds::LightningManager::mVolCloudsLightningMaterial |
|
private |
The documentation for this class was generated from the following files: