def __init__(self, name): super(InplaySwitch, self).__init__(name) INPLAY_DEFEND = ParallelOne("PARALLEL_DEFEND") INPLAY_DEFEND.add_child(Analyst.BallMoved("Ball moved")) EXE_SELECTOR = Selector("EXE_SELECTOR") ONE_ROBOT = ParallelAll("ONE_ROBOT") ONE_ROBOT.add_child(Analyst.ThereIsOnlyOneRobot("ThereIsOneRobot")) ONE_ROBOT.add_child(Attacker.StopGame("AttackerStop", 0)) EXE_SELECTOR.add_child(ONE_ROBOT) SOME_ROBOTS = ParallelAll("SOME_ROBOTS") SOME_ROBOTS.add_child(Analyst.ThereAreRobots("ThereAreRobots")) SOME_ROBOTS.add_child(GoalKeeper.Defense("GoalKeeperDefense",0)) # SOME_ROBOTS.add_child(Attacker.StopGame("AttackerStop", 1)) SOME_ROBOTS.add_child(Attacker.ChipKickGuard("ChipKickGuard", 1)) SOME_ROBOTS.add_child(Defender.Defense("DefenderDefense", 2)) EXE_SELECTOR.add_child(SOME_ROBOTS) INPLAY_DEFEND.add_child(EXE_SELECTOR) INPLAY = InPlay.Execute("Execute inplay") self.add_child(INPLAY_DEFEND) self.add_child(INPLAY)
def __init__(self, name): super(Execute, self).__init__(name) ACTION = DirectAction("DirectAction") INPLAY = InPlay.Execute("Execute inplay") self.add_child(ACTION) self.add_child(INPLAY)
def __init__(self, name): super(KickoffExecute, self).__init__(name) SHOOT = Kick.SetplayShoot("Shoot", 1) INPLAY = InPlay.Execute("Execute inplay") self.add_child(SHOOT) self.add_child(INPLAY)
def __init__(self, name): super(Forcestart, self).__init__(name) IS_FORCE_START = IsFORCE_START("Is force start") EXECUTE = InPlay.Execute("Execute inplay") self.add_child(IS_FORCE_START) self.add_child(EXECUTE)
def __init__(self, name): super(ExeNormal_Shoot, self).__init__(name) self.add_child(Analyst.ThereAreRobots("ThereAreRobots")) SHOOT_ITERATOR = Iterator("SHOOT_ITERATOR") SHOOT_ITERATOR.add_child(Kick.SetplayShoot("Shoot", 1)) SHOOT_ITERATOR.add_child(InPlay.Execute("Execute inplay")) self.add_child(SHOOT_ITERATOR)
def __init__(self, name): super(OneRobotExecute, self).__init__(name) self.add_child(OneRobotDirectAction("OneRobotAction")) self.add_child(InPlay.Execute("Execute inplay"))