busbey / project-z

a system for testing agent-based goal seeking strategies in a simple and intuitive game world.
Other
0 stars 0 forks source link

fixed radius fog of war #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
fow implementation in which each hunter see just the squares at a set 
distance from themselves.

eg:

radius 1

XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXX O XX
XXXX 1 XX  
XXXX   XX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX

radius 3

XXXXXXXXX
XXXXX XXX
XXXX   XX
XXX  O  X
XX   1  O  
XXX     X
XXXX O XX
XXXXX XXX
XXXXXXXXX

Original issue reported on code.google.com by sean.bus...@gmail.com on 27 Oct 2007 at 3:44

GoogleCodeExporter commented 9 years ago
so radius 1 is "square" radius

radius 3 is manhattan distance radius

Original comment by sean.bus...@gmail.com on 27 Oct 2007 at 3:54

GoogleCodeExporter commented 9 years ago
I'm probably going to do both, with a command line option or something.

Original comment by sean.bus...@gmail.com on 27 Oct 2007 at 11:48

GoogleCodeExporter commented 9 years ago
done.  r280.

 --fog [square|manhattan] [dist]

Original comment by sean.bus...@gmail.com on 28 Oct 2007 at 3:23