Last change
on this file was
80,
checked in by Sam Hocevar, 15 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[80] | 1 | /*******************************************************************
|
---|
| 2 | *
|
---|
| 3 | * DESCRIPTION: Name table.
|
---|
| 4 | *
|
---|
| 5 | * AUTHOR: Dan Silva
|
---|
| 6 | *
|
---|
| 7 | * HISTORY:
|
---|
| 8 | *
|
---|
| 9 | *******************************************************************/
|
---|
| 10 |
|
---|
| 11 | #ifndef __NAMETAB__H
|
---|
| 12 | #define __NAMETAB__H
|
---|
| 13 |
|
---|
| 14 | #include <ioapi.h>
|
---|
| 15 |
|
---|
| 16 | #define NT_INCLUDE 1
|
---|
| 17 | #define NT_AFFECT_ILLUM 2
|
---|
| 18 | #define NT_AFFECT_SHADOWCAST 4
|
---|
| 19 |
|
---|
| 20 | class NameTab: public Tab<TCHAR *> {
|
---|
| 21 | ULONG flags;
|
---|
| 22 | public:
|
---|
| 23 | NameTab() { flags = NT_AFFECT_ILLUM|NT_AFFECT_SHADOWCAST; }
|
---|
| 24 | UtilExport ~NameTab();
|
---|
| 25 | UtilExport NameTab& operator=(const NameTab& n);
|
---|
| 26 | void SetFlag(ULONG f, BOOL b=1){ if (b) flags|=f; else flags &= ~f; }
|
---|
| 27 | BOOL TestFlag(ULONG f){ return (flags&f)?1:0; }
|
---|
| 28 | UtilExport int AddName(TCHAR *n);
|
---|
| 29 | UtilExport void SetName(int i, TCHAR *n);
|
---|
| 30 | UtilExport void SetSize(int num);
|
---|
| 31 | UtilExport void RemoveName(int i);
|
---|
| 32 | UtilExport int FindName(TCHAR* n);
|
---|
| 33 | UtilExport IOResult Load(ILoad *iload);
|
---|
| 34 | UtilExport IOResult Save(ISave *isave);
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.