Crossfire Server, Trunk  R20513
Public Member Functions | Protected Member Functions | Protected Attributes | Properties
CREMapInformation Class Reference

#include <CREMapInformation.h>

Inheritance diagram for CREMapInformation:
Inheritance graph
Collaboration diagram for CREMapInformation:
Collaboration graph

Public Member Functions

QStringList accessedFrom () const
 
void addAccessedFrom (const QString &path)
 
void addArchetype (const QString &archetype)
 
void addExitTo (const QString &path)
 
void addMessage (const QString &message)
 
void addQuest (const QString &quest)
 
void addRandomMap (CRERandomMap *map)
 
QStringList archetypes () const
 
CREMapInformationclone () const
 
 CREMapInformation ()
 
 CREMapInformation (const QString &path)
 
const QString & displayName () const
 
QStringList exitsTo () const
 
qint64 experience () const
 
int level () const
 
const QDateTime & mapTime () const
 
QStringList messages () const
 
const QString & name () const
 
const QString & path () const
 
QStringList quests () const
 
QList< CRERandomMap * > randomMaps () const
 
const QString & region () const
 
void setExperience (qint64 experience)
 
void setLevel (int level)
 
void setMapTime (const QDateTime &date)
 
void setName (const QString &name)
 
void setPath (const QString &path)
 
void setRegion (const QString &region)
 
void setShopGreed (double greed)
 
void setShopMax (quint64 max)
 
void setShopMin (quint64 min)
 
void setShopRace (const QString &race)
 
double shopGreed () const
 
QHash< QString, int > & shopItems ()
 
const QHash< QString, int > & shopItems () const
 
quint64 shopMax () const
 
quint64 shopMin () const
 
const QString & shopRace () const
 

Protected Member Functions

void copy (const CREMapInformation &other)
 

Protected Attributes

QStringList myAccessedFrom
 
QStringList myArchetypes
 
QStringList myExitsTo
 
qint64 myExperience
 
int myLevel
 
QDateTime myMapTime
 
QStringList myMessages
 
QString myName
 
QString myPath
 
QStringList myQuests
 
QList< CRERandomMap * > myRandomMaps
 
QString myRegion
 
double myShopGreed
 
QHash< QString, int > myShopItems
 
quint64 myShopMax
 
quint64 myShopMin
 
QString myShopRace
 

Properties

qint64 experience
 
int level
 
QString name
 
QString path
 

Detailed Description

Definition at line 12 of file CREMapInformation.h.

Constructor & Destructor Documentation

CREMapInformation::CREMapInformation ( )

Definition at line 3 of file CREMapInformation.cpp.

References myExperience, myLevel, myShopGreed, myShopMax, and myShopMin.

Referenced by clone().

Here is the caller graph for this function:

CREMapInformation::CREMapInformation ( const QString &  path)

Definition at line 12 of file CREMapInformation.cpp.

References myExperience, myLevel, myPath, myShopGreed, myShopMax, myShopMin, and path().

Here is the call graph for this function:

Member Function Documentation

QStringList CREMapInformation::accessedFrom ( ) const

Definition at line 107 of file CREMapInformation.cpp.

References myAccessedFrom.

