This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#pragma once
#include <easyx.h>
class Mover
{
protected:
IMAGE img;
double x, y;
double speed;
public:
Mover();
double GetX();
double GetY();
double GetSpeed();
void SetXY(double _x, double _y);
void SetSpeed(double _speed);
void SetImage(IMAGE _img);
// mover按照dir指示的方向前进,删除旧坐标处的图像,在新坐标处绘制新图像
void Move(int dir);
// 返回预测mover按照dir指示的方向前进后,下一时刻的坐标(nx,ny)
void NextXY(int dir, double& nx, double& ny);
// 按照当前坐标绘制图像
void Draw();
// 按照当前坐标清除图像
void ClearDraw();
};