Esempio n. 1
0
    def fastforward_simulation(self):
        """
        Plays the simulation at 2, 4 or 8×
        """
        sim_speed = lib.get_speed()

        if sim_speed == 2:
            lib.set_speed(4)
        elif sim_speed == 4:
            lib.set_speed(8)
        elif sim_speed == 8:
            lib.set_speed(1)
        else:
            lib.set_speed(2)
Esempio n. 2
0
 def fastforward_simulation(self):
     """
     Plays the simulation at 2, 4 or 8×
     """
     sim_speed = lib.get_speed()
     
     if sim_speed == 2:
         lib.set_speed(4)
     elif sim_speed == 4:
         lib.set_speed(8)
     elif sim_speed == 8:
         lib.set_speed(1)
     else:
         lib.set_speed(2)
Esempio n. 3
0
    def pause_simulation(self):
        """

        """
        lib.set_speed(0.0)
Esempio n. 4
0
 def play_simulation(self):
     """
     
     """
     lib.set_speed(1.0)
Esempio n. 5
0
    def pause_simulation(self):
        """

        """
        lib.set_speed(0.0)
Esempio n. 6
0
 def play_simulation(self):
     """
     
     """
     lib.set_speed (1.0)