Crossfire Server, Trunk
AllAssets.h
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
#ifndef ALL_ASSETS_H
14
#define ALL_ASSETS_H
15
16
#include "
assets/AssetWrapper.h
"
17
18
class
ResourcesManager
;
19
class
ScriptFileManager
;
20
class
MessageManager
;
21
class
SoundFiles
;
22
23
class
AllAssets
:
public
AssetWrapper
{
24
Q_OBJECT
25
public
:
26
AllAssets
(
ResourcesManager
*resources,
ScriptFileManager
*
scripts
,
MessageManager
*
messages
);
27
28
virtual
QString
displayName
()
const
{
return
tr(
"All assets"
); }
29
30
virtual
int
childrenCount
()
const
{
return
myAssets
.size(); }
31
virtual
AssetWrapper
*
child
(
int
index
) {
return
myAssets
[
index
]; }
32
virtual
int
childIndex
(
AssetWrapper
*
child
) {
return
myAssets
.indexOf(
child
); }
33
34
AssetWrapper
*
regions
() {
return
myRegions
; }
35
AssetWrapper
*
randomMaps
() {
return
myRandomMaps
; }
36
SoundFiles
*
sounds
()
const
{
return
mySounds
; }
37
38
protected
:
39
QVector<AssetWrapper *>
myAssets
;
40
AssetWrapper
*
myRegions
;
41
AssetWrapper
*
myRandomMaps
;
42
SoundFiles
*
mySounds
;
43
};
44
45
#endif
/* ALL_ASSETS_H */
46
ScriptFileManager
Definition:
ScriptFileManager.h:26
AllAssets::randomMaps
AssetWrapper * randomMaps()
Definition:
AllAssets.h:35
AssetWrapper.h
python_init.scripts
scripts
Definition:
python_init.py:11
ResourcesManager
Definition:
ResourcesManager.h:80
AllAssets::myRandomMaps
AssetWrapper * myRandomMaps
Definition:
AllAssets.h:41
AllAssets::myAssets
QVector< AssetWrapper * > myAssets
Definition:
AllAssets.h:39
AssetWrapper
Definition:
AssetWrapper.h:25
AllAssets::childIndex
virtual int childIndex(AssetWrapper *child)
Definition:
AllAssets.h:32
AllAssets::mySounds
SoundFiles * mySounds
Definition:
AllAssets.h:42
MessageManager
Definition:
MessageManager.h:25
AllAssets::sounds
SoundFiles * sounds() const
Definition:
AllAssets.h:36
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
SoundFiles
Definition:
SoundFiles.h:20
AllAssets
Definition:
AllAssets.h:23
npc_dialog.index
int index
Definition:
npc_dialog.py:102
AllAssets::childrenCount
virtual int childrenCount() const
Definition:
AllAssets.h:30
AllAssets::regions
AssetWrapper * regions()
Definition:
AllAssets.h:34
AllAssets::myRegions
AssetWrapper * myRegions
Definition:
AllAssets.h:40
AllAssets::displayName
virtual QString displayName() const
Definition:
AllAssets.h:28
AllAssets::child
virtual AssetWrapper * child(int index)
Definition:
AllAssets.h:31
crossfire-crossfire-server
utils
cre
AllAssets.h
Generated by
1.8.17