Esempio n. 1
0
    def update(self, current_time, delta_time):
        Action.update(self, current_time, delta_time)
        self.count += 1
        if self.count == 1:
            self.count = 0

            # print out state of master
            self.print_state()
Esempio n. 2
0
    def __init__(self, config='multipath-config.csv', use_inputs=[0, 1]):
        Action.__init__(self)

        # read path configuration
        self.matrix = MultipathBase.read_config(config)

        self.hares = []
        self.shadow_inputs = None
        self.timer = self.framerate
        self.DEBUG = False
        self.moves = []
        self.remove_hares = []
        self.use_inputs = use_inputs
        self.input_activation_delay = 0
        self.input_activation_timer = 0

        if self.DEBUG:
            print self.matrix
Esempio n. 3
0
 def __init__(self):
     Action.__init__(self)
     self.count = 0
Esempio n. 4
0
 def registered(self, options):
     Action.registered(self, options)
     self.input_activation_delay = self.get_activation_delay()
     print 'registered input activation delay in s', self.input_activation_delay