summaryrefslogtreecommitdiff
path: root/lexiconparameters.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexiconparameters.h')
-rw-r--r--lexiconparameters.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lexiconparameters.h b/lexiconparameters.h
index 4b6369d..04ad4e7 100644
--- a/lexiconparameters.h
+++ b/lexiconparameters.h
@@ -25,22 +25,23 @@
namespace Quackle
{
-class DawgInterpreter
+class LexiconInterpreter
{
public:
virtual void loadDawg(ifstream &file, LexiconParameters &lexparams) = 0;
+ virtual void loadGaddag(ifstream &file, LexiconParameters &lexparams) = 0;
virtual void dawgAt(const unsigned char *dawg, int index, unsigned int &p, Letter &letter, bool &t, bool &lastchild, bool &british, int &playability) const = 0;
virtual int versionNumber() const = 0;
- virtual ~DawgInterpreter() {};
+ virtual ~LexiconInterpreter() {};
};
-class V0DawgInterpreter;
-class V1DawgInterpreter;
+class V0LexiconInterpreter;
+class V1LexiconInterpreter;
class LexiconParameters
{
- friend class Quackle::V0DawgInterpreter;
- friend class Quackle::V1DawgInterpreter;
+ friend class Quackle::V0LexiconInterpreter;
+ friend class Quackle::V1LexiconInterpreter;
public:
LexiconParameters();
@@ -79,7 +80,7 @@ protected:
unsigned char *m_dawg;
unsigned char *m_gaddag;
string m_lexiconName;
- DawgInterpreter *m_interpreter;
+ LexiconInterpreter *m_interpreter;
char m_hash[16];
int m_wordcount;
};