Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ResDialogPack.h

Go to the documentation of this file.
00001 #ifndef HEADER_RESDIALOGPACK_H
00002 #define HEADER_RESDIALOGPACK_H
00003 
00004 class Dialog;
00005 
00006 #include "ResourcePack.h"
00007 #include "Name.h"
00008 
00009 #include "SDL.h"
00010 
00011 /**
00012  * Multi-language dialogs pack.
00013  */
00014 class ResDialogPack : public ResourcePack<Dialog*> {
00015     protected:
00016         virtual void unloadRes(Dialog *res);
00017     private:
00018         int matchScore(const std::string &first,
00019                 const std::string &second) const;
00020         const Dialog *findDialog(const std::string &name,
00021                 const std::string &lang);
00022     public:
00023         virtual const char *getName() const { return "dialog_pack"; }
00024         const Dialog *findDialogHard(const std::string &name);
00025         const Dialog *findDialogSpeech(const std::string &name);
00026 };
00027 
00028 #endif
00029 

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2