mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-09-15 23:37:14 +02:00
object and objects are now private
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from marl_factory_grid.environment import constants as c
|
||||
from marl_factory_grid.environment.entity.entity import Entity
|
||||
from marl_factory_grid.environment.entity.object import Object
|
||||
from marl_factory_grid.environment.entity.object import _Object
|
||||
from marl_factory_grid.modules.batteries import constants as b
|
||||
from marl_factory_grid.utils.utility_classes import RenderEntity
|
||||
|
||||
|
||||
class Battery(Object):
|
||||
class Battery(_Object):
|
||||
|
||||
@property
|
||||
def var_can_be_bound(self):
|
||||
|
@@ -4,7 +4,7 @@ from marl_factory_grid.modules.items import constants as i
|
||||
from marl_factory_grid.environment import constants as c
|
||||
|
||||
from marl_factory_grid.environment.groups.collection import Collection
|
||||
from marl_factory_grid.environment.groups.objects import Objects
|
||||
from marl_factory_grid.environment.groups.objects import _Objects
|
||||
from marl_factory_grid.environment.groups.mixins import PositionMixin, IsBoundMixin, HasBoundMixin
|
||||
from marl_factory_grid.environment.entity.agent import Agent
|
||||
from marl_factory_grid.modules.items.entitites import Item, DropOffLocation
|
||||
@@ -65,7 +65,7 @@ class Inventory(IsBoundMixin, Collection):
|
||||
self._collection = collection
|
||||
|
||||
|
||||
class Inventories(HasBoundMixin, Objects):
|
||||
class Inventories(HasBoundMixin, _Objects):
|
||||
_entity = Inventory
|
||||
|
||||
@property
|
||||
|
@@ -1,10 +1,10 @@
|
||||
import random
|
||||
from typing import List, Tuple
|
||||
|
||||
from marl_factory_grid.environment.entity.object import Object
|
||||
from marl_factory_grid.environment.entity.object import _Object
|
||||
|
||||
|
||||
class Zone(Object):
|
||||
class Zone(_Object):
|
||||
|
||||
@property
|
||||
def positions(self):
|
||||
|
@@ -1,8 +1,8 @@
|
||||
from marl_factory_grid.environment.groups.objects import Objects
|
||||
from marl_factory_grid.environment.groups.objects import _Objects
|
||||
from marl_factory_grid.modules.zones import Zone
|
||||
|
||||
|
||||
class Zones(Objects):
|
||||
class Zones(_Objects):
|
||||
|
||||
symbol = None
|
||||
_entity = Zone
|
||||
|
Reference in New Issue
Block a user