aboutsummaryrefslogtreecommitdiff
path: root/archive/include/hgestrings.h
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-26 22:52:36 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-26 22:52:36 +0800
commit3bd383baf6a17e734329e1fc677c7e86283db772 (patch)
tree69a9148087577f797624ceb9c71323a2563d6bb4 /archive/include/hgestrings.h
parent543e4f570be9b279ba558ca61cc02cda251af384 (diff)
downloadbullet-lab-remix-3bd383baf6a17e734329e1fc677c7e86283db772.tar.xz
Added support for relative line numbers.
Added instructions for, brk and cont. (They are still untested...) Parser code cleanup. Removed garbage output to stderr. Reorganize the repository structure. Updated BLR2 code move it into archive. Added BLR1 files.
Diffstat (limited to 'archive/include/hgestrings.h')
-rw-r--r--archive/include/hgestrings.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/archive/include/hgestrings.h b/archive/include/hgestrings.h
new file mode 100644
index 0000000..e02cbe9
--- /dev/null
+++ b/archive/include/hgestrings.h
@@ -0,0 +1,48 @@
+/*
+** Haaf's Game Engine 1.7
+** Copyright (C) 2003-2007, Relish Games
+** hge.relishgames.com
+**
+** hgeStringTable helper class header
+*/
+
+
+#ifndef HGESTRINGS_H
+#define HGESTRINGS_H
+
+
+#include "hge.h"
+
+
+#define MAXSTRNAMELENGTH 64
+
+
+struct NamedString
+{
+ char name[MAXSTRNAMELENGTH];
+ char *string;
+ NamedString *next;
+};
+
+/*
+** HGE String table class
+*/
+class hgeStringTable
+{
+public:
+ hgeStringTable(const char *filename);
+ ~hgeStringTable();
+
+ char *GetString(const char *name);
+
+private:
+ hgeStringTable(const hgeStringTable &);
+ hgeStringTable& operator= (const hgeStringTable &);
+
+ NamedString *strings;
+
+ static HGE *hge;
+};
+
+
+#endif