aboutsummaryrefslogtreecommitdiff
path: root/include/hgestrings.h
blob: e02cbe98baee8088c845249cf0140a46bf82c7c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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