-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTile.cpp
More file actions
46 lines (34 loc) · 942 Bytes
/
Tile.cpp
File metadata and controls
46 lines (34 loc) · 942 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
// Tile.cpp: implementation of the CTile class.
//
//////////////////////////////////////////////////////////////////////
#include "Tile.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CTile::CTile()
{
int i;
m_bIsMoveAllowed = TRUE;
m_bIsTeleport = FALSE;
m_bIsWater = FALSE;
m_bIsFarm = FALSE;
m_sOwner = NULL;
m_cOwnerClass = NULL;
m_sDeadOwner = NULL;
m_cDeadOwnerClass = NULL;
for (i = 0; i < DEF_TILE_PER_ITEMS; i++)
m_pItem[i] = NULL;
m_cTotalItem = 0;
m_wDynamicObjectID = NULL;
m_sDynamicObjectType = NULL;
m_bIsTempMoveAllowed = TRUE;
m_iOccupyStatus = NULL;
m_iOccupyFlagIndex = NULL;
m_iAttribute = NULL;
}
CTile::~CTile()
{
int i;
for (i = 0; i < DEF_TILE_PER_ITEMS; i++)
if (m_pItem[i] != NULL) delete m_pItem[i];
}