Example #1
0
    def handle_init(self, channel, data):
        msg = forseti2.Match.decode(data)
        configurator.do_config(self.lc, msg.team_numbers, msg.gold_items_loc, msg.blue_items_loc)
        #self.timer.start()

        # Reset the scores
        self.seq_score.publish(action_reset=True)
        self.current_match = msg.match_number
        self.totals[msg.match_number] = {'alliance1': 0, 'alliance2': 0}
    def handle_init(self, channel, data):
        msg = forseti2.Match.decode(data)
        configurator.do_config(self.lc, msg.team_numbers, msg.gold_items_loc,
                               msg.blue_items_loc)
        #self.timer.start()

        # Reset the scores
        self.seq_score.publish(action_reset=True)
        self.current_match = msg.match_number
        self.totals[msg.match_number] = {'alliance1': 0, 'alliance2': 0}
Example #3
0
 def handle_init(self, channel, data):
     msg = Forseti.Match.decode(data)
     configurator.do_config(self.lc, msg.team_numbers)
     self.timer.match.teams = [Team(msg.team_numbers[i],
         msg.team_names[i]) for i in range(4)]
     self.timer.reset()