⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selfadjustingpredictor.h

📁 AI Game Programming Wisdom一书的源码
💻 H
字号:
//----------------------------------------------------------------------------------------------
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -