/[projectaxis]/projectaxis/projectAxis/src/map/astartest.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/map/astartest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by leiavoia, Fri Jul 25 21:18:09 2003 UTC revision 1.4 by leiavoia, Sat Aug 23 17:32:22 2003 UTC
# Line 13  Line 13 
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>
# Line 26  using namespace std; Line 27  using namespace std;
27    
28    
29    
30  Map* map;  Map* themap;
31  Blotchmaker* blotchmaker;  Blotchmaker* blotchmaker;
32    
33    
# Line 45  clock_t start = clock(); Line 46  clock_t start = clock();
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);
# Line 79  for (int x = 0; x <100; x++){ Line 80  for (int x = 0; x <100; x++){
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26