📄 hum.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -