home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / cellsim / v2_5 / cm2 / cmcllprt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-26  |  2.2 KB  |  97 lines

  1. /*
  2.  * File: cm_cellproto.h
  3.  *   By: Dave Hiebeler
  4.  *       August 1989
  5.  *
  6.  * Cellsim, cellular automata simulator
  7.  *
  8.  * Definitions for the protocol between SunView tool and CMFE program.
  9.  */
  10.  
  11. /*
  12.  *
  13.  * Cellsim copyright 1989, 1990 by Chris Langton and Dave Hiebeler
  14.  * (cgl@lanl.gov, hiebeler@heretic.lanl.gov)
  15.  *
  16.  * This package may be freely distributed, as long as you don't:
  17.  * - remove this notice
  18.  * - try to make money by doing so
  19.  * - prevent others from copying it freely
  20.  * - distribute modified versions without clearly documenting your changes
  21.  *   and notifying us
  22.  *
  23.  * Please contact either of the authors listed above if you have questions
  24.  * or feel an exception to any of the above restrictions is in order.
  25.  *
  26.  * If you make changes to the code, or have suggestions for changes,
  27.  * let us know!  If we use your suggestion, you will receive full credit
  28.  * of course.
  29.  */
  30.  
  31. /*****
  32.  * Cellsim history:
  33.  *
  34.  * Cellsim was originally written on Apollo workstations by Chris Langton.
  35.  *
  36.  * Sun versions:
  37.  *
  38.  * - version 1.0
  39.  *   by C. Ferenbaugh and C. Langton
  40.  *   released 09/02/88
  41.  *
  42.  * - version 1.5
  43.  *   by Dave Hiebeler and C. Langton  May - June 1989
  44.  *   released 07/03/89
  45.  *
  46.  * - version 2.0
  47.  *   by Dave Hiebeler and C. Langton  July - August 1989
  48.  *   never officially released (unofficially released 09/08/89)
  49.  *
  50.  * - version 2.5
  51.  *   by Dave Hiebeler and C. Langton  September '89 - February 1990
  52.  *   released 02/26/90
  53.  *****/
  54.  
  55.  
  56.  
  57. #define QUIT        1
  58. #define SEND_LT        2
  59. #define SEND_IMAGE    3
  60. #define RUN        4
  61. #define DISPLAY        5
  62. #define CHANGE_STUFF    6
  63. #define SET_DISPLAYS    7
  64. #define GET_LT        8
  65. #define PROBE        9
  66. #define USE_SOCK    10
  67. #define DONT_USE_SOCK    11
  68. #define SEND_CMAP    12
  69. #define CHANGE_DELAY    13
  70. #define RUN_FOREVER    14
  71. #define STOP_RUN    15
  72. #define RUN2        16
  73. #define SET_DISP_INTERVAL    17
  74. #define DONE        18
  75. #define ERROR        19
  76. #define LOAD_IMAGE    20
  77. #define QUICK_RANDOM    21
  78. #define GENERAL_RANDOM    22
  79. #define CLEAR        23
  80. #define GET_IMAGE    24
  81. #define SET_CM_IMAGE_DIR    25
  82. #define SET_CM_FCN_DIR        26
  83. #define SET_CM_LT_DIR        27
  84. #define LOAD_RULE        28
  85. #define SET_ZOOM    29
  86. #define SET_PAN        30
  87. #define CHANGE_IMAGE_SIZE    31
  88. #define GET_CM_IMAGE_DIR    32
  89. #define GET_CM_FCN_DIR        33
  90. #define GET_CM_LT_DIR        34
  91.  
  92. #define DEFAULT_CM_PORT CELLSIM_PORT
  93.  
  94. #define COMPRESSED    1
  95. #define UNCOMPRESSED    2
  96.  
  97.