#pragma once #include #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(); };