13 |
#include "blotchmaker.h" |
#include "blotchmaker.h" |
14 |
#include "map.h" |
#include "map.h" |
15 |
#include "../pods/pod.h" |
#include "../pods/pod.h" |
16 |
|
#include "../core/pointerhub.h" |
17 |
|
|
18 |
#include <iostream> |
#include <iostream> |
19 |
#include <stdio.h> |
#include <stdio.h> |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
Map* map; |
Map* themap; |
31 |
Blotchmaker* blotchmaker; |
Blotchmaker* blotchmaker; |
32 |
|
|
33 |
|
|
46 |
|
|
47 |
|
|
48 |
// DO 100 MAPS |
// DO 100 MAPS |
49 |
for (int x = 0; x <100; x++){ |
for (int x = 0; x <1; x++){ |
50 |
cout << "\nMap #" << x << "\n"; |
cout << "\nMap #" << x << "\n"; |
51 |
|
|
52 |
//Map* map; |
//Map* map; |
53 |
map = new Map(300,300); |
themap = new Map(300,300); |
54 |
|
|
55 |
//Blotchmaker* blotchmaker; |
//Blotchmaker* blotchmaker; |
56 |
blotchmaker = new Blotchmaker(*map); |
blotchmaker = new Blotchmaker; |
57 |
|
|
58 |
|
|
59 |
// SAMPLE CONFIG |
// SAMPLE CONFIG |
60 |
|
|
61 |
// Group vars: |
// Group vars: |
62 |
blotchmaker->SetMaxBlotches(0); |
blotchmaker->SetMaxBlotches(300); |
63 |
blotchmaker->SetTypeChances(1,0); |
blotchmaker->SetTypeChances(1,0); |
64 |
blotchmaker->SetAxisPalette(6,7,8,9); |
blotchmaker->SetAxisPalette(OBST_BLUE, OBST_GREEN, OBST_YELLOW, OBST_ORANGE); |
65 |
|
|
66 |
// SLOT 0 |
// SLOT 0 |
67 |
blotchmaker->SetBlotchType(0, 1); |
blotchmaker->SetBlotchType(0, OBST_BLOCK); |
68 |
blotchmaker->SetTilesPerBlotch(0, 0); |
blotchmaker->SetTilesPerBlotch(0, 200); |
69 |
blotchmaker->SetModeChances(0, 0, 1, 0, 0); |
blotchmaker->SetModeChances(0, 0, 1, 0, 0); |
70 |
blotchmaker->SetTurnChances(0, 3, 1, 1, 0); |
blotchmaker->SetTurnChances(0, 1, 1, 1, 1); |
71 |
blotchmaker->SetBlankShotChance(0, 0); |
blotchmaker->SetBlankShotChance(0, 0); |
72 |
blotchmaker->SetEdgeGrav(0, 0); |
blotchmaker->SetEdgeGrav(0, 0); |
73 |
blotchmaker->SetEdgeDet(0, 0); |
blotchmaker->SetEdgeDet(0, 0); |
80 |
// print the prelim map before searching |
// print the prelim map before searching |
81 |
//map->PrintToScreen(); |
//map->PrintToScreen(); |
82 |
|
|
83 |
delete map; |
delete themap; |
84 |
delete blotchmaker; |
delete blotchmaker; |
85 |
} |
} |
86 |
|
|