summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TenantMemberDef.h
blob: 47e063309f911bb6b40b22ae5f547892a5e1ff0e (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef T2DLL_T2TENANTMEMBERDEF_H
#define T2DLL_T2TENANTMEMBERDEF_H
#include "../common.h"

class AFX_CLASS_EXPORT T2TenantMemberDef {
public:
	T2TenantMemberDef();
	virtual ~T2TenantMemberDef();
	void Initialize(CResFile*, float);

	int GetDemandType() const;
	int GetStartSilhouetteType() const;
	int GetEndSilhouetteType() const;
	int GetOptionType() const;
	unsigned int GetNumOfPeople() const;
	void SetNumOfPeople(unsigned int v);
	float GetRate() const;
	void SetRate(float v);
	void GetName(CString& outStr) const;
	unsigned int GetPercent() const;
	void SetPercent(unsigned int v);

protected:
	char mName[16];
	int mDemandType;
	int mStartSilhouetteType;
	int mEndSilhouetteType;
	int mOptionType;
	unsigned int mPercent;
	unsigned int mNumOfPeople;
	float mRate;
};

inline int T2TenantMemberDef::GetDemandType() const {
    return mDemandType;
}

inline int T2TenantMemberDef::GetStartSilhouetteType() const {
    return mStartSilhouetteType;
}

inline int T2TenantMemberDef::GetEndSilhouetteType() const {
    return mEndSilhouetteType;
}

inline int T2TenantMemberDef::GetOptionType() const {
    return mOptionType;
}

inline unsigned int T2TenantMemberDef::GetNumOfPeople() const {
    return mNumOfPeople;
}

inline void T2TenantMemberDef::SetNumOfPeople(unsigned int v) {
    mNumOfPeople = v;
}

inline float T2TenantMemberDef::GetRate() const {
    return mRate;
}

inline void T2TenantMemberDef::SetRate(float v) {
    mRate = v;
}

inline void T2TenantMemberDef::GetName(CString& outStr) const {
    outStr = mName;
}

inline unsigned int T2TenantMemberDef::GetPercent() const {
    return mPercent;
}

inline void T2TenantMemberDef::SetPercent(unsigned int v) {
    mPercent = v;
}
#endif