Crossfire Server, Trunk
|
#include <CREMapInformation.h>
Public Member Functions | |
QStringList | accessedFrom () const |
void | addAccessedFrom (const QString &path) |
void | addAnimation (const QString &anim) |
void | addArchetype (const QString &archetype) |
void | addExitTo (const QString &path) |
void | addFace (const QString &face) |
void | addMessage (const QString &message) |
void | addQuest (const QString &quest) |
void | addRandomMap (RandomMap *map) |
QStringList | animations () const |
QStringList | archetypes () const |
const QString & | backgroundMusic () |
int | computedDifficulty () const |
CREMapInformation () | |
CREMapInformation (const QString &path) | |
int | difficulty () const |
virtual QString | displayName () const override |
QStringList | exitsTo () const |
qint64 | experience () const |
QStringList | faces () const |
const QDateTime & | mapTime () const |
QStringList | messages () const |
const QString & | name () const |
const QString & | path () const |
QStringList | quests () const |
QList< RandomMap * > | randomMaps () const |
const QString & | region () const |
const QString & | resetGroup () const |
void | setBackgroundMusic (const QString &music) |
void | setComputedDifficulty (int computed) |
void | setDifficulty (int difficulty) |
void | setExperience (qint64 experience) |
void | setMapTime (const QDateTime &date) |
void | setName (const QString &name) |
void | setPath (const QString &path) |
void | setRegion (const QString ®ion) |
void | setResetGroup (const QString &resetGroup) |
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 |
virtual PossibleUse | uses (const AssetWrapper *asset, std::string &) const override |
virtual | ~CREMapInformation () |
Public Member Functions inherited from AssetWrapper | |
AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
virtual bool | canDrag () const |
virtual bool | canDrop (const QMimeData *, int) const |
virtual AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QIcon | displayIcon () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual | ~AssetWrapper () override |
Protected Attributes | |
QStringList | myAccessedFrom |
QSet< QString > | myAnimations |
QStringList | myArchetypes |
QString | myBackgroundMusic |
int | myComputedDifficulty |
int | myDifficulty |
QStringList | myExitsTo |
qint64 | myExperience |
QSet< QString > | myFaces |
QDateTime | myMapTime |
QStringList | myMessages |
QString | myName |
QString | myPath |
QStringList | myQuests |
QList< RandomMap * > | myRandomMaps |
QString | myRegion |
QString | myResetGroup |
double | myShopGreed |
QHash< QString, int > | myShopItems |
quint64 | myShopMax |
quint64 | myShopMin |
QString | myShopRace |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
Properties | |
QString | backgroundMusic |
int | computedDifficulty |
int | difficulty |
qint64 | experience |
QString | name |
QString | path |
QString | resetGroup |
double | shopGreed |
quint64 | shopMax |
quint64 | shopMin |
QString | shopRace |
Properties inherited from AssetWrapper | |
QString | displayName |
AssetWrapper | self |
Additional Inherited Members | |
Public Types inherited from AssetWrapper | |
enum | ChangeType { AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove, AfterChildRemove, BeforeLayoutChange, AfterLayoutChange } |
enum | PossibleUse { Uses, ChildrenMayUse, DoesntUse } |
Public Slots inherited from AssetWrapper | |
virtual void | removeChild (AssetWrapper *) |
Signals inherited from AssetWrapper | |
void | dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra) |
void | modified () |
Static Public Member Functions inherited from AssetWrapper | |
static bool | compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right) |
Static Public Attributes inherited from AssetWrapper | |
static const char * | tipProperty = "_cre_internal" |
Protected Member Functions inherited from AssetWrapper | |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Definition at line 27 of file CREMapInformation.h.
CREMapInformation::CREMapInformation | ( | ) |
Definition at line 21 of file CREMapInformation.cpp.
References myComputedDifficulty, myDifficulty, myExperience, myShopGreed, myShopMax, and myShopMin.
CREMapInformation::CREMapInformation | ( | const QString & | path | ) |
Definition at line 31 of file CREMapInformation.cpp.
References myComputedDifficulty, myDifficulty, myExperience, myPath, myShopGreed, myShopMax, myShopMin, and path.
|
virtual |
Definition at line 42 of file CREMapInformation.cpp.
References myRandomMaps.
QStringList CREMapInformation::accessedFrom | ( | ) | const |
Definition at line 146 of file CREMapInformation.cpp.
References myAccessedFrom.
Referenced by CREMapPanel::updateItem().
void CREMapInformation::addAccessedFrom | ( | const QString & | path | ) |
Definition at line 151 of file CREMapInformation.cpp.
References myAccessedFrom, and path.
Referenced by CREMapInformationManager::checkItem(), and CREMapInformationManager::process().
void CREMapInformation::addAnimation | ( | const QString & | anim | ) |
Definition at line 120 of file CREMapInformation.cpp.
References animate::anim, and myAnimations.
Referenced by CREMapInformationManager::checkItem().
void CREMapInformation::addArchetype | ( | const QString & | archetype | ) |
Definition at line 99 of file CREMapInformation.cpp.
References myArchetypes.
Referenced by CREMapInformationManager::checkItem().
void CREMapInformation::addExitTo | ( | const QString & | path | ) |
Definition at line 140 of file CREMapInformation.cpp.
References myExitsTo, and path.
Referenced by CREMapInformationManager::checkItem(), and CREMapInformationManager::process().
void CREMapInformation::addFace | ( | const QString & | face | ) |
Definition at line 110 of file CREMapInformation.cpp.
References myFaces.
Referenced by CREMapInformationManager::checkItem().
void CREMapInformation::addMessage | ( | const QString & | message | ) |
Definition at line 201 of file CREMapInformation.cpp.
References diamondslots::message, and myMessages.
void CREMapInformation::addQuest | ( | const QString & | quest | ) |
Definition at line 212 of file CREMapInformation.cpp.
References myQuests.
void CREMapInformation::addRandomMap | ( | RandomMap * | map | ) |
Definition at line 273 of file CREMapInformation.cpp.
References disinfect::map, and myRandomMaps.
Referenced by CREMapInformationManager::checkItem().
QStringList CREMapInformation::animations | ( | ) | const |
Definition at line 115 of file CREMapInformation.cpp.
References myAnimations.
QStringList CREMapInformation::archetypes | ( | ) | const |
Definition at line 94 of file CREMapInformation.cpp.
References myArchetypes.
const QString& CREMapInformation::backgroundMusic | ( | ) |
int CREMapInformation::computedDifficulty | ( | ) | const |
int CREMapInformation::difficulty | ( | ) | const |
|
overridevirtual |
Implements AssetWrapper.
Definition at line 47 of file CREMapInformation.cpp.
References myName, and myPath.
Referenced by CRERandomMapPanel::updateItem().
QStringList CREMapInformation::exitsTo | ( | ) | const |
Definition at line 135 of file CREMapInformation.cpp.
References myExitsTo.
Referenced by CREMapInformationManager::process(), and CREMapPanel::updateItem().
qint64 CREMapInformation::experience | ( | ) | const |
QStringList CREMapInformation::faces | ( | ) | const |
Definition at line 105 of file CREMapInformation.cpp.
References myFaces.
const QDateTime & CREMapInformation::mapTime | ( | ) | const |
Definition at line 125 of file CREMapInformation.cpp.
References myMapTime.
Referenced by CREMapInformationManager::process().
QStringList CREMapInformation::messages | ( | ) | const |
Definition at line 196 of file CREMapInformation.cpp.
References myMessages.
const QString& CREMapInformation::name | ( | ) | const |
const QString& CREMapInformation::path | ( | ) | const |
QStringList CREMapInformation::quests | ( | ) | const |
Definition at line 207 of file CREMapInformation.cpp.
References myQuests.
QList< RandomMap * > CREMapInformation::randomMaps | ( | ) | const |
Definition at line 268 of file CREMapInformation.cpp.
References myRandomMaps.
const QString & CREMapInformation::region | ( | ) | const |
Definition at line 187 of file CREMapInformation.cpp.
References myRegion.
Referenced by setRegion().
const QString& CREMapInformation::resetGroup | ( | ) | const |
void CREMapInformation::setBackgroundMusic | ( | const QString & | music | ) |
Definition at line 79 of file CREMapInformation.cpp.
References myBackgroundMusic.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setComputedDifficulty | ( | int | computed | ) |
Definition at line 172 of file CREMapInformation.cpp.
References computedDifficulty, and myComputedDifficulty.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setDifficulty | ( | int | difficulty | ) |
Definition at line 162 of file CREMapInformation.cpp.
References difficulty, and myDifficulty.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setExperience | ( | qint64 | experience | ) |
Definition at line 182 of file CREMapInformation.cpp.
References experience, and myExperience.
Referenced by CREMapInformationManager::checkItem().
void CREMapInformation::setMapTime | ( | const QDateTime & | date | ) |
Definition at line 130 of file CREMapInformation.cpp.
References send::date, and myMapTime.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setName | ( | const QString & | name | ) |
Definition at line 69 of file CREMapInformation.cpp.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setPath | ( | const QString & | path | ) |
Definition at line 59 of file CREMapInformation.cpp.
void CREMapInformation::setRegion | ( | const QString & | region | ) |
Definition at line 191 of file CREMapInformation.cpp.
References myRegion, and region().
Referenced by CREMapInformationManager::process().
void CREMapInformation::setResetGroup | ( | const QString & | resetGroup | ) |
Definition at line 89 of file CREMapInformation.cpp.
References myResetGroup, and resetGroup.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setShopGreed | ( | double | greed | ) |
Definition at line 233 of file CREMapInformation.cpp.
References myShopGreed.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setShopMax | ( | quint64 | max | ) |
Definition at line 263 of file CREMapInformation.cpp.
References say::max, and myShopMax.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setShopMin | ( | quint64 | min | ) |
Definition at line 253 of file CREMapInformation.cpp.
References myShopMin.
Referenced by CREMapInformationManager::process().
void CREMapInformation::setShopRace | ( | const QString & | race | ) |
Definition at line 243 of file CREMapInformation.cpp.
References myShopRace.
Referenced by CREMapInformationManager::process().
double CREMapInformation::shopGreed | ( | ) | const |
const QHash< QString, int > & CREMapInformation::shopItems | ( | ) |
Definition at line 218 of file CREMapInformation.cpp.
References myShopItems.
Referenced by CREMapInformationManager::process().
const QHash<QString, int>& CREMapInformation::shopItems | ( | ) | const |
quint64 CREMapInformation::shopMax | ( | ) | const |
quint64 CREMapInformation::shopMin | ( | ) | const |
const QString& CREMapInformation::shopRace | ( | ) | const |
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 278 of file CREMapInformation.cpp.
References animate::anim, archininventory::arch, AssetWrapper::DoesntUse, ScriptFile::forMap(), disinfect::map, myAnimations, myArchetypes, myFaces, myQuests, myRandomMaps, and AssetWrapper::Uses.
|
protected |
Definition at line 123 of file CREMapInformation.h.
Referenced by accessedFrom(), and addAccessedFrom().
|
protected |
Definition at line 120 of file CREMapInformation.h.
Referenced by addAnimation(), animations(), and uses().
|
protected |
Definition at line 118 of file CREMapInformation.h.
Referenced by addArchetype(), archetypes(), and uses().
|
protected |
Definition at line 135 of file CREMapInformation.h.
Referenced by setBackgroundMusic().
|
protected |
Definition at line 125 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setComputedDifficulty().
|
protected |
Definition at line 124 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setDifficulty().
|
protected |
Definition at line 122 of file CREMapInformation.h.
Referenced by addExitTo(), and exitsTo().
|
protected |
Definition at line 126 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setExperience().
|
protected |
Definition at line 119 of file CREMapInformation.h.
|
protected |
Definition at line 121 of file CREMapInformation.h.
Referenced by mapTime(), and setMapTime().
|
protected |
Definition at line 128 of file CREMapInformation.h.
Referenced by addMessage(), and messages().
|
protected |
Definition at line 117 of file CREMapInformation.h.
Referenced by displayName(), and setName().
|
protected |
Definition at line 116 of file CREMapInformation.h.
Referenced by CREMapInformation(), displayName(), and setPath().
|
protected |
Definition at line 129 of file CREMapInformation.h.
Referenced by addQuest(), quests(), and uses().
|
protected |
Definition at line 134 of file CREMapInformation.h.
Referenced by addRandomMap(), randomMaps(), uses(), and ~CREMapInformation().
|
protected |
Definition at line 127 of file CREMapInformation.h.
Referenced by region(), and setRegion().
|
protected |
Definition at line 136 of file CREMapInformation.h.
Referenced by setResetGroup().
|
protected |
Definition at line 131 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setShopGreed().
|
protected |
Definition at line 130 of file CREMapInformation.h.
Referenced by shopItems().
|
protected |
Definition at line 133 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setShopMax().
|
protected |
Definition at line 133 of file CREMapInformation.h.
Referenced by CREMapInformation(), and setShopMin().
|
protected |
Definition at line 132 of file CREMapInformation.h.
Referenced by setShopRace().
|
read |
Definition at line 37 of file CREMapInformation.h.
Referenced by CREMapPanel::updateItem().
|
read |
Definition at line 34 of file CREMapInformation.h.
Referenced by setComputedDifficulty().
|
read |
Definition at line 33 of file CREMapInformation.h.
Referenced by CREMapInformationManager::process(), and setDifficulty().
|
read |
Definition at line 35 of file CREMapInformation.h.
Referenced by CREMapInformationManager::checkItem(), CREMapInformationManager::process(), and setExperience().
|
read |
Definition at line 32 of file CREMapInformation.h.
Referenced by CREMainWindow::onReportResetGroups(), setName(), and CREMapPanel::updateItem().
|
read |
Definition at line 31 of file CREMapInformation.h.
Referenced by addAccessedFrom(), addExitTo(), CREMapInformation(), RandomMap::displayName(), CREMainWindow::onReportResetGroups(), and setPath().
|
read |
Definition at line 36 of file CREMapInformation.h.
Referenced by setResetGroup().
|
read |
Definition at line 38 of file CREMapInformation.h.
|
read |
Definition at line 41 of file CREMapInformation.h.
|
read |
Definition at line 40 of file CREMapInformation.h.
|
read |
Definition at line 39 of file CREMapInformation.h.