home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Journal 1990 - 1995 / CUJ.iso / image90 / 9010t1f3.pcx (.png) < prev    next >
PC Paintbrush Image  |  1996-01-31  |  68KB  |  712x418  |  4-bit (4 colors)
Labels: text | screenshot | font | number | display
OCR: # File View Run Breakpoints Data Options Window Help READY [-] Module: ANTHILL File: E:\ANTHILL\ANTHILL. CPP ( Modified) 270-1-[$] void Queent : doTheAntThing( void) // Every ant uses one energy unit per cycle mEnergy -= 1; nVelX = randor uMaxSpeed+1)M(randomK( Z) ? 1 : - 1 ) nVely = random( uMaxSpeed+1>( randorK( 2).7 1 : - 1 ); if (nEnergy(1) { dig(): else { // Turn around if at limits of areal if ( distance( nInitX, nInitY. nX + nVelX, nY + nVelY) > uMaxRange) { nVelx = - nValx ; nVelY = - nValY : ... ..... . . ... // Move somewhere MOUB( ) ; F1-Help FZ-Bkpt F3-Mod F4-Here FS-Zoom F6-Next F7-Trace FB-Step F9-Run F10-Menu