File utils/noisemanager.lua

Functions

NoiseManager:get_next_seed () Gets the next seed that will be used.
NoiseManager:get_noise (octaves, persistence, scale) Creates a Perlin object with the given values.
NoiseManager:get_random () Creates a PseudoRandom object.
NoiseManager:new (start_seed) Creates a new instance of NoiseManager.


Functions

NoiseManager:get_next_seed ()
Gets the next seed that will be used. Does not increment the counter.

Return value:

The next seed that will be used.
NoiseManager:get_noise (octaves, persistence, scale)
Creates a Perlin object with the given values.

Parameters

  • octaves: The count of octaves.
  • persistence: The persistence values.
  • scale: The scale.

Return value:

The new Perlin object.
NoiseManager:get_random ()
Creates a PseudoRandom object.

Return value:

The new PseudoRandom object.
NoiseManager:new (start_seed)
Creates a new instance of NoiseManager.

Parameters

  • start_seed: Optional. The initial seed value, defaults to 0.

Return value:

A new instance of NoiseManager.

Valid XHTML 1.0!