mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-23 07:16:44 +02:00
30 lines
627 B
Python
30 lines
627 B
Python
from marl_factory_grid.environment import constants as c
|
|
from marl_factory_grid.environment.entity.entity import Entity
|
|
from marl_factory_grid.utils.utility_classes import RenderEntity
|
|
|
|
|
|
class Wall(Entity):
|
|
|
|
@property
|
|
def var_has_position(self):
|
|
return True
|
|
|
|
@property
|
|
def var_can_collide(self):
|
|
return True
|
|
|
|
@property
|
|
def encoding(self):
|
|
return c.VALUE_OCCUPIED_CELL
|
|
|
|
def render(self):
|
|
return RenderEntity(c.WALL, self.pos)
|
|
|
|
@property
|
|
def var_is_blocking_pos(self):
|
|
return True
|
|
|
|
@property
|
|
def var_is_blocking_light(self):
|
|
return True
|