ID:265466
 
So far I can only think of two ways to make fire spread based on wind direction.

One is to pool all the adjacent turfs to the fire in lists (NOE = northeast) (NO = North), etc... then when the wind = North search through all the north turfs...

This is laggy when it comes to doing the search every time a new fire gets created and there's possibly 50 fires going on at one time.

The other option is to wait for the wind to be decided and then search the adjacent turfs x and y locations to find the north turfs. I don't know which would be faster.

What do you guys think? Any suggestions?
I would just store all fire objects in a global list and loop through them, making them spread in the direction of the fire if necessary. You could get more complicated, but the speed benefits would likely be small. Simple is often best. =)