Files
RLD_CT/map_objects.py
2019-06-22 22:44:41 -04:00

13 lines
361 B
Python

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