Crossfire Server, Trunk
QuestLoader.h
Go to the documentation of this file.
1
/*
2
* Crossfire -- cooperative multi-player graphical RPG and adventure game
3
*
4
* Copyright (c) 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 QUESTLOADER_H
14
#define QUESTLOADER_H
15
16
#include "
AssetLoader.h
"
17
#include "
quest.h
"
18
#include "
Utils.h
"
19
20
class
Quests
;
21
class
Faces
;
22
class
AssetsTracker
;
23
24
class
QuestLoader
:
public
AssetLoader
{
25
public
:
26
QuestLoader
(
Quests
*
quests
,
Faces
*
faces
,
AssetsTracker
*
tracker
);
27
virtual
~QuestLoader
() { }
28
29
virtual
bool
willLoad
(
const
std::string &
filename
)
override
{
30
return
Utils::endsWith
(
filename
.c_str(),
".quests"
);
31
}
32
33
virtual
void
load
(
BufferReader
*reader,
const
std::string &
filename
)
override
;
34
35
private
:
36
Quests
*
quests
;
37
Faces
*
faces
;
38
AssetsTracker
*
tracker
;
39
};
40
41
#endif
/* QUESTLOADER_H */
42
QuestLoader::tracker
AssetsTracker * tracker
Definition:
QuestLoader.h:38
QuestLoader::faces
Faces * faces
Definition:
QuestLoader.h:37
QuestLoader::quests
Quests * quests
Definition:
QuestLoader.h:36
AssetLoader
Definition:
AssetLoader.h:24
npc_dialog.filename
filename
Definition:
npc_dialog.py:99
QuestLoader::QuestLoader
QuestLoader(Quests *quests, Faces *faces, AssetsTracker *tracker)
Definition:
QuestLoader.cpp:34
AssetsTracker
Definition:
AssetsTracker.h:26
QuestLoader
Definition:
QuestLoader.h:24
Quests
Definition:
Quests.h:19
Utils.h
Faces
Definition:
Faces.h:19
quest.h
QuestLoader::~QuestLoader
virtual ~QuestLoader()
Definition:
QuestLoader.h:27
QuestLoader::load
virtual void load(BufferReader *reader, const std::string &filename) override
Definition:
QuestLoader.cpp:37
BufferReader
Definition:
bufferreader.cpp:21
QuestLoader::willLoad
virtual bool willLoad(const std::string &filename) override
Definition:
QuestLoader.h:29
Utils::endsWith
static bool endsWith(const char *const str, const char *const with)
Definition:
Utils.cpp:16
AssetLoader.h
crossfire-crossfire-server
include
QuestLoader.h
Generated by
1.8.17