[gameprogrammer] storing lists of units

I need to store the list of NPCs in my game, and Im looking the best way
to do so. I need to be able to quickly find only the ones closer to
certain location to pass them to my lua script. Whats the best structure
and algorithm to do this?
  

-- 
Roger Durañona Vargas
Linux user #180787
A cada momento nos rodea lo desconocido. Es alli
donde uno tiene que buscar el conocimiento.
Paul Muad'Dib Atreides. Children of Dune



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: