hum.h

来自「人工神经网络实现的扫雷机程序,用遗传算法进化网络的权重效果很好」· C头文件 代码 · 共 53 行

H
53
字号


#ifndef	HUM_H
#define HUM_H

//------------------------------------------------------------------------
//
//	Name: CMineSweeper.h
//
//  Author: Mat Buckland 2002
//
//  Desc: Class to create a minesweeper object used in the 'Smart Sweeper'
//        example from the book Game AI Programming with Neural Nets and 
//        Genetic Algorithms.
//
//------------------------------------------------------------------------
#include <vector>
#include <math.h>

#include "CNeuralNet.h"
#include "utils.h"
#include "C2DMatrix.h"
#include "SVector2D.h"
#include "CParams.h"
class hum
{


private:

	

	//its  speed;
	double	speed;


	//its  lookat


	SVector2D	lookat;
	
	//time to relax
	int		lag;
	int		run;
	double		scale;
public:
		SVector2D	pos;
	hum();
	void	update();
	void	worldtransform(vector<SPoint> & hum);
};
#endif

⌨️ 快捷键说明

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