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

Manage scripts for items. More...

#include <ScriptFileManager.h>

Collaboration diagram for ScriptFileManager:
Collaboration graph

Public Member Functions

ScriptFilegetFile (const QString &path)
 Get information about a script path. More...
 
void removeMap (CREMapInformation *map)
 Remove scripts linked to a map. More...
 
 ScriptFileManager ()
 
QList< ScriptFile * > scripts () const
 
QList< ScriptFile * > scriptsForMap (CREMapInformation *map)
 
virtual ~ScriptFileManager ()
 

Private Attributes

QHash< QString, ScriptFile * > myScripts
 

Detailed Description

Manage scripts for items.

Definition at line 10 of file ScriptFileManager.h.

Constructor & Destructor Documentation

ScriptFileManager::ScriptFileManager ( )

Definition at line 4 of file ScriptFileManager.cpp.

ScriptFileManager::~ScriptFileManager ( )
virtual

Definition at line 8 of file ScriptFileManager.cpp.

References myScripts.

Member Function Documentation

ScriptFile * ScriptFileManager::getFile ( const QString &  path)

Get information about a script path.

Parameters
pathfull script path.
Returns
information about the script, never NULL.

Definition at line 26 of file ScriptFileManager.cpp.

References myScripts.

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

Here is the caller graph for this function:

void ScriptFileManager::removeMap ( CREMapInformation map)

Remove scripts linked to a map.

Parameters
mapmap to remove scripts of.

Definition at line 35 of file ScriptFileManager.cpp.

References myScripts.

Referenced by CREMapInformationManager::process().

Here is the caller graph for this function:

QList< ScriptFile * > ScriptFileManager::scripts ( ) const

Definition at line 53 of file ScriptFileManager.cpp.

References myScripts.

Referenced by CREResourcesWindow::fillScripts().

Here is the caller graph for this function:

QList< ScriptFile * > ScriptFileManager::scriptsForMap ( CREMapInformation map)

Definition at line 13 of file ScriptFileManager.cpp.

References ScriptFile::forMap(), and myScripts.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

QHash<QString, ScriptFile*> ScriptFileManager::myScripts
private

Definition at line 34 of file ScriptFileManager.h.

Referenced by getFile(), removeMap(), scripts(), scriptsForMap(), and ~ScriptFileManager().


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