a
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// MediumD.h: interface for the CMediumD class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_MEDIUMD_H__007F72C1_5D7A_4CB1_AFB5_4136D75B9DB1__INCLUDED_)
|
||||
#define AFX_MEDIUMD_H__007F72C1_5D7A_4CB1_AFB5_4136D75B9DB1__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "Medium.h"
|
||||
struct stLevel
|
||||
{
|
||||
int level; //层次
|
||||
int a; //第几大层
|
||||
float n; //第几小层
|
||||
};
|
||||
class CMediumD : public CMedium
|
||||
{
|
||||
public:
|
||||
int CalculateRecPosInlevel(int iA);
|
||||
CMediumD(int iAR);
|
||||
virtual ~CMediumD();
|
||||
bool GenerateSptRecElecVal(int iEAmount, int* pMaxLevel, int* pPtAmount, CPtrArray* pSptRecArray);
|
||||
float CalculateSptKVal(int iA, int iM);
|
||||
float CalculateCESptKVal(float fA, float fB, float fX, float fY);
|
||||
|
||||
int CalculateSptLevel(int iM, int iN);
|
||||
void CalculateSptPtLoc(int iMul, CSptRecord* pSptRecord);
|
||||
int GetMaxLevelByEAmount(int iEAmount);
|
||||
|
||||
int GenSptRecLevel(int iA, int iB, int iM, int iN);
|
||||
int GenSptRecPosInLevel(int iA, int iB, int iM, int iN);
|
||||
|
||||
void SetParamVal(const void* pVal);
|
||||
private:
|
||||
int m_iParamIma;
|
||||
int m_iParamImn;
|
||||
std::map<int, stLevel> m_mapLevel;
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_MEDIUMD_H__007F72C1_5D7A_4CB1_AFB5_4136D75B9DB1__INCLUDED_)
|
||||
Reference in New Issue
Block a user