Crossfire Server, Trunk  R20513
ScriptFileManager.h
Go to the documentation of this file.
1 #ifndef SCRIPTFILEMANAGER_H
2 #define SCRIPTFILEMANAGER_H
3 
4 #include <QHash>
5 
6 class ScriptFile;
8 
11 {
12  public:
14  virtual ~ScriptFileManager();
15 
16  QList<ScriptFile*> scriptsForMap(CREMapInformation* map);
17 
23  ScriptFile* getFile(const QString& path);
24 
29  void removeMap(CREMapInformation* map);
30 
31  QList<ScriptFile*> scripts() const;
32 
33  private:
34  QHash<QString, ScriptFile*> myScripts;
35 };
36 
37 #endif /* SCRIPTFILEMANAGER_H */
38 
Manage scripts for items.
Information about a script file.
Definition: ScriptFile.h:31
virtual ~ScriptFileManager()
QHash< QString, ScriptFile * > myScripts
QList< ScriptFile * > scripts() const
QList< ScriptFile * > scriptsForMap(CREMapInformation *map)
void removeMap(CREMapInformation *map)
Remove scripts linked to a map.
ScriptFile * getFile(const QString &path)
Get information about a script path.