Logo Search packages:      
Sourcecode: matrem version File versions  Download package

config.cpp

#include "config.h"

unsigned char* p[MAPWIDTH];
// creature* r[MAPWIDTH];

unsigned int number_of[N_OF_SPECIES], number_of_dead[N_OF_SPECIES],
  atterrain[16],atdiet[16];
int dx[4],dy[4];
unsigned long turn;
int pop[POPMEM][N_OF_SPECIES];
int seedrand;

void itostr(int n, char* s)
{
 int j,d;
 if (n<0) {
  s[0]='-';
  n=-n;
 }
 else
  s[0]=' ';
 s[11]=NULL;
 d=1;
 for (j=0;j<10;j++) {
  s[10-j]='0'+(n/d)%10;
  d*=10;
 }
 for (j=1;j<10;j++)
  if (s[j]=='0')
   s[j]=' ';
  else break;
}


Generated by  Doxygen 1.6.0   Back to index