13 lines
361 B
Python
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 |