ManaPlus
|
Typedefs | |
typedef EmoteInfos::iterator | EmoteInfosIterator |
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | loadSpecialXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
const EmoteInfo * | get (const int id, const bool allowNull) |
const EmoteInfo * | get2 (int id, const bool allowNull) |
const EmoteSprite * | getSprite (const int id, const bool allowNull) |
const int & | getLast () A_CONST |
int | getIdByIndex (const int index) |
int | size () |
Emote information database.
typedef EmoteInfos::iterator EmoteDB::EmoteInfosIterator |
const EmoteInfo * EmoteDB::get | ( | const int | id, |
const bool | allowNull | ||
) |
Definition at line 258 of file emotedb.cpp.
References anonymous_namespace{emotedb.cpp}::mEmoteInfos, anonymous_namespace{emotedb.cpp}::mUnknown, and reportAlways.
const EmoteInfo * EmoteDB::get2 | ( | int | id, |
const bool | allowNull | ||
) |
Definition at line 273 of file emotedb.cpp.
References anonymous_namespace{emotedb.cpp}::mEmoteInfos, anonymous_namespace{emotedb.cpp}::mEmotesAlt, anonymous_namespace{emotedb.cpp}::mUnknown, and reportAlways.
Referenced by Being::setEmote().
int EmoteDB::getIdByIndex | ( | const int | index | ) |
Definition at line 311 of file emotedb.cpp.
References anonymous_namespace{emotedb.cpp}::mEmoteInfos.
const int & EmoteDB::getLast | ( | ) |
Definition at line 301 of file emotedb.cpp.
References anonymous_namespace{emotedb.cpp}::mLastEmote.
Referenced by EmoteShortcutContainer::EmoteShortcutContainer(), EmoteShortcut::load(), and Being::setEmote().
const EmoteSprite * EmoteDB::getSprite | ( | const int | id, |
const bool | allowNull | ||
) |
Definition at line 292 of file emotedb.cpp.
References AttributesEnum::get(), and Actions::info().
Referenced by EmoteShortcutContainer::EmoteShortcutContainer(), EmoteShortcut::load(), and ItemDB::load().
void EmoteDB::load | ( | ) |
Definition at line 48 of file emotedb.cpp.
References Configuration::getStringValue(), EmoteSprite::id, AnimatedSprite::load(), loadSpecialXmlFile(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{emotedb.cpp}::mLastEmote, anonymous_namespace{emotedb.cpp}::mLoaded, anonymous_namespace{emotedb.cpp}::mUnknown, EmoteSprite::name, pathJoin(), paths, SkipError_false, SkipError_true, EmoteSprite::sprite, EmoteInfo::sprites, and Net::unload().
Referenced by DbManager::loadDb().
void EmoteDB::loadSpecialXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 151 of file emotedb.cpp.
References EmoteInfo::effectId, fileName, for_each_xml_child_node, XML::getProperty(), Configuration::getStringValue(), EmoteSprite::id, XML::langProperty(), AnimatedSprite::load(), Logger::log1(), logger, anonymous_namespace{emotedb.cpp}::mEmoteInfos, anonymous_namespace{emotedb.cpp}::mEmotesAlt, anonymous_namespace{emotedb.cpp}::mLastEmote, EmoteSprite::name, EmoteInfo::particles, pathJoin(), paths, reportAlways, XML::Document::rootNode(), EmoteSprite::sprite, EmoteInfo::sprites, EmoteInfo::time, and UseVirtFs_true.
Referenced by load().
void EmoteDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 74 of file emotedb.cpp.
References EmoteInfo::effectId, fileName, for_each_xml_child_node, XML::getProperty(), Configuration::getStringValue(), EmoteSprite::id, Client::isTmw(), XML::langProperty(), AnimatedSprite::load(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{emotedb.cpp}::mEmoteInfos, anonymous_namespace{emotedb.cpp}::mLastEmote, EmoteSprite::name, EmoteInfo::particles, pathJoin(), paths, reportAlways, XML::Document::rootNode(), EmoteSprite::sprite, EmoteInfo::sprites, EmoteInfo::time, and UseVirtFs_true.
int EmoteDB::size | ( | ) |
Definition at line 306 of file emotedb.cpp.
References anonymous_namespace{emotedb.cpp}::mEmoteInfos.
Referenced by Net::Download::adlerBuffer(), LayoutArray::align(), alloc_mem(), Setup_Theme::apply(), Logger::assertLog(), BrowserBox::calcHeight(), CharCreateDialog::CharCreateDialog(), PlayerRelationsManager::checkName(), Ea::LoginHandler::chooseServer(), ActorSprite::cleanupTargetCursors(), CrazyMoves::crazyMoveAe(), cursorSize(), Font::doClean(), XML::Document::Document(), NormalOpenGLGraphics::drawLineArrayf(), NormalOpenGLGraphics::drawLineArrayi(), MobileOpenGL2Graphics::drawLineArrays(), MobileOpenGLGraphics::drawLineArrays(), ModernOpenGLGraphics::drawLineArrays(), NormalOpenGLGraphics::drawQuadArrayfi(), NormalOpenGLGraphics::drawQuadArrayfiCached(), NormalOpenGLGraphics::drawQuadArrayii(), NormalOpenGLGraphics::drawQuadArrayiiCached(), MobileOpenGL2Graphics::drawTriangleArray(), ModernOpenGLGraphics::drawTriangleArray(), MobileOpenGLGraphics::drawTriangleArrayfs(), MobileOpenGLGraphics::drawTriangleArrayfsCached(), DyePalette::DyePalette(), encodeStr(), EquipmentWindow::EquipmentWindow(), extractNameFromSprite(), Map::findPath(), Font::Font(), TextBox::getCaretPosition(), UpdaterWindow::getFileHash(), IgnoreChoicesListModel::getNumberOfElements(), getSafeUtf8String(), LayoutArray::getSize(), LayoutArray::getSizes(), Map::indexTilesets(), ActorSprite::initTargetCursor(), InventoryWindow::InventoryWindow(), PlayerRelationsManager::isGoodName(), NpcDialog::itemCraftRequest(), NpcDialog::itemIndexRequest(), NpcDialog::itemRequest(), TextBox::keyPressed(), Font::loadFont(), SkinHelper::loadList(), Logger::log(), Logger::log_r(), WhoIsOnline::memoryWrite(), UpdaterWindow::memoryWrite(), PoParser::openFile(), Font::openFont(), operator new(), operator new[](), Catch::CompositeGenerator< T >::operator T(), mse::msevector< _Ty, _A >::mm_const_iterator_type::points_to_an_item(), mse::msevector< _Ty, _A >::mm_iterator_type::points_to_an_item(), EAthena::InventoryRecv::processCartInfo(), Ea::PlayerRecv::processMapMusic(), EAthena::PlayerRecv::processOnlineList(), Ea::InventoryRecv::processPlayerStorageStatus(), readColor(), LayoutArray::reflow(), removeSpriteIndex(), LayoutArray::resizeGrid(), VirtFs::FsDir::rwops_read(), VirtFs::FsZip::rwops_read(), VirtFs::FsDir::rwops_write(), Item::setCards(), Inventory::setCards(), TextBox::setCaretColumn(), TextBox::setCaretPosition(), setConfigDefaults2(), Minimap::setMap(), KeyListModel::setSize(), BeingInfo::setTargetCursorSize(), Setup_Theme::Setup_Theme(), ShopWindow::ShopWindow(), PopupMenu::showAttackMonsterPopup(), AtlasManager::simpleSort(), Particle::update(), StaticBrowserBox::updateHeight(), Net::Download::writeFunction(), xmlErrorLogger(), and ObjectsLayer::~ObjectsLayer().
void EmoteDB::unload | ( | ) |
Definition at line 227 of file emotedb.cpp.
References FOR_EACH, Logger::log1(), logger, anonymous_namespace{emotedb.cpp}::mEmoteInfos, anonymous_namespace{emotedb.cpp}::mLoaded, anonymous_namespace{emotedb.cpp}::mUnknown, and EmoteInfo::sprites.
Referenced by DbManager::unloadDb().