Region

by Theodis
[Share] [Zip]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Theodis.Region##version=2

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Theodis.Region##version=2

43 downloads
Version 2
Date added: Jan 21 2009
Last updated: Jan 28 2009
0 fans
A datum which uses the flood fill algorithm to find all connected nodes on a graph according to a supplied criteria [More]
Updates:
Version 2 - 1/28/2009
Massive speed increase

Usage

Region
The region object performs a flood fill to find all nodes within a graph
connected to an initial node according to the logic of the proc passed into the
constructor.

New(source,accessibleNodes)
source - The node to begin the search at.
accessibleNodes - A proc that accepts a node on the graph being search and
returns all connected nodes that meet the desired criteria of the search.

Creates the region datum and performs the search. Results are stored within the
datums contents[] var.

Update()
Performs the search again using the same criteria as when the object was
created.

Advertisement

Comments

IainPeregrine: (Aug 5 2011, 6:58 am)
Whenever I'm serious about making a game, I always come back to your libraries. I can't believe something like this has only been downloaded 33 times.