/[projectaxis]/projectaxis/projectAxis/src/pods/pod.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/pods/pod.cpp

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

revision 1.9 by leiavoia, Sat Aug 23 17:33:39 2003 UTC revision 1.10 by leiavoia, Sun Sep 14 01:02:14 2003 UTC
# Line 11  pod.cpp Line 11  pod.cpp
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.
# Line 165  Pod* Pod::GetPodByID(int id){ Line 165  Pod* Pod::GetPodByID(int id){
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    
# Line 571  int Pod::Walk() { Line 571  int Pod::Walk() {
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    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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