grind.h
来自「A*寻路算法, 源代码中使用的SDL库」· C头文件 代码 · 共 19 行
H
19 行
#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 + =
减小字号Ctrl + -
显示快捷键?