This code is the property of Autodesk, Inc., and is under a perpetual
royalty free license to Rudy Rucker.

This is the source for Bugland, October 19, 1992.  The executable can be
built using Borland C++ 3.0 with the make command.  The Borland make
uses the information in MAKEFILE. and in LINK. to do the build.

LINK               230 08-01-92   1:42p
MAKEFILE          1805 08-15-92  11:13a

Utility batch files.  CLEAN gets rid of .obj files and the like; M
builds a smaller executable with no debug info, MAKEHELP turns the
help .RTF files into Windows help files, USEPIX incorporates new
icon resources.

CLEAN    BAT       110 07-01-92   2:02p
M        BAT        34 06-30-92   9:52a
MAKEHELP BAT        47 06-13-92  10:36p
USEPIX   BAT        34 05-18-92  10:07a

The .BL files are parameter files for different switch settings.

AIRWAR   BL        736 08-26-92  10:10p
BIRDCAGE BL        749 08-26-92  10:18p
BIRDS    BL        749 08-26-92  10:19p
BUSH     BL        727 06-02-92   7:34p
DOTS     BL        737 06-02-92   7:34p
ESCHER   BL        736 06-02-92   7:34p
EVOLVE   BL        701 06-03-92   5:59p
FARM     BL        763 09-03-92  10:52a
FISHTANK BL        748 08-26-92  10:17p
GNATS    BL        747 10-13-92   4:06p
GRNRAB   BL        748 08-27-92   7:11p
HERD     BL        748 09-05-92   6:42p
LIVER    BL        740 06-09-92   3:32p
MADORG   BL        719 06-02-92   2:05p
MAXIS1   BL        747 10-13-92   7:50p
METAZAP  BL        714 06-14-92   9:00p
SANTAFE  BL        733 06-13-92  11:47p
SCRIBBLE BL        732 06-02-92   7:35p
SHUKHERD BL        752 09-06-92   5:30p
SMELLY   BL        736 06-03-92   9:26a
START    BL        755 10-17-92   5:25p
SURFIN   BL        727 06-03-92  10:35a
TERRA    BL        746 08-27-92   7:07p
TURMITE  BL        739 06-02-92   7:36p
XMAS     BL        789 06-11-92   3:58p

The .BMP files are bitmaps used in the icons.  There are nine 
2D icons of each of the three colors R,G, and B.  There are eight
"3D" icons of different sizes.

ABOUT1   BMP      2710 10-22-91   1:00p
ABOUT2   BMP      2710 10-22-91   1:00p
ABOUT3   BMP      2710 10-22-91  12:59p
BODY2B0  BMP       246 06-08-92  10:37p
BODY2B1  BMP       310 06-08-92  10:49p
BODY2B2  BMP       310 06-08-92  10:46p
BODY2B3  BMP       310 06-08-92   9:51p
BODY2B4  BMP       310 06-08-92  10:05p
BODY2B5  BMP       310 06-08-92  10:15p
BODY2B6  BMP       310 06-08-92  10:31p
BODY2B7  BMP       190 05-19-92  11:50a
BODY2B8  BMP       246 06-08-92  10:32p
BODY2E   BMP       246 06-11-92   9:56a
BODY2G0  BMP       246 06-11-92  10:02a
BODY2G1  BMP       182 06-08-92  11:04p
BODY2G2  BMP       182 06-08-92  11:20p
BODY2G3  BMP       190 06-08-92  11:25p
BODY2G4  BMP       182 06-08-92  11:33p
BODY2G5  BMP       182 06-08-92  11:44p
BODY2G6  BMP       182 06-08-92  11:52p
BODY2G7  BMP       246 06-08-92  11:48p
BODY2G8  BMP       182 06-08-92  11:53p
BODY2R0  BMP       310 06-08-92  11:59p
BODY2R1  BMP       310 06-09-92  12:03a
BODY2R2  BMP       310 06-09-92  12:08a
BODY2R3  BMP       310 06-09-92  12:15a
BODY2R4  BMP       182 06-09-92  12:47a
BODY2R5  BMP       182 06-09-92  12:51a
BODY2R6  BMP       182 06-09-92  12:55a
BODY2R7  BMP       190 06-09-92  12:58a
BODY2R8  BMP       190 06-09-92   1:03a
BOD_3D_0 BMP       130 06-09-92  11:24a
BOD_3D_1 BMP       138 06-09-92  11:27a
BOD_3D_2 BMP       146 06-09-92  11:30a
BOD_3D_3 BMP       190 06-09-92  11:35a
BOD_3D_4 BMP       206 06-09-92  11:40a
BOD_3D_5 BMP       222 06-09-92  11:47a
BOD_3D_6 BMP       238 06-09-92  11:54a
BOD_3D_7 BMP       358 06-09-92  12:05p
FOOD     BMP       926 06-16-92  11:23a
POISON   BMP      1192 05-15-92   2:46p

