[GRASS-SVN] r54864 - grass-addons/grass7/raster/r.agent/libagent
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 3 02:41:41 PST 2013
Author: mic
Date: 2013-02-03 02:41:41 -0800 (Sun, 03 Feb 2013)
New Revision: 54864
Modified:
grass-addons/grass7/raster/r.agent/libagent/world.py
Log:
discuss freedom on world class level
Modified: grass-addons/grass7/raster/r.agent/libagent/world.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/world.py 2013-02-03 10:38:21 UTC (rev 54863)
+++ grass-addons/grass7/raster/r.agent/libagent/world.py 2013-02-03 10:41:41 UTC (rev 54864)
@@ -31,7 +31,6 @@
Create a World, a place with a playground, where agents meet
@param type optional, the default agent type for this world
@param playground optional, if playground already exists
- @param int freedom optional, agent ability to move to neighbour cells
"""
# set an initial playground, as every world wants at least one..
if pg == None:
@@ -116,7 +115,7 @@
"""
Get all the positions reachable
@param list coordinates of a certain cell
- @param int number of potentially reachable neighbours
+ @param int freedom, number of potentially reachable neighbours
@return list list of coordinates
"""
if not freedom:
More information about the grass-commit
mailing list