forked from Helbreath/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFish.cpp
More file actions
29 lines (23 loc) · 677 Bytes
/
Copy pathFish.cpp
File metadata and controls
29 lines (23 loc) · 677 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
// Fish.cpp: implementation of the CFish class.
//
//////////////////////////////////////////////////////////////////////
#include "Fish.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CFish::CFish(char cMapIndex, short sX, short sY, short sType, class CItem * pItem, int iDifficulty)
{
m_cMapIndex = cMapIndex;
m_sX = sX;
m_sY = sY;
m_sType = sType;
m_pItem = pItem;
m_sEngagingCount = 0;
m_iDifficulty = iDifficulty;
if (m_iDifficulty <= 0)
m_iDifficulty = 1;
}
CFish::~CFish()
{
if (m_pItem != NULL) delete m_pItem;
}