EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[LIB] Get surrounding sectors
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
Gazz
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 13 Jan 2006
Posts: 12152 on topic
Location: Bavaria
Thank you for registering your game
modified
PostPosted: Sun, 10. Aug 08, 11:40    Post subject: [LIB] Get surrounding sectors Reply with quote Print

Returns a list of sectors within X jumps of the supplied sector, null if none apply.

Arg 1: start sector
Arg 2: min jump range
Arg 3: max jump range
Arg 4: include start sector

(ZIP)


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
Dogs and colour blindness explained: People with green eyes can't see dogs.


Last edited by Gazz on Mon, 11. Aug 08, 01:57; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Nadrek





Joined: 20 Mar 2008



PostPosted: Mon, 11. Aug 08, 00:33    Post subject: Reply with quote Print

Not to sound ungrateful, but how practical is it to put in a minimum range argument as well, so an expanding search can be implemented (among other things) - i.e. search between 0 and 3 sectors from starting position, then from 4 to 6, then 7 to 9, etc.

Thank you, also, for another useful library!

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 20. May 13, 09:30

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2009
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 1.96421 seconds, sql queries = 22