ManaPlus
|
#include <statuseffect.h>
Public Member Functions | |
StatusEffect () | |
~StatusEffect () | |
void | playSFX () const |
void | deliverMessage () const |
Particle * | getStartParticle () const |
Particle * | getParticle () const |
AnimatedSprite * | getIcon () const |
std::string | getAction () const |
Data Fields | |
std::string | mMessage |
std::string | mSFXEffect |
std::string | mStartParticleEffect |
std::string | mParticleEffect |
std::string | mIcon |
std::string | mAction |
std::string | mName |
bool | mIsPersistent |
bool | mIsPoison |
bool | mIsCart |
bool | mIsRiding |
bool | mIsTrickDead |
bool | mIsPostDelay |
Definition at line 34 of file statuseffect.h.
StatusEffect::StatusEffect | ( | ) |
Definition at line 39 of file statuseffect.cpp.
StatusEffect::~StatusEffect | ( | ) |
Definition at line 56 of file statuseffect.cpp.
void StatusEffect::deliverMessage | ( | ) | const |
Delivers the chat message associated with this status effect, if possible.
Definition at line 66 of file statuseffect.cpp.
References ChatMsgType::BY_SERVER, ChatTab::chatLog(), IgnoreRecord_false, localChatTab, mMessage, and TryRemoveColors_true.
Referenced by LocalPlayer::handleStatusEffect().
std::string StatusEffect::getAction | ( | ) | const |
Retrieves an action to perform, or SpriteAction::INVALID
Definition at line 103 of file statuseffect.cpp.
References SpriteAction::INVALID, and mAction.
AnimatedSprite * StatusEffect::getIcon | ( | ) | const |
Retrieves the status icon for this effect, if applicable
Definition at line 92 of file statuseffect.cpp.
References Configuration::getStringValue(), AnimatedSprite::load(), mIcon, pathJoin(), and paths.
Referenced by LocalPlayer::handleStatusEffect().
Particle * StatusEffect::getParticle | ( | ) | const |
Creates the particle effect associated with this status effect, if possible.
Definition at line 85 of file statuseffect.cpp.
References ParticleEngine::addEffect(), mParticleEffect, and particleEngine.
Referenced by ActorSprite::handleStatusEffect().
Particle * StatusEffect::getStartParticle | ( | ) | const |
Creates the particle effect associated with this status effect, if possible.
Definition at line 78 of file statuseffect.cpp.
References ParticleEngine::addEffect(), mStartParticleEffect, and particleEngine.
Referenced by ActorSprite::handleStatusEffect().
void StatusEffect::playSFX | ( | ) | const |
Plays the sound effect associated with this status effect, if possible.
Definition at line 60 of file statuseffect.cpp.
References mSFXEffect, SoundManager::playSfx(), and soundManager.
Referenced by LocalPlayer::handleStatusEffect().
std::string StatusEffect::mAction |
Definition at line 82 of file statuseffect.h.
Referenced by getAction(), and StatusEffectDB::loadXmlFile().
std::string StatusEffect::mIcon |
Definition at line 81 of file statuseffect.h.
Referenced by getIcon(), and StatusEffectDB::loadXmlFile().
bool StatusEffect::mIsCart |
Definition at line 86 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::updateStatusEffect().
bool StatusEffect::mIsPersistent |
Definition at line 84 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::logic().
bool StatusEffect::mIsPoison |
Definition at line 85 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::updateStatusEffect().
bool StatusEffect::mIsPostDelay |
Definition at line 89 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::updateStatusEffect().
bool StatusEffect::mIsRiding |
Definition at line 87 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::updateStatusEffect().
bool StatusEffect::mIsTrickDead |
Definition at line 88 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and ActorSprite::updateStatusEffect().
std::string StatusEffect::mMessage |
Definition at line 77 of file statuseffect.h.
Referenced by deliverMessage(), and StatusEffectDB::loadXmlFile().
std::string StatusEffect::mName |
Definition at line 83 of file statuseffect.h.
Referenced by ActorSprite::getStatusEffectsString(), and StatusEffectDB::loadXmlFile().
std::string StatusEffect::mParticleEffect |
Definition at line 80 of file statuseffect.h.
Referenced by getParticle(), and StatusEffectDB::loadXmlFile().
std::string StatusEffect::mSFXEffect |
Definition at line 78 of file statuseffect.h.
Referenced by StatusEffectDB::loadXmlFile(), and playSFX().
std::string StatusEffect::mStartParticleEffect |
Definition at line 79 of file statuseffect.h.
Referenced by getStartParticle(), and StatusEffectDB::loadXmlFile().