Crossfire Server, Trunk
GameSound.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 GAME_SOUND_H
14 #define GAME_SOUND_H
15 
16 #include "assets/AssetWrapper.h"
17 
18 class GameSound : public AssetWrapper {
19  Q_OBJECT
20 
21  Q_PROPERTY(QString description READ description)
22 public:
23  GameSound(AssetWrapper *parent, const QString &name, const QString &description);
24 
25  virtual QString displayName() const { return myName; }
26  const QString &description() const { return myDescription; }
27 
28  virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override;
29 
30 private:
31  QString myName;
32  QString myDescription;
33 };
34 
35 #endif /* GAME_SOUND_H */
GameSound::description
QString description
Definition: GameSound.h:21
AssetWrapper.h
AssetWrapper::PossibleUse
PossibleUse
Definition: AssetWrapper.h:32
GameSound
Definition: GameSound.h:18
AssetWrapper
Definition: AssetWrapper.h:25
GameSound::myDescription
QString myDescription
Definition: GameSound.h:32
GameSound::myName
QString myName
Definition: GameSound.h:31
GameSound::description
const QString & description() const
Definition: GameSound.h:26
GameSound::GameSound
GameSound(AssetWrapper *parent, const QString &name, const QString &description)
Definition: GameSound.cpp:16
GameSound::displayName
virtual QString displayName() const
Definition: GameSound.h:25
GameSound::uses
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
Definition: GameSound.cpp:20
give.name
name
Definition: give.py:27