Crossfire Server, Trunk  R20576
Public Member Functions | Protected Attributes
ResourcesManager Class Reference

#include <ResourcesManager.h>

Collaboration diagram for ResourcesManager:
Collaboration graph

Public Member Functions

QStringList allAnimations () const
 
const animations_structanimation (const QString &name) const
 
const archtarchetype (const QString &name) const
 
QStringList archetypes () const
 
const New_Faceface (const QString &name) const
 
QStringList faces () const
 
void load ()
 
const recipestructrecipe (int ingredients, const QString &name) const
 
int recipeMaxIngredients () const
 
QStringList recipes (int count) const
 
 ResourcesManager ()
 
const treasurelisttreasureList (const QString &name)
 
QStringList treasureLists () const
 
virtual ~ResourcesManager ()
 

Protected Attributes

QHash< QString, animations_struct * > myAnimations
 
QHash< QString, archt * > myArchetypes
 
QHash< QString, New_Face * > myFaces
 
QList< QHash< QString, recipestruct * > > myRecipes
 
QHash< QString, treasurelist * > myTreasures
 

Detailed Description

Definition at line 8 of file ResourcesManager.h.

Constructor & Destructor Documentation

◆ ResourcesManager()

ResourcesManager::ResourcesManager ( )

Definition at line 15 of file ResourcesManager.cpp.

◆ ~ResourcesManager()

ResourcesManager::~ResourcesManager ( )
virtual

Definition at line 19 of file ResourcesManager.cpp.

Member Function Documentation

◆ allAnimations()

QStringList ResourcesManager::allAnimations ( ) const

Definition at line 133 of file ResourcesManager.cpp.

References myAnimations.

Referenced by CREResourcesWindow::fillAnimations(), and CREMainWindow::onReportDuplicate().

Here is the caller graph for this function:

◆ animation()

const animations_struct * ResourcesManager::animation ( const QString &  name) const

Definition at line 140 of file ResourcesManager.cpp.

References myAnimations.

Referenced by CREResourcesWindow::fillAnimations(), and CREMainWindow::onReportDuplicate().

Here is the caller graph for this function:

◆ archetype()

const archetype * ResourcesManager::archetype ( const QString &  name) const

Definition at line 80 of file ResourcesManager.cpp.

References myArchetypes.

Referenced by CREResourcesWindow::fillArchetypes().

Here is the caller graph for this function:

◆ archetypes()

QStringList ResourcesManager::archetypes ( ) const

Definition at line 73 of file ResourcesManager.cpp.

References myArchetypes.

Referenced by CREResourcesWindow::fillArchetypes().

Here is the caller graph for this function:

◆ face()

const New_Face * ResourcesManager::face ( const QString &  name) const

Definition at line 128 of file ResourcesManager.cpp.

References myFaces.

Referenced by CREResourcesWindow::fillFaces(), CREResourcesWindow::fillQuests(), and CRETreeItemQuest::questModified().

Here is the caller graph for this function:

◆ faces()

QStringList ResourcesManager::faces ( ) const

Definition at line 121 of file ResourcesManager.cpp.

References myFaces.

Referenced by CREResourcesWindow::fillFaces(), and CREMainWindow::onReportDuplicate().

Here is the caller graph for this function:

◆ load()

void ResourcesManager::load ( )

◆ recipe()

const recipe * ResourcesManager::recipe ( int  ingredients,
const QString &  name 
) const

Definition at line 112 of file ResourcesManager.cpp.

References myRecipes.

Referenced by CREResourcesWindow::fillFormulae().

Here is the caller graph for this function:

◆ recipeMaxIngredients()

int ResourcesManager::recipeMaxIngredients ( ) const

Definition at line 97 of file ResourcesManager.cpp.

References myRecipes.

Referenced by CREResourcesWindow::fillFormulae().

Here is the caller graph for this function:

◆ recipes()

QStringList ResourcesManager::recipes ( int  count) const

Definition at line 102 of file ResourcesManager.cpp.

References myRecipes.

Referenced by CREResourcesWindow::fillFormulae(), and load().

Here is the caller graph for this function:

◆ treasureList()

const treasurelist * ResourcesManager::treasureList ( const QString &  name)

Definition at line 92 of file ResourcesManager.cpp.

References myTreasures.

Referenced by CREResourcesWindow::fillTreasures().

Here is the caller graph for this function:

◆ treasureLists()

QStringList ResourcesManager::treasureLists ( ) const

Definition at line 85 of file ResourcesManager.cpp.

References myTreasures.

Referenced by CREResourcesWindow::fillTreasures().

Here is the caller graph for this function:

Field Documentation

◆ myAnimations

QHash<QString, animations_struct*> ResourcesManager::myAnimations
protected

Definition at line 37 of file ResourcesManager.h.

Referenced by allAnimations(), animation(), and load().

◆ myArchetypes

QHash<QString, archt*> ResourcesManager::myArchetypes
protected

Definition at line 33 of file ResourcesManager.h.

Referenced by archetype(), archetypes(), and load().

◆ myFaces

QHash<QString, New_Face*> ResourcesManager::myFaces
protected

Definition at line 36 of file ResourcesManager.h.

Referenced by face(), faces(), and load().

◆ myRecipes

QList<QHash<QString, recipestruct*> > ResourcesManager::myRecipes
protected

Definition at line 35 of file ResourcesManager.h.

Referenced by load(), recipe(), recipeMaxIngredients(), and recipes().

◆ myTreasures

QHash<QString, treasurelist*> ResourcesManager::myTreasures
protected

Definition at line 34 of file ResourcesManager.h.

Referenced by load(), treasureList(), and treasureLists().


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