Finished Part 2

This commit is contained in:
2019-06-22 22:44:41 -04:00
parent a582009210
commit 2e7d121be3
6 changed files with 123 additions and 25 deletions

13
map_objects.py Normal file
View File

@@ -0,0 +1,13 @@
class Tile:
"""
A tile on a map. May or may not be blocked, and may or may not block sight
"""
def __init__(self, blocked, block_sight=None):
self.blocked = blocked
# By default, if a tile is blocked, it also blocks sight
if block_sight is None:
block_sight = blocked
self.block_sight = block_sight