Beispiel #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)
Beispiel #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)
Beispiel #3
0
    def pause_simulation(self):
        """

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

        """
        lib.set_speed(0.0)
Beispiel #6
0
 def play_simulation(self):
     """
     
     """
     lib.set_speed (1.0)