Crossfire Server, Trunk
ArtifactsWrapper.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ARTIFACTS_WRAPPER_H
14 #define ARTIFACTS_WRAPPER_H
15 
16 #include <QObject>
17 #include <QStringList>
18 
19 #include "global.h"
20 #include "assets/AssetWrapper.h"
21 
22 class ResourcesManager;
23 
25 Q_OBJECT
26 
27 public:
28  ArtifactsWrapper(AssetWrapper *parent, ResourcesManager *resourcesManager);
29 
30  virtual QString displayName() const override { return tr("Artifacts"); }
31 
32  virtual int childrenCount() const override;
33  virtual AssetWrapper *child(int) override;
34  virtual int childIndex(AssetWrapper *) override;
35 
36  virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override;
37 
38 protected:
40 };
41 
42 #endif // ARTIFACTS_WRAPPER_H
global.h
ArtifactsWrapper
Definition: ArtifactsWrapper.h:24
ArtifactsWrapper::displayName
virtual QString displayName() const override
Definition: ArtifactsWrapper.h:30
AssetWrapper.h
ArtifactsWrapper::childIndex
virtual int childIndex(AssetWrapper *) override
Definition: ArtifactsWrapper.cpp:42
ResourcesManager
Definition: ResourcesManager.h:80
AssetWrapper::PossibleUse
PossibleUse
Definition: AssetWrapper.h:32
ArtifactsWrapper::myResourcesManager
ResourcesManager * myResourcesManager
Definition: ArtifactsWrapper.h:39
ArtifactsWrapper::childrenCount
virtual int childrenCount() const override
Definition: ArtifactsWrapper.cpp:23
AssetWrapper
Definition: AssetWrapper.h:25
ArtifactsWrapper::uses
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
Definition: ArtifactsWrapper.cpp:55
ArtifactsWrapper::child
virtual AssetWrapper * child(int) override
Definition: ArtifactsWrapper.cpp:33
ArtifactsWrapper::ArtifactsWrapper
ArtifactsWrapper(AssetWrapper *parent, ResourcesManager *resourcesManager)
Definition: ArtifactsWrapper.cpp:18