mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-23 15:26:43 +02:00
37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
from marl_factory_grid.environment.groups.env_objects import EnvObjects
|
|
from marl_factory_grid.environment.groups.mixins import PositionMixin, HasBoundMixin
|
|
from marl_factory_grid.modules.destinations.entitites import Destination, BoundDestination
|
|
|
|
|
|
class Destinations(PositionMixin, EnvObjects):
|
|
|
|
_entity = Destination
|
|
is_blocking_light: bool = False
|
|
can_collide: bool = False
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
def __repr__(self):
|
|
return super(Destinations, self).__repr__()
|
|
|
|
|
|
class BoundDestinations(HasBoundMixin, Destinations):
|
|
|
|
_entity = BoundDestination
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
|
class ReachedDestinations(Destinations):
|
|
_entity = Destination
|
|
is_blocking_light = False
|
|
can_collide = False
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(ReachedDestinations, self).__init__(*args, **kwargs)
|
|
|
|
def __repr__(self):
|
|
return super(ReachedDestinations, self).__repr__()
|