I spent countless hours trying to figure out what soya.Land.map_size did. The conclusion from this is simple: it does nothing.
I grepped the source, and the only place it appears is in the tutorials. Prehaps it's a carry-over from some older Soya version, or prehaps it's a mistake entered once in land-1.py and copied elsewhere. In any case, it's harmful to state in the tutorials that something exists and does something when soya doesn't even use it. The attached patch removes all mention of it from the tutorials.
Index: buggy.py =================================================================== RCS file: /cvs/soya/soya/tutorial/buggy.py,v retrieving revision 1.19 diff -r1.19 buggy.py 89,91d88 < # < # map_size represents the size of a map. A map is a square part of the Land that < # computes its visibility and precision. 101d97 < land.map_size = 8 Index: buggy_trimesh.py =================================================================== RCS file: /cvs/soya/soya/tutorial/buggy_trimesh.py,v retrieving revision 1.6 diff -r1.6 buggy_trimesh.py 89,91d88 < # < # map_size represents the size of a map. A map is a square part of the Land that < # computes its visibility and precision. 101d97 < land.map_size = 8 Index: game_skel-1.py =================================================================== RCS file: /cvs/soya/soya/tutorial/game_skel-1.py,v retrieving revision 1.1 diff -r1.1 game_skel-1.py 67d66 < land.map_size = 8 Index: land-1.py =================================================================== RCS file: /cvs/soya/soya/tutorial/land-1.py,v retrieving revision 1.6 diff -r1.6 land-1.py 90,92d89 < # < # map_size represents the size of a map. A map is a square part of the Land that < # computes its visibility and precision. 98d94 < land.map_size = 8
_______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
