Crossfire Server, Trunk  R20608
Quest Class Reference

#include <Quest.h>

+ Inheritance diagram for Quest:
+ Collaboration diagram for Quest:

Signals

void modified ()
 

Public Member Functions

bool canRestart () const
 
const QString & code () const
 
const QString & description () const
 
const QString & face () const
 
int faceNumber () const
 
bool isModified () const
 
QList< CREMapInformation * > & maps ()
 
const Questparent () const
 
 Quest ()
 
void setCode (const QString &code)
 
void setDescription (const QString &description)
 
void setFace (const QString &face)
 
void setFaceNumber (int face)
 
void setModified (bool modified)
 
void setParent (Quest *parent)
 
void setRestart (bool restart)
 
void setTitle (const QString &title)
 
QList< const QuestStep * > steps () const
 
QList< QuestStep * > & steps ()
 
const QString & title () const
 
virtual ~Quest ()
 

Private Member Functions

void markModified ()
 

Private Attributes

bool myCanRestart
 
QString myCode
 
QString myDescription
 
QString myFace
 
int myFaceNumber
 
QList< CREMapInformation * > myMaps
 
bool myModified
 
QuestmyParent
 
QList< QuestStep * > mySteps
 
QString myTitle
 

Detailed Description

Definition at line 32 of file Quest.h.

Constructor & Destructor Documentation

Quest::Quest ( )

Definition at line 50 of file Quest.cpp.

References myCanRestart, myFaceNumber, myModified, and myParent.

Quest::~Quest ( )
virtual

Definition at line 58 of file Quest.cpp.

References mySteps.

Member Function Documentation

bool Quest::canRestart ( ) const

Definition at line 125 of file Quest.cpp.

References myCanRestart.

Referenced by QuestManager::saveQuestFile(), and CREQuestPanel::setItem().

+ Here is the caller graph for this function:

const QString & Quest::description ( ) const

Definition at line 112 of file Quest.cpp.

References myDescription.

Referenced by QuestManager::saveQuestFile(), and CREQuestPanel::setItem().

+ Here is the caller graph for this function:

const QString & Quest::face ( ) const

Definition at line 89 of file Quest.cpp.

References myFace.

Referenced by CREResourcesWindow::fillQuests(), CRETreeItemQuest::questModified(), QuestManager::saveQuestFile(), setFace(), setFaceNumber(), and CREQuestPanel::setItem().

+ Here is the caller graph for this function:

int Quest::faceNumber ( ) const

Definition at line 102 of file Quest.cpp.

References myFaceNumber.

Referenced by CREUtils::questNode().

+ Here is the caller graph for this function:

bool Quest::isModified ( ) const

Definition at line 151 of file Quest.cpp.

References myModified.

Referenced by QuestManager::saveQuestFile().

+ Here is the caller graph for this function:

QList< CREMapInformation * > & Quest::maps ( )

Definition at line 180 of file Quest.cpp.

References myMaps.

Referenced by CREMapInformationManager::checkEvent(), CREMapInformationManager::loadCache(), and CREQuestPanel::setItem().

+ Here is the caller graph for this function:

void Quest::markModified ( )
private

Definition at line 160 of file Quest.cpp.

References modified(), and setModified().

Referenced by setCode(), setDescription(), setFace(), setParent(), setRestart(), and setTitle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::modified ( )
signal

Referenced by markModified(), and setModified().

+ Here is the caller graph for this function:

const Quest * Quest::parent ( ) const

Definition at line 166 of file Quest.cpp.

References myParent.

Referenced by QuestManager::saveQuestFile(), CREQuestPanel::setItem(), and setParent().

+ Here is the caller graph for this function:

void Quest::setCode ( const QString &  code)

Definition at line 68 of file Quest.cpp.

References code(), markModified(), and myCode.

Referenced by CREResourcesWindow::addQuest(), CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setDescription ( const QString &  description)

Definition at line 117 of file Quest.cpp.

References markModified(), and myDescription.

Referenced by CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setFace ( const QString &  face)

Definition at line 94 of file Quest.cpp.

References face(), markModified(), and myFace.

Referenced by CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setFaceNumber ( int  face)

Definition at line 107 of file Quest.cpp.

References face(), and myFaceNumber.

Referenced by CREResourcesWindow::fillQuests().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setModified ( bool  modified)

Definition at line 155 of file Quest.cpp.

References modified(), and myModified.

Referenced by CREQuestItemModel::addStep(), QuestManager::loadQuests(), markModified(), CREQuestItemModel::moveDown(), CREQuestItemModel::moveUp(), and CREQuestItemModel::setData().

+ Here is the caller graph for this function:

void Quest::setParent ( Quest parent)

Definition at line 171 of file Quest.cpp.

References markModified(), myParent, and parent().

Referenced by CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setRestart ( bool  restart)

Definition at line 130 of file Quest.cpp.

References markModified(), and myCanRestart.

Referenced by CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Quest::setTitle ( const QString &  title)

Definition at line 81 of file Quest.cpp.

References markModified(), and myTitle.

Referenced by CREQuestPanel::commitData(), and QuestManager::loadQuestFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QList< QuestStep * > & Quest::steps ( )

Definition at line 146 of file Quest.cpp.

References mySteps.

const QString & Quest::title ( ) const

Definition at line 76 of file Quest.cpp.

References myTitle.

Referenced by CRESubItemQuest::CRESubItemQuest(), CREMainWindow::onReportQuests(), QuestManager::saveQuestFile(), and CREQuestPanel::setItem().

+ Here is the caller graph for this function:

Field Documentation

bool Quest::myCanRestart
private

Definition at line 72 of file Quest.h.

Referenced by canRestart(), Quest(), and setRestart().

QString Quest::myCode
private

Definition at line 66 of file Quest.h.

Referenced by code(), and setCode().

QString Quest::myDescription
private

Definition at line 71 of file Quest.h.

Referenced by description(), and setDescription().

QString Quest::myFace
private

Definition at line 68 of file Quest.h.

Referenced by face(), and setFace().

int Quest::myFaceNumber
private

Definition at line 70 of file Quest.h.

Referenced by faceNumber(), Quest(), and setFaceNumber().

QList<CREMapInformation*> Quest::myMaps
private

Definition at line 76 of file Quest.h.

Referenced by maps().

bool Quest::myModified
private

Definition at line 74 of file Quest.h.

Referenced by isModified(), Quest(), and setModified().

Quest* Quest::myParent
private

Definition at line 75 of file Quest.h.

Referenced by parent(), Quest(), and setParent().

QList<QuestStep*> Quest::mySteps
private

Definition at line 73 of file Quest.h.

Referenced by steps(), and ~Quest().

QString Quest::myTitle
private

Definition at line 67 of file Quest.h.

Referenced by setTitle(), and title().


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