head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.32; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.32; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @
00001 #ifndef _PA_IA 00002 #define _PA_IA 00003 #include <nds.h> 00004 extern u16 *maze[255]; 00005 00006 00007 00008 extern inline void PA_InitAstar(u16 lx, u16 ly){ 00009 u16 i; 00010 lx = lx << 1; // u16 take up 2 spaces... 00011 00012 for (i = 0; i < ly; i++){ 00013 free(maze[i]); 00014 maze[i] = (u16*)malloc(lx); 00015 } 00016 } 00017 00018 00019 00020 u16 PA_Astar(u16 width, u16 height); 00021 00022 00023 #endif 00024 00025