Skip to content

Commit

Permalink
Rename Map to CellMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Herne committed Apr 8, 2015
1 parent 02a0564 commit ee99cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Map.py → CellMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy
import os.path

class Map():
class CellMap():
"""Contains array of Cells and properties representing the map as a whole"""
CELLDAMAGEDROUGHNESS = 40
CELLBURNINGCOST = 200
Expand Down Expand Up @@ -153,7 +153,7 @@ def destroy(self, coord):
cell['fireoutchance'] = 1
cell['transparent'] = True
cell['solid'] = False
cell['roughness'] = max(100, cell['roughness'] + Map.CELLDAMAGEDROUGHNESS)
cell['roughness'] = max(100, cell['roughness'] + CellMap.CELLDAMAGEDROUGHNESS)
cell['topimage'] = 0
return True

Expand Down

0 comments on commit ee99cff

Please sign in to comment.