-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBee.h
63 lines (51 loc) · 1.48 KB
/
Bee.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
#if !defined(AFX_BEE_H__8C6C41B3_7899_11D2_8D9A_0020AF233A70__INCLUDED_)
#define AFX_BEE_H__8C6C41B3_7899_11D2_8D9A_0020AF233A70__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Bee.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBee command target
class CBee : public CCmdTarget
{
DECLARE_DYNCREATE(CBee)
protected:
CBee(); // protected constructor used by dynamic creation
// Attributes
public:
int number;
float age; // days
bool Alive;
// Operations
public:
virtual ~CBee();
CBee operator=(CBee& bee);
CBee(CBee& bee);
CBee(int Num);
void SetNumber(int Num) { number = Num; }
int GetNumber() const { return number; }
void Kill()
{
Alive = false;
number = 0;
}
bool IsAlive() const { return Alive; }
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBee)
public:
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CBee)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BEE_H__8C6C41B3_7899_11D2_8D9A_0020AF233A70__INCLUDED_)