PlaceChanger

class PlaceChanger

The PlaceChanger

  • Start PlaceChanger

    Declaration

    Swift

    func start()
  • Stop PlaceChanger

    Declaration

    Swift

    func stop()
  • Change place with random selected place

    Declaration

    Swift

    @objc
    private func changePlace(timer: Timer?)

    Parameters

    timer

    The timer

  • Get a random Index from an given array without repeating an index

    Declaration

    Swift

    private func randomSequenceGenerator(min: Int, max: Int) -> () -> Int

    Parameters

    min

    min. value

    max

    max. value

    Return Value

    random integer (without a repeating random int)