11 |
|
|
12 |
|
|
13 |
// constants |
// constants |
14 |
static const long TIMING_LOOP_DELAY = 75000; // ticks per re-display for *UNIX only* in shell debug output |
|
15 |
static const int MAX_POD_SIZE = 500; // the number the combined size of all shapes in the pod must not exceed. |
static const int MAX_POD_SIZE = 500; // the number the combined size of all shapes in the pod must not exceed. |
16 |
static const int MAX_NUM_SHAPES = 12; // even if the MAX_POD_SIZE should allow it, number of shapes in the pod should not exceed this. |
static const int MAX_NUM_SHAPES = 12; // even if the MAX_POD_SIZE should allow it, number of shapes in the pod should not exceed this. |
17 |
static const int ROAD_TRAMPLE_DIVISOR = 50; // FIXME: ~70 after football demo. road trample = pod size / trample divisor :: 50 is average for most shapes. |
static const int ROAD_TRAMPLE_DIVISOR = 50; // FIXME: ~70 after football demo. road trample = pod size / trample divisor :: 50 is average for most shapes. |
165 |
|
|
166 |
// get a pod pointer based on it's vector index |
// get a pod pointer based on it's vector index |
167 |
Pod* Pod::GetPodByIndex(int i){ |
Pod* Pod::GetPodByIndex(int i){ |
168 |
if (i >= pod_index.size()) { return NULL; } |
if (i >= int(pod_index.size())) { return NULL; } |
169 |
return pod_index[i]; |
return pod_index[i]; |
170 |
} |
} |
171 |
|
|
571 |
// TODO: pick up map specials |
// TODO: pick up map specials |
572 |
|
|
573 |
// timing loop and shell display |
// timing loop and shell display |
574 |
clock_t s = clock(); |
//clock_t s = clock(); |
575 |
while ( (clock() - s) < TIMING_LOOP_DELAY) {continue;} // NOTE: unix dependent time ticks |
//while ( (clock() - s) < TIMING_LOOP_DELAY) {continue;} // NOTE: unix dependent time ticks |
576 |
// move the pod on the screen |
// move the pod on the screen |
577 |
rm->MovePod(was->x, was->y, is->x, is->y); |
rm->MovePod(was->x, was->y, is->x, is->y); |
578 |
|
|