⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grind.h

📁 A*寻路算法, 源代码中使用的SDL库
💻 H
字号:
#ifndef GRIND_HEADER#define GRIND_HEADER#include <stdio.h>#include <stdlib.h>#include <SDL/SDL.h>#include <time.h>#include "define.h"#include "graphic.h"#include "struct.h"void generate_map(int map[][NUM_COLS]);void draw_map(SDL_Surface *surface, SDL_Rect grind, int map[][NUM_COLS]);void get_free_cell(int map[][NUM_COLS], cell_ind * ind);void dest_point(cell_ind dest_i, point * dest_p);bool update_position(SDL_Rect * pos, point dest);#endif

⌨️ 快捷键说明

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