You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
499 B

This file contains ambiguous Unicode characters!

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>
#include "define.h"
class Map
{
private:
IMAGE img;
bool map[MAP_WIDTH * MAP_HEIGHT];
public:
Map();
// 获得map某点的值
bool GetOnePoint(int x, int y);
// 给map的某个点置true
void SetOnePoint(int x, int y);
void SetImage(IMAGE _img);
// 给map的某个点置false
void ClearOnePoint(int x, int y);
// 判断地图是否所有点都为false 若是则返回true
bool IsEmpty();
// 画出某个点
void DrawOnePoint(int x, int y);
// 画出所有点
void DrawAllPoint();
};