ManaPlus
|
Functions | |
StatusEffect * | getStatusEffect (const int index, const Enable enabling) |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
const OptionsMap & | getOptionMap () |
const OptionsMap & | getOpt1Map () |
const OptionsMap & | getOpt2Map () |
const OptionsMap & | getOpt3Map () |
const OptionsMap & StatusEffectDB::getOpt1Map | ( | ) |
Definition at line 213 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::opt1ToIdMap.
Referenced by ActorSprite::setStatusEffectOpitons().
const OptionsMap & StatusEffectDB::getOpt2Map | ( | ) |
Definition at line 218 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::opt2ToIdMap.
Referenced by ActorSprite::setStatusEffectOpitons().
const OptionsMap & StatusEffectDB::getOpt3Map | ( | ) |
Definition at line 223 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::opt3ToIdMap.
Referenced by ActorSprite::setStatusEffectOpitons().
const OptionsMap & StatusEffectDB::getOptionMap | ( | ) |
Definition at line 208 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::optionToIdMap.
Referenced by ActorSprite::setStatusEffectOpiton0(), and ActorSprite::setStatusEffectOpitons().
StatusEffect * StatusEffectDB::getStatusEffect | ( | const int | index, |
const Enable | enabling | ||
) |
Retrieves a status effect.
index | Index of the status effect. |
enabling | Whether to retrieve the activating effect (true) or the deactivating effect (false). |
Definition at line 47 of file statuseffectdb.cpp.
References Enable_true, reportAlways, and anonymous_namespace{statuseffectdb.cpp}::statusEffects.
Referenced by ActorSprite::getStatusEffectsString(), ActorSprite::logic(), and ActorSprite::updateStatusEffect().
void StatusEffectDB::load | ( | ) |
Definition at line 60 of file statuseffectdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{statuseffectdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void StatusEffectDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 75 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::fakeId, fileName, for_each_xml_child_node, XML::getProperty(), Configuration::getStringValue(), XML::langProperty(), loadXmlFile(), Logger::log(), logger, StatusEffect::mAction, StatusEffect::mIcon, StatusEffect::mIsCart, StatusEffect::mIsPersistent, StatusEffect::mIsPoison, StatusEffect::mIsPostDelay, StatusEffect::mIsRiding, StatusEffect::mIsTrickDead, StatusEffect::mMessage, StatusEffect::mName, StatusEffect::mParticleEffect, StatusEffect::mSFXEffect, StatusEffect::mStartParticleEffect, anonymous_namespace{statuseffectdb.cpp}::opt1ToIdMap, anonymous_namespace{statuseffectdb.cpp}::opt2ToIdMap, anonymous_namespace{statuseffectdb.cpp}::opt3ToIdMap, anonymous_namespace{statuseffectdb.cpp}::optionToIdMap, paths, XML::Document::rootNode(), anonymous_namespace{statuseffectdb.cpp}::statusEffects, and UseVirtFs_true.
void StatusEffectDB::unload | ( | ) |
Definition at line 189 of file statuseffectdb.cpp.
References anonymous_namespace{statuseffectdb.cpp}::fakeId, Logger::log1(), logger, anonymous_namespace{statuseffectdb.cpp}::mLoaded, anonymous_namespace{statuseffectdb.cpp}::opt1ToIdMap, anonymous_namespace{statuseffectdb.cpp}::opt2ToIdMap, anonymous_namespace{statuseffectdb.cpp}::opt3ToIdMap, anonymous_namespace{statuseffectdb.cpp}::optionToIdMap, anonymous_namespace{statuseffectdb.cpp}::statusEffects, and unloadMap().
Referenced by DbManager::unloadDb().