00001 #ifndef _PA_IA
00002 #define _PA_IA
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 #include <nds.h>
00009 extern u16 *maze[255];
00010
00011
00012
00013 extern inline void PA_InitAstar(u16 lx, u16 ly){
00014 u16 i;
00015 lx = lx << 1;
00016
00017 for (i = 0; i < ly; i++){
00018 free(maze[i]);
00019 maze[i] = (u16*)malloc(lx);
00020 }
00021 }
00022
00023
00024
00025 u16 PA_Astar(u16 width, u16 height);
00026
00027
00028 #ifdef __cplusplus
00029 }
00030 #endif
00031 #endif
00032
00033