Referenced by copy(), CREMapPanel::setItem(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

void CREMapInformation::addAccessedFrom ( const QString &  path)

Definition at line 112 of file CREMapInformation.cpp.

References level(), myAccessedFrom, and myLevel.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::addArchetype ( const QString &  archetype)

Definition at line 80 of file CREMapInformation.cpp.

References myArchetypes.

Referenced by CREMapInformationManager::checkInventory(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::addExitTo ( const QString &  path)

Definition at line 101 of file CREMapInformation.cpp.

References myExitsTo.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::addMessage ( const QString &  message)

Definition at line 152 of file CREMapInformation.cpp.

References myMessages.

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

Here is the caller graph for this function:

void CREMapInformation::addQuest ( const QString &  quest)

Definition at line 163 of file CREMapInformation.cpp.

References myQuests.

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

Here is the caller graph for this function:

void CREMapInformation::addRandomMap ( CRERandomMap map)

Definition at line 224 of file CREMapInformation.cpp.

References myRandomMaps.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

QStringList CREMapInformation::archetypes ( ) const

Definition at line 75 of file CREMapInformation.cpp.

References myArchetypes.

Referenced by copy(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

CREMapInformation * CREMapInformation::clone ( ) const

Definition at line 22 of file CREMapInformation.cpp.

References copy(), and CREMapInformation().

Referenced by CREResourcesWindow::fillMaps().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::copy ( const CREMapInformation other)
protected
Todo:
clone random maps?

Definition at line 29 of file CREMapInformation.cpp.

References accessedFrom(), archetypes(), exitsTo(), experience, level, mapTime(), myAccessedFrom, myArchetypes, myExitsTo, myShopGreed, myShopItems, myShopMax, myShopMin, myShopRace, name, path, region(), setExperience(), setLevel(), setMapTime(), setName(), setPath(), setRegion(), shopGreed(), shopItems(), shopMax(), shopMin(), and shopRace().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

const QString & CREMapInformation::displayName ( ) const

Definition at line 48 of file CREMapInformation.cpp.

References myName, myPath, and path().

Referenced by CRERandomMapPanel::setItem(), sortMapInformation(), and sortRandomMap().

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList CREMapInformation::exitsTo ( ) const

Definition at line 96 of file CREMapInformation.cpp.

References myExitsTo.

Referenced by copy(), CREMapInformationManager::process(), CREMapPanel::setItem(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

qint64 CREMapInformation::experience ( ) const

Referenced by setExperience(), and setLevel().

Here is the caller graph for this function:

int CREMapInformation::level ( ) const

Referenced by addAccessedFrom(), and setLevel().

Here is the caller graph for this function:

const QDateTime & CREMapInformation::mapTime ( ) const

Definition at line 86 of file CREMapInformation.cpp.

References myMapTime.

Referenced by copy(), CREMapInformationManager::process(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

QStringList CREMapInformation::messages ( ) const

Definition at line 147 of file CREMapInformation.cpp.

References myMessages.

Referenced by CREMapInformationManager::storeCache().

Here is the caller graph for this function:

const QString& CREMapInformation::name ( ) const

Referenced by setName(), and setPath().

Here is the caller graph for this function:

const QString& CREMapInformation::path ( ) const

Referenced by CREMapInformation(), displayName(), and setPath().

Here is the caller graph for this function:

QStringList CREMapInformation::quests ( ) const

Definition at line 158 of file CREMapInformation.cpp.

References myQuests.

Referenced by CREMapInformationManager::storeCache().

Here is the caller graph for this function:

QList< CRERandomMap * > CREMapInformation::randomMaps ( ) const

Definition at line 219 of file CREMapInformation.cpp.

References myRandomMaps.

Referenced by CREMapInformationManager::randomMaps(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

const QString & CREMapInformation::region ( ) const

Definition at line 138 of file CREMapInformation.cpp.

References myRegion.

Referenced by copy(), CREMapInformationManager::getMapsForRegion(), setRegion(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

void CREMapInformation::setExperience ( qint64  experience)

Definition at line 133 of file CREMapInformation.cpp.

References experience(), and myExperience.

Referenced by copy(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::setLevel ( int  level)

Definition at line 123 of file CREMapInformation.cpp.

References experience(), level(), myExperience, and myLevel.

Referenced by copy(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::setMapTime ( const QDateTime &  date)

Definition at line 91 of file CREMapInformation.cpp.

References myMapTime.

Referenced by copy(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::setName ( const QString &  name)

Definition at line 70 of file CREMapInformation.cpp.

References myName, and name().

Referenced by copy(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::setPath ( const QString &  path)

Definition at line 60 of file CREMapInformation.cpp.

References myName, myPath, name(), and path().

Referenced by copy(), and CREMapInformationManager::loadCache().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::setRegion ( const QString &  region)

Definition at line 142 of file CREMapInformation.cpp.

References myRegion, and region().

Referenced by copy(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMapInformation::setShopGreed ( double  greed)

Definition at line 184 of file CREMapInformation.cpp.

References myShopGreed.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::setShopMax ( quint64  max)

Definition at line 214 of file CREMapInformation.cpp.

References myShopMax.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::setShopMin ( quint64  min)

Definition at line 204 of file CREMapInformation.cpp.

References myShopMin.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

void CREMapInformation::setShopRace ( const QString &  race)

Definition at line 194 of file CREMapInformation.cpp.

References myShopRace.

Referenced by CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

Here is the caller graph for this function:

double CREMapInformation::shopGreed ( ) const

Definition at line 179 of file CREMapInformation.cpp.

References myShopGreed.

Referenced by buildShopReport(), copy(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

QHash< QString, int > & CREMapInformation::shopItems ( )
const QHash< QString, int > & CREMapInformation::shopItems ( ) const

Definition at line 174 of file CREMapInformation.cpp.

References myShopItems.

quint64 CREMapInformation::shopMax ( ) const

Definition at line 209 of file CREMapInformation.cpp.

References myShopMax.

Referenced by buildShopReport(), copy(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

quint64 CREMapInformation::shopMin ( ) const

Definition at line 199 of file CREMapInformation.cpp.

References myShopMin.

Referenced by buildShopReport(), copy(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

const QString & CREMapInformation::shopRace ( ) const

Definition at line 189 of file CREMapInformation.cpp.

References myShopRace.

Referenced by buildShopReport(), copy(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

Field Documentation

QStringList CREMapInformation::myAccessedFrom
protected

Definition at line 83 of file CREMapInformation.h.

Referenced by accessedFrom(), addAccessedFrom(), and copy().

QStringList CREMapInformation::myArchetypes
protected

Definition at line 80 of file CREMapInformation.h.

Referenced by addArchetype(), archetypes(), and copy().

QStringList CREMapInformation::myExitsTo
protected

Definition at line 82 of file CREMapInformation.h.

Referenced by addExitTo(), copy(), and exitsTo().

qint64 CREMapInformation::myExperience
protected

Definition at line 85 of file CREMapInformation.h.

Referenced by CREMapInformation(), setExperience(), and setLevel().

int CREMapInformation::myLevel
protected

Definition at line 84 of file CREMapInformation.h.

Referenced by addAccessedFrom(), CREMapInformation(), and setLevel().

QDateTime CREMapInformation::myMapTime
protected

Definition at line 81 of file CREMapInformation.h.

Referenced by mapTime(), and setMapTime().

QStringList CREMapInformation::myMessages
protected

Definition at line 87 of file CREMapInformation.h.

Referenced by addMessage(), and messages().

QString CREMapInformation::myName
protected

Definition at line 79 of file CREMapInformation.h.

Referenced by displayName(), setName(), and setPath().

QString CREMapInformation::myPath
protected

Definition at line 78 of file CREMapInformation.h.

Referenced by CREMapInformation(), displayName(), and setPath().

QStringList CREMapInformation::myQuests
protected

Definition at line 88 of file CREMapInformation.h.

Referenced by addQuest(), and quests().

QList<CRERandomMap*> CREMapInformation::myRandomMaps
protected

Definition at line 93 of file CREMapInformation.h.

Referenced by addRandomMap(), and randomMaps().

QString CREMapInformation::myRegion
protected

Definition at line 86 of file CREMapInformation.h.

Referenced by region(), and setRegion().

double CREMapInformation::myShopGreed
protected

Definition at line 90 of file CREMapInformation.h.

Referenced by copy(), CREMapInformation(), setShopGreed(), and shopGreed().

QHash<QString, int> CREMapInformation::myShopItems
protected

Definition at line 89 of file CREMapInformation.h.

Referenced by copy(), and shopItems().

quint64 CREMapInformation::myShopMax
protected

Definition at line 92 of file CREMapInformation.h.

Referenced by copy(), CREMapInformation(), setShopMax(), and shopMax().

quint64 CREMapInformation::myShopMin
protected

Definition at line 92 of file CREMapInformation.h.

Referenced by copy(), CREMapInformation(), setShopMin(), and shopMin().

QString CREMapInformation::myShopRace
protected

Definition at line 91 of file CREMapInformation.h.

Referenced by copy(), setShopRace(), and shopRace().

Property Documentation

qint64 CREMapInformation::experience
read
int CREMapInformation::level
read

Definition at line 18 of file CREMapInformation.h.

Referenced by copy(), and CREMapInformationManager::storeCache().

const QString & CREMapInformation::name
read
const QString & CREMapInformation::path
read

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