Crossfire Server, Trunk
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 "AssetsCollection.h"
17 
18 extern "C" {
19 #include "global.h"
20 }
21 
22 class AllAnimations : public AssetsCollection<Animations> {
23 public:
24  AllAnimations();
25 
26 protected:
27  virtual Animations *create(const std::string& name);
28  virtual void destroy(Animations *item);
29  virtual void replace(Animations *existing, Animations *update);
30 
31  virtual void added(Animations *anim);
32 };
33 
34 #endif /* ANIMATIONS_H */
AllAnimations::destroy
virtual void destroy(Animations *item)
Definition: Animations.cpp:31
global.h
AllAnimations::create
virtual Animations * create(const std::string &name)
Definition: Animations.cpp:24
AssetsCollection
Definition: AssetsCollection.h:39
AssetsCollection.h
AllAnimations::added
virtual void added(Animations *anim)
Definition: Animations.cpp:46
animate.anim
string anim
Definition: animate.py:20
animations_struct
Definition: face.h:25
AllAnimations
Definition: Animations.h:22
item
Definition: item.py:1
AllAnimations::replace
virtual void replace(Animations *existing, Animations *update)
Definition: Animations.cpp:36
AllAnimations::AllAnimations
AllAnimations()
Definition: Animations.cpp:19
give.name
name
Definition: give.py:27