Crossfire Server, Trunk  1.75.0
Animations.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 ANIMATIONS_H
14 #define ANIMATIONS_H
15 
16 #include "global.h"
17 #include "AssetsCollection.h"
18 
19 class AllAnimations : public AssetsCollection<Animations> {
20 public:
21  AllAnimations();
22 
23 protected:
24  virtual void replace(Animations *existing, Animations *update) override;
25  virtual void added(Animations *anim) override;
26 };
27 
28 #endif /* ANIMATIONS_H */
global.h
AllAnimations::added
virtual void added(Animations *anim) override
An asset was either referenced (but undefined) or defined.
Definition: Animations.cpp:53
AllAnimations::replace
virtual void replace(Animations *existing, Animations *update) override
Replace an asset by an updated version.
Definition: Animations.cpp:37
AssetsCollection
Collection of assets identified by a unique name.
Definition: AssetsCollection.h:55
AssetsCollection.h
AllAnimations
Definition: Animations.h:19
Animations
This represents one animation.
Definition: face.h:25
AllAnimations::AllAnimations
AllAnimations()
Definition: Animations.cpp:32