Finished Part 2
This commit is contained in:
13
map_objects.py
Normal file
13
map_objects.py
Normal 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
|
||||
Reference in New Issue
Block a user