33 lines
1022 B
C++
33 lines
1022 B
C++
// MediumA.h: interface for the CMediumA class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_MEDIUMA_H__DA8F5DE1_9D0B_4816_91C4_E2711755A5C1__INCLUDED_)
|
|
#define AFX_MEDIUMA_H__DA8F5DE1_9D0B_4816_91C4_E2711755A5C1__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Medium.h"
|
|
|
|
class CMediumA : public CMedium
|
|
{
|
|
public:
|
|
int CalculateRecPosInlevel(int iA);
|
|
CMediumA(int iAR);
|
|
virtual ~CMediumA();
|
|
bool GenerateSptRecElecVal(int iEAmount, int* pMaxLevel, int* pPtAmount, CPtrArray* pSptRecArray);
|
|
float CalculateSptKVal(int iM, int iN);
|
|
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);
|
|
};
|
|
|
|
#endif // !defined(AFX_MEDIUMA_H__DA8F5DE1_9D0B_4816_91C4_E2711755A5C1__INCLUDED_)
|