![]() |
Crossfire Resources Editor
|
#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 myAnimationUse, and myLock.
Referenced by checkItem(), and loadCache().
|
protected |
Definition at line 719 of file CREMapInformationManager.cpp.
References myArchetypeUse, and myLock.
Referenced by checkItem(), and loadCache().
|
protected |
Definition at line 726 of file CREMapInformationManager.cpp.
References myFaceUse, and myLock.
Referenced by checkItem(), and loadCache().
|
signal |
Referenced by checkEvent(), CREMapInformationManager(), and loadCache().
|
protected |
Definition at line 740 of file CREMapInformationManager.cpp.
References myLock, and myQuestUse.
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 loadCache(), myArchetypeUse, myCancelled, myCurrentMap, myInformation, and myToProcess.
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(), CREMapInformation::addMessage(), CREMapInformation::addQuest(), addQuestUse(), eventNames, MessageManager::findMessage(), MessageFile::maps(), myMessageManager, CREMapInformation::name, and CREMapInformation::path.
Referenced by checkItem().
|
protected |
Definition at line 94 of file CREMapInformationManager.cpp.
References CREMapInformation::addAccessedFrom(), CREMapInformation::addAnimation(), addAnimationUse(), CREMapInformation::addArchetype(), addArchetypeUse(), CREMapInformation::addExitTo(), CREMapInformation::addFace(), addFaceUse(), CREMapInformation::addRandomMap(), checkEvent(), CREMapInformation::experience, getOrCreateMapInformation(), myToProcess, CREMapInformation::setExperience(), and start().
Referenced by process().
void CREMapInformationManager::clearCache | ( | ) |
Definition at line 806 of file CREMapInformationManager.cpp.
References CRESettings::mapCacheDirectory(), and myWorker.
Referenced by CREMainWindow::onClearCache().
|
signal |
QList< CREMapInformation * > CREMapInformationManager::getAnimationUse | ( | const Animations * | anim | ) |
Definition at line 392 of file CREMapInformationManager.cpp.
References myAnimationUse, and myLock.
QList< CREMapInformation * > CREMapInformationManager::getArchetypeUse | ( | const archetype * | arch | ) |
Definition at line 380 of file CREMapInformationManager.cpp.
References myArchetypeUse, and myLock.
QList< CREMapInformation * > CREMapInformationManager::getFaceUse | ( | const Face * | face | ) |
Definition at line 386 of file CREMapInformationManager.cpp.
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 myInformation, and CREMapInformation::region().
Referenced by RegionWrapper::mapBrowsingFinished().
|
protected |
Definition at line 709 of file CREMapInformationManager.cpp.
References myInformation.
Referenced by checkItem(), and process().
|
protected |
Definition at line 404 of file CREMapInformationManager.cpp.
References CREMapInformation::addAccessedFrom(), CREMapInformation::addAnimation(), addAnimationUse(), CREMapInformation::addArchetype(), addArchetypeUse(), CREMapInformation::addExitTo(), CREMapInformation::addFace(), addFaceUse(), addHook(), CREMapInformation::addMessage(), CREMapInformation::addQuest(), addQuestUse(), CREMapInformation::addRandomMap(), MessageManager::findMessage(), CRESettings::mapCacheDirectory(), MessageFile::maps(), myInformation, myMessageManager, CREMapInformation::setBackgroundMusic(), CREMapInformation::setComputedDifficulty(), CREMapInformation::setDifficulty(), CREMapInformation::setExperience(), CREMapInformation::setMapTime(), CREMapInformation::setName(), CREMapInformation::setPath(), CREMapInformation::setRegion(), CREMapInformation::setResetGroup(), CREMapInformation::setShopGreed(), CREMapInformation::setShopMax(), CREMapInformation::setShopMin(), CREMapInformation::setShopRace(), and CREMapInformation::shopItems().
Referenced by browseMaps().
|
signal |
|
protected |
Definition at line 193 of file CREMapInformationManager.cpp.
References CREMapInformation::addAccessedFrom(), CREMapInformation::addExitTo(), browsingMap(), checkItem(), CREMapInformation::difficulty, CREMapInformation::exitsTo(), CREMapInformation::experience, getOrCreateMapInformation(), CREUtils::lockCrossfireData(), CREMapInformation::mapTime(), myCancelled, myExperience, myLock, myScriptManager, myToProcess, ScriptFileManager::removeMap(), CREMapInformation::setBackgroundMusic(), CREMapInformation::setComputedDifficulty(), CREMapInformation::setDifficulty(), CREMapInformation::setMapTime(), CREMapInformation::setName(), CREMapInformation::setRegion(), CREMapInformation::setResetGroup(), CREMapInformation::setShopGreed(), CREMapInformation::setShopMax(), CREMapInformation::setShopMin(), CREMapInformation::setShopRace(), and CREMapInformation::shopItems().
QList< RandomMap * > CREMapInformationManager::randomMaps | ( | ) |
Definition at line 813 of file CREMapInformationManager.cpp.
References myInformation, and CREMapInformation::randomMaps().
Referenced by RandomMaps::refresh().
|
protected |
Definition at line 823 of file CREMapInformationManager.cpp.
References 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 CREMapInformation::accessedFrom(), CREMapInformation::animations(), CREMapInformation::archetypes(), CREMapInformation::backgroundMusic, CREMapInformation::computedDifficulty, CREMapInformation::difficulty, HookInformation::eventName(), CREMapInformation::exitsTo(), CREMapInformation::experience, CREMapInformation::faces(), ScriptFile::hooks(), HookInformation::itemName(), HookInformation::map(), CRESettings::mapCacheDirectory(), CREMapInformation::mapTime(), CREMapInformation::messages(), myInformation, myScriptManager, CREMapInformation::name, RandomMap::parameters(), CREMapInformation::path, ScriptFile::path(), HookInformation::pluginName(), CREMapInformation::quests(), CREMapInformation::randomMaps(), CREMapInformation::region(), CREMapInformation::resetGroup, ScriptFileManager::scriptsForMap(), CREMapInformation::shopGreed, CREMapInformation::shopItems(), CREMapInformation::shopMax, CREMapInformation::shopMin, CREMapInformation::shopRace, 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().