Crossfire Server, Trunk
AllAssets.cpp
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 #include "AllAssets.h"
14 #include "ResourcesManager.h"
16 
17 #include "assets.h"
18 #include "AssetsManager.h"
20 #include "recipes/RecipeWrapper.h"
22 #include "regions/RegionsWrapper.h"
26 #include "recipes/RecipesWrapper.h"
28 #include "MessageManager.h"
29 #include "random_maps/RandomMaps.h"
30 #include "faces/FacesWrapper.h"
32 #include "quests/QuestsWrapper.h"
36 #include "sounds/SoundFiles.h"
37 #include "sounds/GameSounds.h"
38 
40 
41  myAssets.append(myRegions = new RegionsWrapper(this, resources));
42  myAssets.append(new ArchetypesWrapper(this, resources));
43  myAssets.append(new FacesWrapper(this, resources));
44  myAssets.append(new AnimationsWrapper(this, resources));
45  myAssets.append(new TreasuresWrapper(this, resources));
46  myAssets.append(new AssetsCollectionWrapper<face_sets>(this, tr("Facesets"), getManager()->facesets(), resources, tr("Display all facesets.")));
47  myAssets.append(new GeneralMessagesWrapper(this, resources));
48  myAssets.append(new QuestsWrapper(this, resources));
49  myAssets.append(new ArtifactsWrapper(this, resources));
50  myAssets.append(new RecipesWrapper(this, resources));
51  myAssets.append(scripts);
52  myAssets.append(messages);
53  myAssets.append(myRandomMaps = new RandomMaps(this, resources->getMapInformationManager()));
54  myAssets.append(new AttackMessagesWrapper(this));
55  myAssets.append(mySounds = new SoundFiles(this));
56  myAssets.append(new GameSounds(this));
57 }
ScriptFileManager
Definition: ScriptFileManager.h:26
AttackMessagesWrapper.h
AttackMessagesWrapper
Definition: AttackMessagesWrapper.h:32
ArtifactsWrapper
Definition: ArtifactsWrapper.h:24
GeneralMessagesWrapper.h
python_init.scripts
scripts
Definition: python_init.py:11
ScriptFileManager.h
MessageManager.h
ResourcesManager
Definition: ResourcesManager.h:80
AssetsManager.h
AllAssets::myRandomMaps
AssetWrapper * myRandomMaps
Definition: AllAssets.h:41
GameSounds
Definition: GameSounds.h:21
AllAssets.h
RecipeWrapper.h
RandomMaps
Definition: RandomMaps.h:20
AnimationsWrapper
Definition: AnimationsWrapper.h:27
getManager
AssetsManager * getManager()
Definition: assets.cpp:305
RegionsWrapper
Definition: RegionsWrapper.h:20
FacesWrapper
Definition: FacesWrapper.h:20
ArchetypesWrapper.h
ResourcesManager::getMapInformationManager
CREMapInformationManager * getMapInformationManager()
Definition: ResourcesManager.h:91
RecipesWrapper.h
AllAssets::myAssets
QVector< AssetWrapper * > myAssets
Definition: AllAssets.h:39
AssetWrapper
Definition: AssetWrapper.h:25
TreasuresWrapper
Definition: TreasuresWrapper.h:26
GeneralMessagesWrapper
Definition: GeneralMessagesWrapper.h:25
FacesWrapper.h
ArchetypesWrapper
Definition: ArchetypesWrapper.h:25
TreasuresWrapper.h
QuestsWrapper.h
SoundFiles.h
AllAssets::mySounds
SoundFiles * mySounds
Definition: AllAssets.h:42
MessageManager
Definition: MessageManager.h:25
RegionsWrapper.h
ArtifactsWrapper.h
CREMapInformationManager.h
ResourcesManager.h
navar-midane_apply.messages
list messages
Definition: navar-midane_apply.py:8
AllAssets::AllAssets
AllAssets(ResourcesManager *resources, ScriptFileManager *scripts, MessageManager *messages)
Definition: AllAssets.cpp:39
QuestsWrapper
Definition: QuestsWrapper.h:23
SoundFiles
Definition: SoundFiles.h:20
AnimationsWrapper.h
TreasureListWrapper.h
AssetsCollectionWrapper.h
assets.h
ArtifactWrapper.h
RandomMaps.h
RecipesWrapper
Definition: RecipesWrapper.h:24
AllAssets::myRegions
AssetWrapper * myRegions
Definition: AllAssets.h:40
AssetsCollectionWrapper
Definition: AssetsCollectionWrapper.h:21
GameSounds.h