Crossfire Server, Trunk
|
#include <CREMapInformationManager.h>
Signals | |
void | addHook (const QString &file, HookInformation *hook) |
void | browsingMap (const QString &path) |
void | finished () |
void | mapAdded (CREMapInformation *map) |
Public Member Functions | |
QList< CREMapInformation * > | allMaps () |
bool | browseFinished () const |
void | cancel () |
void | clearCache () |
CREMapInformationManager (QObject *parent, MessageManager *messageManager, ScriptFileManager *scriptManager) | |
QList< CREMapInformation * > | getAnimationUse (const Animations *anim) |
QList< CREMapInformation * > | getArchetypeUse (const archetype *arch) |
QList< CREMapInformation * > | getFaceUse (const Face *face) |
QList< CREMapInformation * > | getMapsForQuest (const quest_definition *quest) |
QList< CREMapInformation * > | getMapsForRegion (const QString ®ion) |
QList< RandomMap * > | randomMaps () |
void | start () |
virtual | ~CREMapInformationManager () |
Protected Member Functions | |
void | addAnimationUse (const QString &name, CREMapInformation *map) |
void | addArchetypeUse (const QString &name, CREMapInformation *map) |
void | addFaceUse (const QString &name, CREMapInformation *map) |
void | addQuestUse (const QString &name, CREMapInformation *map) |
void | browseMaps () |
void | checkEvent (const object *item, CREMapInformation *map, const object *env) |
void | checkItem (const object *item, CREMapInformation *information, const object *env) |
CREMapInformation * | getOrCreateMapInformation (const QString &path) |
void | loadCache () |
void | process (const QString &path) |
void | recurseStyleDirectory (const QString &from) |
void | storeCache () |
Protected Attributes | |
QMultiHash< QString, CREMapInformation * > | myAnimationUse |
QMultiHash< QString, CREMapInformation * > | myArchetypeUse |
bool | myCancelled |
int | myCurrentMap |
QHash< QString, qint64 > | myExperience |
QMultiHash< QString, CREMapInformation * > | myFaceUse |
QHash< QString, CREMapInformation * > | myInformation |
QMutex | myLock |
MessageManager * | myMessageManager |
QMultiHash< QString, CREMapInformation * > | myQuestUse |
ScriptFileManager * | myScriptManager |
QStringList | myToProcess |
QFuture< void > | myWorker |
Definition at line 27 of file CREMapInformationManager.h.
CREMapInformationManager::CREMapInformationManager | ( | QObject * | parent, |
MessageManager * | messageManager, | ||
ScriptFileManager * | scriptManager | ||
) |
Definition at line 67 of file CREMapInformationManager.cpp.
References addHook(), myMessageManager, and myScriptManager.
|
virtual |
Definition at line 76 of file CREMapInformationManager.cpp.
References myInformation.
|
protected |
Definition at line 733 of file CREMapInformationManager.cpp.
References disinfect::map, myAnimationUse, myLock, and give::name.
Referenced by checkItem(), and loadCache().
|
protected |
Definition at line 719 of file CREMapInformationManager.cpp.
References disinfect::map, myArchetypeUse, myLock, and give::name.
Referenced by checkItem(), and loadCache().
|
protected |
Definition at line 726 of file CREMapInformationManager.cpp.
References disinfect::map, myFaceUse, myLock, and give::name.
Referenced by checkItem(), and loadCache().
|
signal |
Referenced by checkEvent(), CREMapInformationManager(), and loadCache().
|
protected |
Definition at line 740 of file CREMapInformationManager.cpp.
References disinfect::map, myLock, myQuestUse, and give::name.
Referenced by checkEvent(), and loadCache().
QList< CREMapInformation * > CREMapInformationManager::allMaps | ( | ) |
Definition at line 374 of file CREMapInformationManager.cpp.
References myInformation, and myLock.
Referenced by CREMainWindow::onReportResetGroups(), and CREMainWindow::onReportShops().
bool CREMapInformationManager::browseFinished | ( | ) | const |
Definition at line 81 of file CREMapInformationManager.cpp.
References myWorker.
Referenced by CREMainWindow::createAction().
|
protected |
Definition at line 310 of file CREMapInformationManager.cpp.
References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), first_map_ext_path, first_map_path, getManager(), loadCache(), myArchetypeUse, myCancelled, myCurrentMap, myInformation, myToProcess, and PLAYER.
Referenced by start().
|
signal |
void CREMapInformationManager::cancel | ( | ) |
Definition at line 368 of file CREMapInformationManager.cpp.
References myCancelled, and myWorker.
Referenced by CREMainWindow::closeEvent().
|
protected |
Definition at line 747 of file CREMapInformationManager.cpp.
References addHook(), addQuestUse(), env, EVENT_CONNECTOR, EVENT_SAY, eventNames, MessageManager::findMessage(), disinfect::map, diamondslots::message, myMessageManager, NR_EVENTS, python_init::path, and split().
Referenced by checkItem().
|
protected |
Definition at line 94 of file CREMapInformationManager.cpp.
References add_map(), add_region_link(), CREMapInformation::addAccessedFrom(), CREMapInformation::addAnimation(), addAnimationUse(), CREMapInformation::addArchetype(), addArchetypeUse(), CREMapInformation::addExitTo(), CREMapInformation::addFace(), addFaceUse(), CREMapInformation::addRandomMap(), archininventory::arch, checkEvent(), create_pathname(), delete_map(), do_regions_link, env, EXIT, EXIT_PATH, CREMapInformation::experience, find_archetype(), FLAG_MONSTER, FOR_INV_FINISH, FOR_INV_PREPARE, get_map_info(), getOrCreateMapInformation(), mapstruct::in_memory, commongive::inv, m, MAP_IN_MEMORY, MAX_BUF, myToProcess, path_combine_and_normalize(), PLAYER_CHANGER, QUERY_FLAG, ready_map_name(), mapstruct::reset_time, CREMapInformation::setExperience(), start(), and TELEPORTER.
Referenced by process().
void CREMapInformationManager::clearCache | ( | ) |
Definition at line 806 of file CREMapInformationManager.cpp.
References myWorker, and settings.
Referenced by CREMainWindow::onClearCache().
|
signal |
QList< CREMapInformation * > CREMapInformationManager::getAnimationUse | ( | const Animations * | anim | ) |
Definition at line 392 of file CREMapInformationManager.cpp.
References myAnimationUse, myLock, and Animations::name.
QList< CREMapInformation * > CREMapInformationManager::getArchetypeUse | ( | const archetype * | arch | ) |
Definition at line 380 of file CREMapInformationManager.cpp.
References archininventory::arch, myArchetypeUse, and myLock.
QList< CREMapInformation * > CREMapInformationManager::getFaceUse | ( | const Face * | face | ) |
Definition at line 386 of file CREMapInformationManager.cpp.
References myFaceUse, myLock, and Face::name.
QList< CREMapInformation * > CREMapInformationManager::getMapsForQuest | ( | const quest_definition * | quest | ) |
Definition at line 398 of file CREMapInformationManager.cpp.
References myLock, and myQuestUse.
QList< CREMapInformation * > CREMapInformationManager::getMapsForRegion | ( | const QString & | region | ) |
Definition at line 793 of file CREMapInformationManager.cpp.
References guildoracle::list, disinfect::map, and myInformation.
Referenced by RegionWrapper::mapAdded().
|
protected |
Definition at line 709 of file CREMapInformationManager.cpp.
References myInformation, and python_init::path.
Referenced by checkItem(), and process().
|
protected |
Definition at line 404 of file CREMapInformationManager.cpp.
References addAnimationUse(), addArchetypeUse(), addFaceUse(), addHook(), addQuestUse(), animate::anim, archininventory::arch, send::date, animate::event, mad_mage_user::file, MessageManager::findMessage(), say::item, disinfect::map, say::max, diamondslots::message, myInformation, myMessageManager, roll-o-matic::params, python_init::path, settings, diamondslots::x, and diamondslots::y.
Referenced by browseMaps().
|
signal |
|
protected |
Definition at line 193 of file CREMapInformationManager.cpp.
References CREMapInformation::addAccessedFrom(), CREMapInformation::addExitTo(), browsingMap(), calculate_difficulty(), checkItem(), create_pathname(), delete_map(), CREMapInformation::difficulty, CREMapInformation::exitsTo(), CREMapInformation::experience, FOR_MAP_FINISH, FOR_MAP_PREPARE, getOrCreateMapInformation(), CREUtils::lockCrossfireData(), m, MAP_HEIGHT, MAP_IN_MEMORY, MAP_NO_DIFFICULTY, MAP_STYLE, MAP_WIDTH, mapfile_load(), CREMapInformation::mapTime(), MAX_BUF, myCancelled, myExperience, myLock, myScriptManager, myToProcess, python_init::path, path_combine_and_normalize(), ScriptFileManager::removeMap(), CREMapInformation::setBackgroundMusic(), CREMapInformation::setComputedDifficulty(), CREMapInformation::setDifficulty(), CREMapInformation::setMapTime(), CREMapInformation::setName(), CREMapInformation::setRegion(), CREMapInformation::setResetGroup(), CREMapInformation::setShopGreed(), CREMapInformation::setShopMax(), CREMapInformation::setShopMin(), CREMapInformation::setShopRace(), CREMapInformation::shopItems(), diamondslots::x, and diamondslots::y.
QList< RandomMap * > CREMapInformationManager::randomMaps | ( | ) |
Definition at line 813 of file CREMapInformationManager.cpp.
References disinfect::map, maps, and myInformation.
Referenced by RandomMaps::refresh().
|
protected |
Definition at line 823 of file CREMapInformationManager.cpp.
References create_pathname(), MAX_BUF, and myToProcess.
void CREMapInformationManager::start | ( | ) |
Definition at line 86 of file CREMapInformationManager.cpp.
References browseMaps(), and myWorker.
Referenced by checkItem(), and CREMainWindow::CREMainWindow().
|
protected |
Definition at line 584 of file CREMapInformationManager.cpp.
References animate::anim, archininventory::arch, HookInformation::eventName(), mad_mage_user::file, ScriptFile::hooks(), HookInformation::itemName(), disinfect::map, HookInformation::map(), maps, myInformation, myScriptManager, RandomMap::parameters(), roll-o-matic::params, python_init::path, ScriptFile::path(), HookInformation::pluginName(), python_init::scripts, ScriptFileManager::scriptsForMap(), settings, stringbuffer_finish(), write_map_parameters_to_string(), HookInformation::x(), RandomMap::x(), HookInformation::y(), and RandomMap::y().
|
protected |
Definition at line 60 of file CREMapInformationManager.h.
Referenced by addAnimationUse(), and getAnimationUse().
|
protected |
Definition at line 58 of file CREMapInformationManager.h.
Referenced by addArchetypeUse(), browseMaps(), and getArchetypeUse().
|
protected |
Definition at line 65 of file CREMapInformationManager.h.
Referenced by browseMaps(), cancel(), and process().
|
protected |
Definition at line 63 of file CREMapInformationManager.h.
Referenced by browseMaps().
|
protected |
Definition at line 67 of file CREMapInformationManager.h.
Referenced by process().
|
protected |
Definition at line 59 of file CREMapInformationManager.h.
Referenced by addFaceUse(), and getFaceUse().
|
protected |
Definition at line 57 of file CREMapInformationManager.h.
Referenced by allMaps(), browseMaps(), getMapsForRegion(), getOrCreateMapInformation(), loadCache(), randomMaps(), storeCache(), and ~CREMapInformationManager().
|
protected |
Definition at line 66 of file CREMapInformationManager.h.
Referenced by addAnimationUse(), addArchetypeUse(), addFaceUse(), addQuestUse(), allMaps(), getAnimationUse(), getArchetypeUse(), getFaceUse(), getMapsForQuest(), and process().
|
protected |
Definition at line 55 of file CREMapInformationManager.h.
Referenced by checkEvent(), CREMapInformationManager(), and loadCache().
|
protected |
Definition at line 61 of file CREMapInformationManager.h.
Referenced by addQuestUse(), and getMapsForQuest().
|
protected |
Definition at line 56 of file CREMapInformationManager.h.
Referenced by CREMapInformationManager(), process(), and storeCache().
|
protected |
Definition at line 62 of file CREMapInformationManager.h.
Referenced by browseMaps(), checkItem(), process(), and recurseStyleDirectory().
|
protected |
Definition at line 64 of file CREMapInformationManager.h.
Referenced by browseFinished(), cancel(), clearCache(), and start().