Debian Codegraph @

src/gengine/ResDialogPack.h

raw
1 #ifndef HEADER_RESDIALOGPACK_H
2 #define HEADER_RESDIALOGPACK_H
3
4 class Dialog;
5
6 #include "ResourcePack.h"
7 #include "Name.h"
8
9 #include "SDL.h"
10
11 /**
12 * Multi-language dialogs pack.
13 */
14 class ResDialogPack : public ResourcePack<Dialog*> {
15 private:
16 int matchScore(const std::string &first,
17 const std::string &second) const;
18 const Dialog *findDialog(const std::string &name,
19 const std::string &lang);
20 public:
21 virtual const char *getName() const { return "dialog_pack"; }
22 const Dialog *findDialogHard(const std::string &name);
23 const Dialog *findDialogSpeech(const std::string &name);
24 virtual void unloadRes(Dialog *res);
25 };
26
27 #endif
28