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

Information about a script file. More...

#include <ScriptFile.h>

Collaboration diagram for ScriptFile:
Collaboration graph

Public Member Functions

void addHook (HookInformation *hook)
 
bool forMap (CREMapInformation *map) const
 
QList< HookInformation * > hooks () const
 
const QString & path () const
 
bool removeMap (CREMapInformation *map)
 Remove hooks linked to a map. More...
 
 ScriptFile (const QString &path)
 
virtual ~ScriptFile ()
 

Private Attributes

QList< HookInformation * > myHooks
 
QString myPath
 

Detailed Description

Information about a script file.

Definition at line 31 of file ScriptFile.h.

Constructor & Destructor Documentation

ScriptFile::ScriptFile ( const QString &  path)

Definition at line 4 of file ScriptFile.cpp.

References myPath, and path().

Here is the call graph for this function:

ScriptFile::~ScriptFile ( )
virtual

Definition at line 9 of file ScriptFile.cpp.

References myHooks.

Member Function Documentation

void ScriptFile::addHook ( HookInformation hook)

Definition at line 14 of file ScriptFile.cpp.

References myHooks.

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

Here is the caller graph for this function:

bool ScriptFile::forMap ( CREMapInformation map) const

Definition at line 19 of file ScriptFile.cpp.

References HookInformation::map(), and myHooks.

Referenced by ScriptFileManager::scriptsForMap().

Here is the call graph for this function:

Here is the caller graph for this function:

QList< HookInformation * > ScriptFile::hooks ( ) const

Definition at line 31 of file ScriptFile.cpp.

References myHooks.

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

Here is the caller graph for this function:

const QString & ScriptFile::path ( ) const

Definition at line 36 of file ScriptFile.cpp.

References myPath.

Referenced by ScriptFile(), scriptLessThan(), CREUtils::scriptNode(), CREMapPanel::setItem(), and CREMapInformationManager::storeCache().

Here is the caller graph for this function:

bool ScriptFile::removeMap ( CREMapInformation map)

Remove hooks linked to a map.

Parameters
mapmap to remove scripts of.
Returns
true if this script has no more hooks, false else.

Definition at line 41 of file ScriptFile.cpp.

References myHooks.

Field Documentation

QList<HookInformation*> ScriptFile::myHooks
private

Definition at line 50 of file ScriptFile.h.

Referenced by addHook(), forMap(), hooks(), removeMap(), and ~ScriptFile().

QString ScriptFile::myPath
private

Definition at line 49 of file ScriptFile.h.

Referenced by path(), and ScriptFile().


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