Crossfire Server, Trunk
R22010
|
#include <ScriptFile.h>
Public Member Functions | |
void | addHook (HookInformation *hook) |
bool | forMap (CREMapInformation *map) const |
QList< HookInformation * > | hooks () const |
const QString & | path () const |
bool | removeMap (CREMapInformation *map) |
ScriptFile (const QString &path) | |
virtual | ~ScriptFile () |
Private Attributes | |
QList< HookInformation * > | myHooks |
QString | myPath |
Information about a script file.
Definition at line 31 of file ScriptFile.h.
ScriptFile::ScriptFile | ( | const QString & | path | ) |
Definition at line 4 of file ScriptFile.cpp.
References myPath, and path().
|
virtual |
Definition at line 9 of file ScriptFile.cpp.
References myHooks.
void ScriptFile::addHook | ( | HookInformation * | hook | ) |
Definition at line 14 of file ScriptFile.cpp.
References myHooks.
Referenced by CREMapInformationManager::checkEvent(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().
bool ScriptFile::forMap | ( | CREMapInformation * | map | ) | const |
Definition at line 19 of file ScriptFile.cpp.
References HookInformation::map(), and myHooks.
Referenced by ScriptFileManager::scriptsForMap().
QList< HookInformation * > ScriptFile::hooks | ( | ) | const |
Definition at line 31 of file ScriptFile.cpp.
References myHooks.
Referenced by CREScriptPanel::setItem(), CREMapPanel::setItem(), and CREMapInformationManager::storeCache().
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().
bool ScriptFile::removeMap | ( | CREMapInformation * | map | ) |
Remove hooks linked to a map.
map | map to remove scripts of. |
Definition at line 41 of file ScriptFile.cpp.
References myHooks.
|
private |
Definition at line 50 of file ScriptFile.h.
Referenced by addHook(), forMap(), hooks(), removeMap(), and ~ScriptFile().
|
private |
Definition at line 49 of file ScriptFile.h.
Referenced by path(), and ScriptFile().