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

#include <Quest.h>

Inheritance diagram for Quest:
Inheritance graph
Collaboration diagram for Quest:
Collaboration graph

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.

Quest::~Quest ( )
virtual

Definition at line 58 of file Quest.cpp.

Member Function Documentation

bool Quest::canRestart ( ) const

Definition at line 125 of file Quest.cpp.

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

Here is the caller graph for this function:

const QString & Quest::code ( ) const
const QString & Quest::description ( ) const

Definition at line 112 of file Quest.cpp.

References QuestStep::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.

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

Here is the caller graph for this function:

int Quest::faceNumber ( ) const

Definition at line 102 of file Quest.cpp.

Referenced by CREUtils::questNode().

Here is the caller graph for this function:

bool Quest::isModified ( ) const

Definition at line 151 of file Quest.cpp.

Referenced by QuestManager::saveQuestFile().

Here is the caller graph for this function:

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

Definition at line 180 of file Quest.cpp.

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.

void Quest::modified ( )
signal
const Quest * Quest::parent ( ) const

Definition at line 166 of file Quest.cpp.

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

Here is the caller graph for this function:

void Quest::setCode ( const QString &  code)

Definition at line 68 of file Quest.cpp.

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

Here is the caller graph for this function:

void Quest::setDescription ( const QString &  description)

Definition at line 117 of file Quest.cpp.

References QuestStep::myDescription.

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

Here is the caller graph for this function:

void Quest::setFace ( const QString &  face)

Definition at line 94 of file Quest.cpp.

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

Here is the caller graph for this function:

void Quest::setFaceNumber ( int  face)

Definition at line 107 of file Quest.cpp.

Referenced by CREResourcesWindow::fillQuests().

Here is the caller graph for this function:

void Quest::setModified ( bool  modified)

Definition at line 155 of file Quest.cpp.

Referenced by CREQuestItemModel::addStep(), QuestManager::loadQuests(), 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.

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

Here is the caller graph for this function:

void Quest::setRestart ( bool  restart)

Definition at line 130 of file Quest.cpp.

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

Here is the caller graph for this function:

void Quest::setTitle ( const QString &  title)

Definition at line 81 of file Quest.cpp.

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

Here is the caller graph for this function:

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

Definition at line 146 of file Quest.cpp.

const QString & Quest::title ( ) const

Definition at line 76 of file Quest.cpp.

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.

QString Quest::myCode
private

Definition at line 66 of file Quest.h.

QString Quest::myDescription
private

Definition at line 71 of file Quest.h.

QString Quest::myFace
private

Definition at line 68 of file Quest.h.

int Quest::myFaceNumber
private

Definition at line 70 of file Quest.h.

QList<CREMapInformation*> Quest::myMaps
private

Definition at line 76 of file Quest.h.

bool Quest::myModified
private

Definition at line 74 of file Quest.h.

Quest* Quest::myParent
private

Definition at line 75 of file Quest.h.

QList<QuestStep*> Quest::mySteps
private

Definition at line 73 of file Quest.h.

QString Quest::myTitle
private

Definition at line 67 of file Quest.h.


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