selfadjustingpredictor.h

来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 37 行

H
37
字号
//----------------------------------------------------------------------------------------------
// Sequential Prediction Demo: The positioning pattern
// 
// Author:  Fri Mommersteeg
// Date:    10-09-2001
// File:    SelfAdjustingPredictor.h
//----------------------------------------------------------------------------------------------

#ifndef __SELFADJUSTINGPREDICTOR_H
#define __SELFADJUSTINGPREDICTOR_H

//----------------------------------------------------------------------------------------------
// Include files
//----------------------------------------------------------------------------------------------

#include "improvedpredictor.h"

//----------------------------------------------------------------------------------------------
// CSelfAdjustingPredictor: automatically adjusts the performance indicator
//----------------------------------------------------------------------------------------------

class CSelfAdjustingPredictor : public CImprovedPredictor {
public:

	CSelfAdjustingPredictor() { m_EstimatedCorrect = false; }

	virtual void	Update(int NextElement);
	virtual bool	GetPrediction(int &Prediction);

protected:

	bool			m_EstimatedCorrect;

};

//----------------------------------------------------------------------------------------------
#endif // __SELFADJUSTINGPREDICTOR_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?