#include <level_generator.h>
Static Public Methods | |
| Map | createEmptyMap (int width, int height, double fill) |
| Map | createGoals (Map const &map, int goals) |
| Map | createGems (Map const &map) |
| Movements | createSolution (Map const &init_map, int pushes, int max_effort, Map &result_map) |
Static Private Methods | |
| void | init () |
| void | removeGems (Map &map) |
Static Private Attributes | |
| bool | s_was_initialized |
| std::vector< int > | s_empty_pattern_lengths |
| std::vector< int > | s_empty_pattern_offsets |
| std::vector< int > | s_x_empty_patterns |
| std::vector< int > | s_y_empty_patterns |
|
||||||||||||||||||||||
|
Creates a map without gems or goals.
|
|
|
Fills the map with gems. All original gems are deleted.
|
|
|||||||||||||||
|
Fills the map with random goals. All original goals are deleted.
|
|
|||||||||||||||||||||||||||||
|
Tries to create a map with the given number of pushes to find a solution.
|
|
|
Initializes the class.
|
|
|
Removes all gems from the given map.
|
|
|
The lengths of the empty patterns.
|
|
|
The offsets of the empty patterns.
|
|
|
If true, init has ben called.
|
|
|
The x-coordinates of the empty patterns.
|
|
|
The y-coordinates of the empty patterns.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001