--


  << Previous Topic | Next Topic >>Return to Index  

Buffer

February 10 2005 at 12:48 PM
 

-
I was just wondering what a good in game example where i would want to use the buffer and hence the "ATTAC_ClearBuffer()"..


Also it would be nice to ahve a rexx function that returns the closest fig to a target sector.. It takes way to long to get the list of Figs(g) and then plot course (f) to the target sector from each fig.. It would be nice if we had a function to do it..

 
 Respond to this message   
AuthorReply

Buffer

February 10 2005, 2:10 PM 

That clears ATTAC's internal memory buffer of data it is parsing. ATTAC uses it in the internal scripts. It is externalized in case you might want access to it.

For nearest fig... you can call

ATTAC_Get_Sector_Info (<sector> [, <warp_num> ])


and then recursively call for each sector it finds.

Then you can call

ATTAC_HasSectorFig(<Sector>)


to find the nearest fig for a sector. that is a breadth first search and how attac does it. if i have time, i will code it up for you. It is a low priority though.
earth.


 
 Respond to this message   
Current Topic - Buffer
  << Previous Topic | Next Topic >>Return to Index  
Find more forums on Tradewars 2002Create your own forum at Network54
 Copyright © 1999-2008 Network54. All rights reserved.   Terms of Use   Privacy Statement