22 #ifndef SCUMM_HE_MOONBASE_MAP_KATTON_H 23 #define SCUMM_HE_MOONBASE_MAP_KATTON_H 27 #include "engines/scumm/he/moonbase/map_mif.h" 29 #define TEMP_REPLACEMENT_NUMA 5 30 #define NEVER_USED_NUM 99 34 class KattonGenerator {
36 KattonGenerator(
int seed);
37 ~KattonGenerator() =
default;
39 MapFile *generateMap(
int water,
int tileSet,
int mapSize,
int energy,
int terrain);
46 int _startloc[20][2] = { {}, {} };
47 int _board[MAX_TILE_COUNT][MAX_TILE_COUNT] = { {}, {} };
48 int _special[MAX_TILE_COUNT][MAX_TILE_COUNT] = { {}, {} };
50 int getRandomNumber();
52 int min(
int a,
int b,
int c);
53 int distance(
int x1,
int y1,
int x2,
int y2);
54 int plusminus(
int max);
55 int fillboards(
int num);
56 int randomplace(
int numberofplaces,
int placer);
57 int randomflip(
int numberofplaces,
int inWater);
59 int randomsplotch(
int length,
int stringiness,
int placer,
int x,
int y);
60 int goodforwater(
int x,
int y);
61 int randomwater(
int length,
int stringiness,
int x,
int y);
62 int goodforenergy(
int x,
int y,
int poolsize);
63 int findcoord(
int value,
int move);
64 int replacenum(
int replacee,
int replacer);
65 int fattenone(
int x,
int y,
int howfat,
int middle,
int ignorer,
int replacer);
67 int fattenall(
int howfat,
int middle,
int ignorer,
int replacer);
69 int whatheightstartloc(
int x,
int y);
70 int tileaverage(
int x,
int y,
int threshold);
77 #endif // SCUMM_HE_MOONBASE_MAP_KATTON_H Out move(In first, In last, Out dst)
Definition: algorithm.h:109