generated from mwc/project_game
19 lines
391 B
Python
19 lines
391 B
Python
|
|
class Wall_vert:
|
|
character = '│'
|
|
color = 'blue'
|
|
passable = False
|
|
|
|
|
|
@classmethod
|
|
def vertline(cls, origin, height):
|
|
agents = []
|
|
x, y = origin
|
|
for dy in range(height):
|
|
wall_vert = Wall_vert((x, y + dy))
|
|
agents.append(wall_vert)
|
|
return agents
|
|
|
|
def __init__(self, position):
|
|
self.position = position
|