10 |
|
|
11 |
*/ |
*/ |
12 |
|
|
|
|
|
|
//#include "../map/pathfinding/stlastar.h" |
|
|
//#include "../map/pathfinding/mapsearch_pod.h" |
|
|
//#include "../map/blotchmaker.h" |
|
13 |
#include "../map/map.h" |
#include "../map/map.h" |
14 |
#include "../axis/axis.h" |
#include "../axis/axis.h" |
|
//#include "../pods/pod.h" |
|
|
//#include "../pods/missions.h" |
|
|
//#include "../shapes/shape.h" |
|
|
//#include "../misc/bonus.h" |
|
15 |
|
|
16 |
#include "renderman.h" |
#include "renderman.h" |
17 |
#include "../core/turn_mgr.h" |
#include "../core/turn_mgr.h" |
|
//#include <stdlib.h> |
|
|
//#include <iostream> |
|
|
//#include <stdio.h> |
|
|
//#include <time.h> |
|
18 |
|
|
19 |
|
|
20 |
|
|
34 |
|
|
35 |
//get args: |
//get args: |
36 |
bool fullscreen = 0; |
bool fullscreen = 0; |
|
bool depthArg = false; |
|
37 |
int colorDepth = 0; |
int colorDepth = 0; |
38 |
for (int x = 1; x < argc; x++) { |
for (int x = 1; x < argc; x++) { |
39 |
if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true; continue;} |
if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true; continue;} |
40 |
if(strcmp(argv[x], "--color_depth") == 0) { depthArg = true; continue;} |
if (strcmp(argv[x], "--color_depth") == 0) { |
41 |
if(depthArg) { |
colorDepth = atoi(argv[x+1]); |
|
//This token should be the color depth: |
|
|
colorDepth = atoi(argv[x]); |
|
42 |
continue; |
continue; |
43 |
|
} |
44 |
} |
} |
|
} |
|
45 |
|
|
46 |
|
|
47 |
//Seed the random numbers: |
//Seed the random numbers: |
59 |
// this starts and runs everything by itself. ignore unused variable warning |
// this starts and runs everything by itself. ignore unused variable warning |
60 |
rm = new RenderMan(1024, 768, fullscreen, colorDepth); |
rm = new RenderMan(1024, 768, fullscreen, colorDepth); |
61 |
|
|
|
//delete themap; |
|
|
//delete blotchmaker; |
|
|
|
|
62 |
|
|
63 |
return 0; |
return 0; |
64 |
} |
} |