tennispredictor.h

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

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

//----------------------------------------------------------------------------------------------
// This predictor is a standard string-matching predictor which can export its window contents. 
// The AI bot uses this to paint some additional information on the screen (to show how the 
// sequential prediction works internally).
//----------------------------------------------------------------------------------------------

#ifndef __TENNISPREDICTOR_H
#define __TENNISPREDICTOR_H

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

#include "stringmatchpredictor.h"

//----------------------------------------------------------------------------------------------
// CTennisPredictor: string-matching predictor that can export its internal window
//----------------------------------------------------------------------------------------------

class CTennisPredictor : public CStringMatchPredictor {
public:
	int						GetWindowSize();
	int						GetWindowEntry(int i);
	int						GetMaxMatchSize();
	int						GetMaxMatchPosition();
};

//----------------------------------------------------------------------------------------------
#endif // __TENNISPREDICTOR_H

⌨️ 快捷键说明

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