#pragma once #include "common.h" class AFX_EXT_CLASS T2PlaceParamDef { public: enum EPlace { Place_0, // pool Place_1, // tenant Place_2, // floor kMaxPlace }; T2PlaceParamDef(CResFile& resFile); virtual ~T2PlaceParamDef(); unsigned int GetPercent(EPlace place) const { return mEntries[place].mPercent; } float GetRate(EPlace place) const { return mEntries[place].mRate; } short GetScore(EPlace place) const { return mEntries[place].mScore; } protected: struct { unsigned int mPercent; short mScore; float mRate; } mEntries[kMaxPlace]; };