Esempio n. 1
0
    def get_actions_currently_available(self) -> List[AvailableActions]:
        actions = []
        for player in self.known_players:
            actions.append(BotAction(description=f'Flip {highlight_player_name(player)}', action_type=FLIP_CAR,
                                     data={PLAYER_NAME: player.name}))
            actions.append(BotAction(description=f'Nudge {highlight_player_name(player)}', action_type=NUDGE_CAR,
                                     data={PLAYER_NAME: player.name}))

        return [AvailableActions("Car Botherer", None, actions)]
Esempio n. 2
0
 def get_actions_currently_available(self) -> List[AvailableActions]:
     actions = []
     for name in self.available_bot_names:
         blue_text = highlight_team_color(f"blue {name}", 0)
         actions.append(BotAction(description=f"Spawn {blue_text}", action_type=SPAWN, data={'name': name, 'team': 0}))
     for name in self.available_bot_names:
         orange_text = highlight_team_color(f"orange {name}", 1)
         actions.append(BotAction(description=f"Spawn {orange_text}", action_type=SPAWN, data={'name': name, 'team': 1}))
     return [AvailableActions(self.name, None, actions)]
Esempio n. 3
0
    def get_actions_currently_available(self) -> List[AvailableActions]:
        actions = []
        for player in self.known_players:
            actions.append(
                BotAction(description=
                          f'Give {highlight_player_name(player)} full boost',
                          action_type=GIVE_FULL_BOOST,
                          data={PLAYER_NAME: player.name}))
            actions.append(
                BotAction(
                    description=
                    f'Drain all boost from {highlight_player_name(player)}',
                    action_type=REMOVE_BOOST,
                    data={PLAYER_NAME: player.name}))

        return [AvailableActions("Boost Monkey", None, actions)]
Esempio n. 4
0
 def get_actions_currently_available(self) -> List[AvailableActions]:
     actions = AvailableActions(
         entity_name="ActionBot",
         current_action=self.action_broker.current_action,
         available_actions=[
             BotAction(description="Turn left",
                       action_type="turn",
                       data={'value': -1}),
             BotAction(description="Drive straight",
                       action_type="turn",
                       data={'value': 0}),
             BotAction(description="Turn right",
                       action_type="turn",
                       data={'value': 1}),
             BotAction(description="Stop",
                       action_type="throttle",
                       data={'value': 0}),
             BotAction(description="Go",
                       action_type="throttle",
                       data={'value': 1}),
             BotAction(description="Boost",
                       action_type="boost",
                       data={'value': True}),
             BotAction(description="Unboost",
                       action_type="boost",
                       data={'value': False}),
         ])
     return [actions]
Esempio n. 5
0
 def get_actions_currently_available(self) -> List[AvailableActions]:
     actions = []
     for player in self.known_players:
         actions.append(
             BotAction(
                 description=
                 f'Make {highlight_player_name(player)} the laser boi',
                 action_type=SET_LASER_BOI,
                 data={PLAYER_NAME: player.name}))
     return [AvailableActions("Laserboi", None, actions)]
Esempio n. 6
0
 def get_actions_currently_available(self) -> List[AvailableActions]:
     actions = []
     actions.append(BotAction(description="Freeze ball", action_type=FREEZE))
     actions.append(BotAction(description="Nudge ball", action_type=NUDGE))
     return [AvailableActions("Ball Botherer", None, actions)]