-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathCrywolfObjInfo.h
More file actions
56 lines (41 loc) · 1003 Bytes
/
CrywolfObjInfo.h
File metadata and controls
56 lines (41 loc) · 1003 Bytes
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
54
55
56
// CrywolfObjInfo.h: interface for the CCrywolfObjInfo class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CRYWOLFOBJINFO_H__2EEB27CF_775F_4F38_AB30_14D63464E751__INCLUDED_)
#define AFX_CRYWOLFOBJINFO_H__2EEB27CF_775F_4F38_AB30_14D63464E751__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#if (GS_CASTLE==1)
#define MAX_CRYWOLF_OBJ_INFO 300
class CCrywolfObjInfo
{
public:
CCrywolfObjInfo()
{
this->Reset();
}
void Reset()
{
for ( int i=0;i<MAX_CRYWOLF_OBJ_INFO;i++)
{
this->m_iObjIndex[i] = -1;
}
this->m_iObjCount = 0;
}
BOOL AddObj(int iIndex)
{
if ( this->m_iObjCount >= MAX_CRYWOLF_OBJ_INFO )
{
return FALSE;
}
this->m_iObjIndex[this->m_iObjCount] = iIndex;
this->m_iObjCount++;
return TRUE;
}
public:
short m_iObjCount; // 0
short m_iObjIndex[MAX_CRYWOLF_OBJ_INFO]; // 4
};
#endif
#endif // !defined(AFX_CRYWOLFOBJINFO_H__2EEB27CF_775F_4F38_AB30_14D63464E751__INCLUDED_)