Crossfire Server, Trunk  1.75.0
AssetsTracker.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-2021 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 ASSETSTRACKER_H
14 #define ASSETSTRACKER_H
15 
16 #include "global.h"
17 #include "object.h"
18 #include "quest.h"
19 
25  public:
32  virtual void assetDefined(const archetype *asset, const std::string &filename) {
33  (void)asset;
34  (void)filename;
35  }
36 
43  virtual void assetDefined(const quest_definition *asset, const std::string &filename) {
44  (void)asset;
45  (void)filename;
46  }
47 
54  virtual void assetDefined(const treasurelist *asset, const std::string &filename) {
55  (void)asset;
56  (void)filename;
57  }
58 
65  virtual void assetDefined(const GeneralMessage *asset, const std::string &filename) {
66  (void)asset;
67  (void)filename;
68  }
69 
76  virtual void assetDefined(const artifact *asset, const std::string &filename) {
77  (void)asset;
78  (void)filename;
79  }
80 
87  virtual void assetDefined(const Face *asset, const std::string &filename) {
88  (void)asset;
89  (void)filename;
90  }
91 
98  virtual void assetDefined(const Animations *asset, const std::string &filename) {
99  (void)asset;
100  (void)filename;
101  }
102 };
103 
104 #endif /* ASSETSTRACKER_H */
Face
New face structure - this enforces the notion that data is face by face only - you can not change the...
Definition: face.h:14
global.h
AssetsTracker::assetDefined
virtual void assetDefined(const Animations *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:98
GeneralMessage
One general message, from the lib/messages file.
Definition: book.h:44
AssetsTracker::assetDefined
virtual void assetDefined(const Face *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:87
AssetsTracker::assetDefined
virtual void assetDefined(const artifact *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:76
AssetsTracker
Base class to be informed of where an asset is defined.
Definition: AssetsTracker.h:24
AssetsTracker::assetDefined
virtual void assetDefined(const quest_definition *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:43
treasurelist
treasurelist represents one logical group of items to be generated together.
Definition: treasure.h:85
AssetsTracker::assetDefined
virtual void assetDefined(const GeneralMessage *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:65
AssetsTracker::assetDefined
virtual void assetDefined(const archetype *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:32
archetype
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:483
quest.h
Animations
This represents one animation.
Definition: face.h:25
quest_definition
Definition of an in-game quest.
Definition: quest.h:37
AssetsTracker::assetDefined
virtual void assetDefined(const treasurelist *asset, const std::string &filename)
Function called when an asset is defined in a file.
Definition: AssetsTracker.h:54
artifact
This is one artifact, ie one special item.
Definition: artifact.h:14
object.h