Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[dad864]: Spell.h Maximize Restore History

Download this file

Spell.h    54 lines (47 with data), 1.2 kB

 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
49
50
51
52
53
// spell.h: interface for the Cspell class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SPELL_H__CEA978D3_9FC9_436F_9CAF_FC3EEBF80A56__INCLUDED_)
#define AFX_SPELL_H__CEA978D3_9FC9_436F_9CAF_FC3EEBF80A56__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "structs.h"
class Cspell
{
public:
int revision;
spell_header header;
iwd2_header iwd2header;
int extheadcount;
int featblkcount;
spl_ext_header *extheaders;
feat_block *featblocks;
int m_changed;
Cspell();
virtual ~Cspell();
int WriteSpellToFile(int fhandle, int calculate);
int ReadSpellFromFile(int fhandle, long maxlen);
CString RetrieveResourceRef(int fh);
long RetrieveNameRef(int fh);
long RetrieveTypeAndLevel(int fh);
inline void KillExtHeaders()
{
if(extheaders)
{
delete[] extheaders;
extheaders=NULL;
extheadcount=0;
}
}
inline void KillFeatHeaders()
{
if(featblocks)
{
delete[] featblocks;
featblocks=NULL;
featblkcount=0;
}
}
};
#endif // !defined(AFX_SPELL_H__CEA978D3_9FC9_436F_9CAF_FC3EEBF80A56__INCLUDED_)