Crossfire Server, Trunk  R20513
Public Member Functions | Private Member Functions | Private Attributes
QuestManager Class Reference

#include <QuestManager.h>

Collaboration diagram for QuestManager:
Collaboration graph

Public Member Functions

QuestfindByCode (const QString &code)
 
QuestgetByCode (const QString &code)
 
QStringList getFiles () const
 
QString getQuestFile (Quest *quest) const
 
void loadQuests ()
 
 QuestManager ()
 
QList< const Quest * > quests () const
 
QList< Quest * > & quests ()
 
void saveQuests ()
 
void setQuestFile (Quest *quest, const QString &file)
 
virtual ~QuestManager ()
 

Private Member Functions

void addQuest (const QString &filename, Quest *quest)
 
void loadQuestFile (const QString &filename)
 
void saveQuestFile (const QString &filename)
 

Private Attributes

QHash< QString, QList< Quest * > * > myFiles
 
QHash< QString, QStringList > myIncludes
 
QList< Quest * > myQuests
 

Detailed Description

Definition at line 8 of file QuestManager.h.

Constructor & Destructor Documentation

QuestManager::QuestManager ( )

Definition at line 9 of file QuestManager.cpp.

QuestManager::~QuestManager ( )
virtual

Definition at line 13 of file QuestManager.cpp.

References myFiles, and myQuests.

Member Function Documentation

void QuestManager::addQuest ( const QString &  filename,
Quest quest 
)
private

Definition at line 219 of file QuestManager.cpp.

References myFiles.

Referenced by loadQuestFile(), and setQuestFile().

Here is the caller graph for this function:

Quest * QuestManager::findByCode ( const QString &  code)

Definition at line 341 of file QuestManager.cpp.

References Quest::code(), and myQuests.

Referenced by CREMapInformationManager::checkEvent(), CREQuestPanel::commitData(), CREMapInformationManager::loadCache(), loadQuestFile(), and CREMainWindow::onReportQuests().

Here is the call graph for this function:

Here is the caller graph for this function:

Quest * QuestManager::getByCode ( const QString &  code)

Definition at line 196 of file QuestManager.cpp.

References Quest::code(), and myQuests.

Referenced by CREResourcesWindow::fillQuests(), and loadQuestFile().

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList QuestManager::getFiles ( ) const

Definition at line 317 of file QuestManager.cpp.

References myFiles.

Referenced by CREQuestPanel::CREQuestPanel().

Here is the caller graph for this function:

QString QuestManager::getQuestFile ( Quest quest) const

Definition at line 322 of file QuestManager.cpp.

References myFiles.

Referenced by CREQuestPanel::commitData(), CREQuestPanel::setItem(), and setQuestFile().

Here is the caller graph for this function:

void QuestManager::loadQuestFile ( const QString &  filename)
private
void QuestManager::loadQuests ( )

Definition at line 19 of file QuestManager.cpp.

References loadQuestFile(), myQuests, and Quest::setModified().

Referenced by CREMainWindow::CREMainWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

QList< const Quest * > QuestManager::quests ( ) const
QList< Quest * > & QuestManager::quests ( )

Definition at line 214 of file QuestManager.cpp.

References myQuests.

void QuestManager::saveQuestFile ( const QString &  filename)
private
void QuestManager::saveQuests ( )

Definition at line 226 of file QuestManager.cpp.

References myFiles, and saveQuestFile().

Referenced by CREMainWindow::onSaveQuests().

Here is the call graph for this function:

Here is the caller graph for this function:

void QuestManager::setQuestFile ( Quest quest,
const QString &  file 
)

Definition at line 332 of file QuestManager.cpp.

References addQuest(), and getQuestFile().

Referenced by CREQuestPanel::commitData().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

QHash<QString, QList<Quest*>*> QuestManager::myFiles
private
QHash<QString, QStringList> QuestManager::myIncludes
private

Definition at line 27 of file QuestManager.h.

Referenced by loadQuestFile(), and saveQuestFile().

QList<Quest*> QuestManager::myQuests
private

Definition at line 25 of file QuestManager.h.

Referenced by findByCode(), getByCode(), loadQuestFile(), loadQuests(), quests(), and ~QuestManager().


The documentation for this class was generated from the following files: