📄 person.h
字号:
// Person.h: interface for the CPerson class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PERSON_H__3CFE0A16_5C20_4195_BED0_9B98A0C40CB3__INCLUDED_)
#define AFX_PERSON_H__3CFE0A16_5C20_4195_BED0_9B98A0C40CB3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "common.h"
#include "afx.h"
class CPerson
{
public:
CPerson();
bool IsEmpty();
void Set(const CHint &hint);
int GetAttr(int i) const;
void SetAttr(const CAttributeVal &attr_val);
bool HasAttrVal(const CAttributeVal &attr_val) const;
// 如果不矛盾,修改对象,返回true
// 如果矛盾,不修改对象,返回false
bool ApplyHint(const CHint &hint);
void Show();
void Show(CString &buf);
protected:
static const char* NATION_STR[MAGIC_NUM+1];
static const char* COLOR_STR[MAGIC_NUM+1];
static const char* PET_STR[MAGIC_NUM+1];
static const char* BEVERAGE_STR[MAGIC_NUM+1];
static const char* CIGARETTE_STR[MAGIC_NUM+1];
static const char* HOUSE_STR[MAGIC_NUM+1];
private:
int m_attr[NUM_ATTR];
};
#endif // !defined(AFX_PERSON_H__3CFE0A16_5C20_4195_BED0_9B98A0C40CB3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -