00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EASYSOK_LEVEL_GENERATOR_INC_GUARD_H
00022 #define EASYSOK_LEVEL_GENERATOR_INC_GUARD_H
00023
00024
00025 #include <vector>
00026
00027 #include "map.h"
00028
00029
00030
00031
00039 class LevelGenerator
00040 {
00041 public:
00042
00052 static Map createEmptyMap(int width, int height, double fill);
00053
00054
00064 static Map createGoals(Map const & map, int goals);
00065
00066
00075 static Map createGems(Map const & map);
00076
00077
00088 static Movements createSolution(Map const & init_map, int pushes, int max_effort, Map & result_map);
00089
00090
00091 private:
00092
00097 static void init();
00098
00099
00106 static void removeGems(Map & map);
00107
00108
00113 static bool s_was_initialized;
00114
00115
00120 static std::vector<int> s_empty_pattern_lengths;
00121
00122
00127 static std::vector<int> s_empty_pattern_offsets;
00128
00129
00134 static std::vector<int> s_x_empty_patterns;
00135
00136
00141 static std::vector<int> s_y_empty_patterns;
00142 };
00143
00144 #endif