diff options
Diffstat (limited to 'dev/pacmath.activity/maze.py')
-rw-r--r-- | dev/pacmath.activity/maze.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/dev/pacmath.activity/maze.py b/dev/pacmath.activity/maze.py index 4bc4dfc..1930a15 100644 --- a/dev/pacmath.activity/maze.py +++ b/dev/pacmath.activity/maze.py @@ -13,13 +13,13 @@ grid = [] class Maze: """ - @var EMPTY: An empty space in the maze where a regular pellet would be - @var SOLID: A wall representation in the maze - @var OFFL: A space off limits to pacmath character - @var PELLET: Where you could move and collect a regular pellet - @var PPL: The power pellet that would give a question - @var PELLET_INT: The intersection of a pellet - @var EMPTY_INT: An intersection of a pellet + @cvar EMPTY: An empty space in the maze where a regular pellet would be + @cvar SOLID: A wall representation in the maze + @cvar OFFL: A space off limits to pacmath character + @cvar PELLET: Where you could move and collect a regular pellet + @cvar PPL: The power pellet that would give a question + @cvar PELLET_INT: The intersection of a pellet + @cvar EMPTY_INT: An intersection of a pellet """ EMPTY = 0 #You can move around @@ -94,7 +94,8 @@ class Maze: #access the grid (or map) def getGrid(self): """Returns the grid instance - @return: a map of the grid + @rtype: 2d list + @return: the grid """ #simply returns the grid (or map) @@ -106,7 +107,8 @@ class Maze: coordinates, returns solid if it is off the grid @param x: the X parameter, may be off the grid @param y: the Y parameter, may be off the grid - @return the integer representing block type, use the class constants to determine what that means. + @rtype: number + @return: the integer representing block type, use the class constants to determine what that means. """ if x < 0 or y < 0 or x >= self.width or y >= self.height: return self.SOLID |