change 7v7 3v3 FIFA code
This commit is contained in:
@@ -48,3 +48,15 @@ class HLAdultField(Field):
|
||||
@override
|
||||
def get_length(self):
|
||||
return 14
|
||||
|
||||
class Soccer7vs7Field(Field):
|
||||
def __init__(self, world):
|
||||
super().__init__(world)
|
||||
|
||||
@override
|
||||
def get_width(self):
|
||||
return 36
|
||||
|
||||
@override
|
||||
def get_length(self):
|
||||
return 55
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from dataclasses import Field
|
||||
import numpy as np
|
||||
from world.commons.other_robot import OtherRobot
|
||||
from world.commons.field import FIFAField, HLAdultField
|
||||
from world.commons.field import FIFAField, HLAdultField, Soccer7vs7Field
|
||||
from world.commons.play_mode import PlayModeEnum, PlayModeGroupEnum
|
||||
|
||||
|
||||
@@ -62,5 +62,7 @@ class World:
|
||||
def __initialize_field(self, field_name: str) -> Field:
|
||||
if field_name in ('hl_adult', 'hl_adult_2020', 'hl_adult_2019',):
|
||||
return HLAdultField(world=self)
|
||||
elif field_name in ('sim3d_7vs7'):
|
||||
return Soccer7vs7Field(world=self)
|
||||
else:
|
||||
return FIFAField(world=self)
|
||||
Reference in New Issue
Block a user