forked from Breeze-del/C-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Zombies.h
65 lines (61 loc) · 1.25 KB
/
Zombies.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
53
54
55
56
57
58
59
60
61
62
63
64
// Zombies.h: interface for the CZombies class.
//
//////////////////////////////////////////////////////////////////////
#include "cv.h"
#include "highgui.h"
#include "vector"
using namespace std;
#if !defined(AFX_ZOMBIES_H__EFA90B53_8AEE_4F68_B5ED_04BC69DFC408__INCLUDED_)
#define AFX_ZOMBIES_H__EFA90B53_8AEE_4F68_B5ED_04BC69DFC408__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ActiveObj.h"
/**
* @class CZombies
* @brief 僵尸类
*
*
*/
class CZombies : public CActiveObj
{
public:
/**
* @brief TakeDamage
*
* 伤害函数
* @param damage 伤害值
*
*/
virtual void TakeDamage(int damage);
/**
* @brief SetAttack
*
* 是状态变为攻击
* @param 无
*
*/
void SetAttack();
/**
* @brief SetAnimType
*
* 改变组件状态
* @param str 组件的状态
*
*/
virtual void SetAnimType(string str);
/**
* @brief Draw
*
* 绘图僵尸
* @param bg 背景图指针
*
*/
virtual void Draw(IplImage* bg);
CZombies();
virtual ~CZombies();
vector <IplImage* > m_Move_Img_my; /**< 僵尸的行走动画.(特别的) */
vector <IplImage* > m_Attack_Img_my; /**< 僵尸的攻击动画.(特别的 */
vector <IplImage* > m_Bomb_Img; /**< 僵尸的爆炸死亡动画 */
};
#endif // !defined(AFX_ZOMBIES_H__EFA90B53_8AEE_4F68_B5ED_04BC69DFC408__INCLUDED_)