The .BUG files save the genetic info of an individual bug.

FREERUN  BUG      8313 06-13-92  10:45p
LACEBELT BUG      8371 07-20-92   4:32p
PENTAGON BUG      8281 08-19-92   8:56p
TYPE4    BUG      8287 07-20-92   4:36p

Although this program is complied as a C++ program it is 99% pure C.
C++ was adopted so that I could use the LINALG.CPP module for vectors.
LINALG.CPP is not licensed to Rudy Rucker and must be rewritten.
A brief note on each module is given.

ABOUT    CPP      1829 08-01-92   1:42p		Shows an info box.
ALTER    CPP     11907 09-09-92  10:09a		Carries out changes.
BREED    CPP     25633 08-26-92   9:39p		Genetic algorithms.
BUG      CPP    180328 09-09-92  10:34a		Main module.
CA       CPP     22652 06-03-92   9:45a		Cellular automata.
COLONY   CPP     19138 09-03-92  10:42a		Drives Colony dialog box.
CONTROL  CPP      2373 06-29-92  11:31a		Obsolete.
DIBLIB   CPP      5309 08-05-92   1:40p		Obsolete.
ECOLOGY  CPP      7990 08-05-92   1:19p		Drives Ecology dialog box.
ENTROPY  CPP      2571 06-02-92   1:07p		Measures entropy of paths.
FURNISH  CPP      5837 07-28-92   1:46p		Drives food and poison patch.
LABEL    CPP      1038 07-25-92  10:56a		Utility for dialog boxes.
LINALG   CPP     39756 07-25-92  11:41a		Vector algebra (must rewrite).
LOADSAVE CPP     26016 08-15-92  10:21a		Load and save param files.
METRIC   CPP      9331 09-08-92  12:02p		Metric for flocking.
RANDOM   CPP      3341 08-04-92  11:17a		Rucker-Wolfram randomizer.
SCORE    CPP      4211 08-25-92   4:47p		Drives Score dialog box.
SHAPE    CPP     15200 09-06-92   5:07p		Drives Bug dialog box.
WORLD    CPP     11809 08-15-92  11:07a		Drives World dialog box.

The .CUR files are special bitmaps used for cursors.

BOLT     CUR       326 05-28-92  12:25p
CARRY    CUR       326 05-28-92  12:25p
COPY     CUR       330 06-10-92   8:41a
HAND     CUR       330 05-28-92  11:31a
ISOLATE  CUR       330 07-20-92  11:38a
LENS     CUR       326 05-28-92  12:44p
SPAWNER  CUR       326 05-28-92  12:38p

The .DEF file is a Windows protocal listing some info.

BUG      DEF       570 08-26-92   9:54p

The .DLG files describe the apperance of dialog boxes.

