-
Notifications
You must be signed in to change notification settings - Fork 0
/
Monster.h
53 lines (42 loc) · 799 Bytes
/
Monster.h
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
#pragma once
#include "Character.h"
class CMonster :
public CCharacter
{
private:
CMonster();
CMonster(const CMonster& monster);
public:
~CMonster();
private:
friend class CObjectManager;
friend class CEditorMonster;
private:
int m_iGoldMin;
int m_iGoldMax;
STAGE_TYPE m_eStageType;
public:
void SetGold(int iMin, int iMax)
{
m_iGoldMin = iMin;
m_iGoldMax = iMax;
}
void SetStageType(STAGE_TYPE eType)
{
m_eStageType = eType;
}
int GetDropGold() const
{
return rand() % (m_iGoldMax - m_iGoldMin + 1) + m_iGoldMin;
}
STAGE_TYPE GetStageType() const
{
return m_eStageType;
}
public:
virtual bool Init();
virtual void Render();
virtual CMonster* Clone();
virtual void Save(class CFileStream* pFile);
virtual void Load(class CFileStream* pFile);
};