hgestrings.h
资源名称:hge181.rar [点击查看]
上传用户:jnfxsk
上传日期:2022-06-16
资源大小:3675k
文件大小:1k
源码类别:
游戏引擎
开发平台:
Visual C++
- /*
- ** 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