ABOUT    DLG       582 09-27-92   1:22a
COLONY   DLG      6457 09-03-92  10:49a
CONTROL  DLG      1558 06-11-92  11:14a
ECOLOGY  DLG      3757 06-13-92  11:07p
SCORE    DLG       805 07-17-92  12:17p
SHAPE    DLG      2813 08-19-92   9:13a
WORLD    DLG      3157 06-12-92   3:27p

The .DLL files are dynamic link libraries.  COMMDLG.DLL is distributed
by Microsoft and creates uniform file save and select boxes.

COMMDLG  DLL     88176 01-20-92   9:44a

DIPLOID.DOC describes a scheme for putting in dominant and
recessive genes.

DIPLOID  DOC      3712 02-13-92  10:23a

BUG.DSK is a file that remembers the setting of the Integrated
Development Environment for Borland C++.

BUG      DSK      1809 09-09-92  10:09a

BUG.EXE is the executable, the big enchilada, the point of all this.

BUG      EXE    414125 09-27-92   1:23a

The .H files are header files.  They could also be called .HPP files,
as the compile is under C++.  They get included in the code files
at compile time.

BUG      H       17080 09-08-92  10:18a
BUGDIR   H        4443 04-30-92   3:00p
BUGMENU  H        1396 09-08-92   9:57a
CA       H          48 03-12-92   1:40p
COLONY   H        1540 09-03-92  10:38a
CONTROL  H         309 06-11-92  11:14a
DIBLIB   H         841 05-24-92   8:50a
ECOLOGY  H        1159 06-13-92  11:01p
GRTYPES  H        2331 08-13-92  12:45p
HELP     H          16 04-30-92  11:03a
RANDOM   H         458 08-04-92  11:17a
SCORE    H         381 06-09-92   1:50p
SHAPE    H         622 08-15-92  10:44a
SPIN     H         723 02-21-91   1:00a
WORLD    H         807 06-02-92   9:59a

The .HLP files are Windows help files that are builed using the 
HPJ (help project) files.

CONTACT  HLP      3919 07-29-92  12:36p
CONTROLS HLP     22054 08-04-92   2:11p
PAPER    HLP     29126 07-29-92  12:36p
CONTACT  HPJ        47 06-13-92   4:45p
CONTROLS HPJ        48 06-13-92  10:36p
PAPER    HPJ        45 06-13-92   4:44p

The .HPP are C++ include header files.  LINALG.HPP needs to be rewritten
by Rudy so as not to violate Autodesk copyright.

COMMDLG  HPP      9901 07-25-92  11:29a
LINALG   HPP     13334 07-25-92  10:06a

The .ICO files are another kind of bitmap, they appear on the Score
dialog.

BLUECOL  ICO       766 05-24-92   8:10a
BUG      ICO       766 11-15-91   2:54p
GREENCOL ICO       766 05-24-92   8:05a
REDCOL   ICO       766 05-24-92   8:06a

The .LIB files go with the matching .DLL files.

COMMDLG  LIB      3072 05-02-92   1:30p
SPIN     LIB      1024 06-08-92   2:49p

The BUG.PRJ file is for use in the Borland Integrated Development 
Environment.

BUG      PRJ     10841 09-09-92  10:09a

BUG.RC lists the resources used by the program.  BUGMENU.RC has
the effect of creating the menu bar.

BUG      RC       2331 09-08-92   9:57a
BUGMENU  RC       2570 09-08-92   9:59a

The .RTF files are rich text format files used for the Windows help
files.

CONTACT  RTF      3267 07-17-92   1:09p
CONTROLS RTF     21503 08-04-92  12:42p
PAPER    RTF     29066 06-14-92   6:55p

The .WOR files save all the parameters and all the genes --- the full
state of the program.  ACTIVE.WOR always keeps the current state,
updating (if you like) each time you exit Bugland.

ACTIVE   WOR         0 10-17-92   5:28p

This is the README file.

README               0 10-19-92  10:56a

      157 file(s)    1202876 bytes
