39 */ |
39 */ |
40 |
40 |
41 #include "bots.h" |
41 #include "bots.h" |
42 #include "str.h" |
42 #include "str.h" |
43 |
43 |
44 class StringTable { |
44 void InitStringTable(); |
45 public: |
45 unsigned int PushToStringTable (char* s); |
46 char table[MAX_LIST_STRINGS][MAX_STRING_LENGTH]; |
46 unsigned int CountStringTable (); |
47 StringTable(); |
|
48 |
|
49 unsigned int Push (char* s); |
|
50 unsigned int Count (); |
|
51 |
|
52 char* operator [] (unsigned int a); |
|
53 }; |
|
54 |
47 |
55 #ifndef __STRINGTABLE_CXX__ |
48 #ifndef __STRINGTABLE_CXX__ |
56 extern |
49 extern |
57 #endif |
50 #endif |
58 StringTable* g_StringTable; |
51 char g_StringTable[MAX_LIST_STRINGS][MAX_STRING_LENGTH]; |