Crossfire Server, Trunk
AssetsManager.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 ASSETSMANAGER_H
14 #define ASSETSMANAGER_H
15 
16 #include "Archetypes.h"
17 #include "Animations.h"
18 #include "Treasures.h"
19 #include "Faces.h"
20 #include "Messages.h"
21 #include "Facesets.h"
22 #include "Quests.h"
23 
29 public:
31  AssetsManager();
33  virtual ~AssetsManager();
34 
39  Faces *faces() { return &m_faces; }
59  Messages *messages() { return &m_messages; }
60 
65  Facesets *facesets() { return &m_facesets; }
66 
71  Quests *quests() { return &m_quests; }
72 
78  size_t dumpUndefined();
79 
80 protected:
95  void archetypeUpdated(archetype *existing, archetype *update);
96 };
97 
98 #endif /* ASSETSMANAGER_H */
99 
AssetsManager::AssetsManager
AssetsManager()
Definition: AssetsManager.cpp:18
Archetypes
Definition: Archetypes.h:23
AssetsManager::messages
Messages * messages()
Definition: AssetsManager.h:59
AssetsManager::~AssetsManager
virtual ~AssetsManager()
Definition: AssetsManager.cpp:28
Messages.h
AssetsManager::animations
AllAnimations * animations()
Definition: AssetsManager.h:49
Facesets
Definition: Facesets.h:23
Facesets.h
AssetsManager::dumpUndefined
size_t dumpUndefined()
Definition: AssetsManager.cpp:52
Messages
Definition: Messages.h:22
AssetsManager::m_facesets
Facesets m_facesets
Definition: AssetsManager.h:87
Treasures
Definition: Treasures.h:21
Quests
Definition: Quests.h:19
AssetsManager::treasures
Treasures * treasures()
Definition: AssetsManager.h:54
AssetsManager::quests
Quests * quests()
Definition: AssetsManager.h:71
AssetsManager::faces
Faces * faces()
Definition: AssetsManager.h:39
AssetsManager::m_animations
AllAnimations m_animations
Definition: AssetsManager.h:84
AssetsManager::m_archetypes
Archetypes m_archetypes
Definition: AssetsManager.h:82
Quests.h
archetype
Definition: object.h:483
AssetsManager::facesets
Facesets * facesets()
Definition: AssetsManager.h:65
Treasures.h
AssetsManager::archetypes
Archetypes * archetypes()
Definition: AssetsManager.h:44
Faces
Definition: Faces.h:19
AllAnimations
Definition: Animations.h:19
Faces.h
AssetsManager::m_treasures
Treasures m_treasures
Definition: AssetsManager.h:85
Animations.h
Archetypes.h
AssetsManager::archetypeUpdated
void archetypeUpdated(archetype *existing, archetype *update)
Definition: AssetsManager.cpp:32
AssetsManager::m_faces
Faces m_faces
Definition: AssetsManager.h:81
Archetypes::updateListener
std::function< void(archetype *, archetype *)> updateListener
Definition: Archetypes.h:27
AssetsManager
Definition: AssetsManager.h:28
AssetsManager::m_quests
Quests m_quests
Definition: AssetsManager.h:88
AssetsManager::m_listener
Archetypes::updateListener m_listener
Definition: AssetsManager.h:83
AssetsManager::m_messages
Messages m_messages
Definition: AssetsManager.h:86