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

📄 patternbot.h

📁 C人工智能游戏开发的一些实例源代码 C Game development in artificial intelligence source code of some examples
💻 H
字号:
//----------------------------------------------------------------------------------------------
// Sequential Prediction Demo: The positioning pattern
// 
// Author:  Fri Mommersteeg
// Date:    10-09-2001
// File:    PatternBot.h
//----------------------------------------------------------------------------------------------

#ifndef __PATTERNBOT_H
#define __PATTERNBOT_H

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

#include "aibot.h"
#include "array.h"

//----------------------------------------------------------------------------------------------
// CPatternBot: An AI-controlled bot that can generate patterns in where it plays the ball to
//----------------------------------------------------------------------------------------------

class CPatternBot : public CAiBot {
public:

	void				SetPatternSize(int nSize);
	int 				GetPatternSize();

protected:
	
	virtual void		ShowStatistics(HDC dc) { /* do not show statistics */ }
	virtual void		OnBallCollision();
	virtual void		ResetForService(BOOL HasService);

protected:

	CArray <int>		m_Pattern;
	int					m_PatternPos;

};

//----------------------------------------------------------------------------------------------
#endif // __PATTERNBOT_H

⌨️ 快捷键说明

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