home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / wbgames / battlesheep / source / placegads.h next >
C/C++ Source or Header  |  1977-12-31  |  7KB  |  158 lines

  1. struct IntuiText menuTexts[] = {
  2.     {0, 1, JAM2, 0, 1, &Topaz80, "Thinking \273", NULL},
  3.     {0, 1, JAM2, 0, 1, &Topaz80, "Sound    \273", NULL},
  4.     {0, 1, JAM2, 0, 1, &Topaz80, "==========", NULL},
  5.     {0, 1, JAM2, 0, 1, &Topaz80, "Quit", NULL},
  6.     {0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Dumbest", NULL},
  7.     {0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Average", NULL},
  8.     {0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Smartest", NULL},
  9.     {0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Off", NULL},
  10.     {0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "On", NULL},
  11.     };
  12. #define MW 88
  13. #define SW CHECKWIDTH + 72
  14. #define MH 10
  15. struct MenuItem subItemsA[] = {
  16.     {&subItemsA[1], MW-2,-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
  17.         ~1, &menuTexts[4], NULL, NULL, NULL, NULL},
  18.     {&subItemsA[2],MW-2,MH-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
  19.         ~2, &menuTexts[5], NULL, NULL, NULL, NULL},
  20.     {NULL,MW-2,2*MH-2,SW,MH, ITEMTEXT|CHECKIT|CHECKED|ITEMENABLED|HIGHCOMP,
  21.         ~4, &menuTexts[6], NULL, NULL, NULL, NULL},
  22.     };
  23. struct MenuItem subItemsB[] = {
  24.     {&subItemsB[1], MW-2,-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
  25.         ~1, &menuTexts[7], NULL, NULL, NULL, NULL},
  26.     {NULL,MW-2,MH-2,SW,MH, ITEMTEXT|CHECKIT|CHECKED|ITEMENABLED|HIGHCOMP,
  27.         ~2, &menuTexts[8], NULL, NULL, NULL, NULL},
  28.     };
  29. struct MenuItem items[] = {
  30.     {&items[1], 0, 0, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
  31.         0, &menuTexts[0], NULL, NULL, &subItemsA[0], NULL},
  32.     {&items[2], 0, MH, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
  33.         0, &menuTexts[1], NULL, NULL, &subItemsB[0], NULL},
  34.     {&items[3], 0, 2*MH, MW, MH, ITEMTEXT|ITEMENABLED,
  35.         0, &menuTexts[2], NULL, NULL, NULL, NULL},
  36.     {NULL, 0, 3*MH, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
  37.         0, &menuTexts[3], NULL, NULL, NULL, NULL},
  38.     };
  39. struct Menu strip = { NULL, 2, 0, 0, MH, MENUENABLED, "Game", &items[0]};
  40.  
  41. #define SETUP  100
  42. UWORD dat1[] = {0,11, 0,0, 118,0};
  43. UWORD dat2[] = {1,10, 1,1};
  44. UWORD dat3[] = {1,11, 119,11, 119,0};
  45. UWORD dat4[] = {118,1, 118,10};
  46. struct Border gbA = {0, 0, 2, 0, JAM2, 3, dat1, NULL};
  47. struct Border gbB = {0, 0, 2, 0, JAM2, 2, dat2, &gbA};
  48. struct Border gbC = {0, 0, 1, 0, JAM2, 3, dat3, &gbB};
  49. struct Border gbD = {0, 0, 1, 0, JAM2, 2, dat4, &gbC};
  50. struct IntuiText gtxt = {1,0,JAM2,36,2,&Topaz80,"Set Up", NULL};
  51. struct Gadget gad = {NULL, 15, 157, 120, 12, GFLG_GADGHCOMP,
  52.         GACT_RELVERIFY, GTYP_BOOLGADGET, &gbD, NULL, >xt, NULL,
  53.         NULL, SETUP, NULL};
  54.  
  55. #define UP_GAD 200
  56. #define DN_GAD 201
  57. #define LT_GAD 202
  58. #define RT_GAD 203
  59. #define RN_GAD 204
  60. #define RO_GAD 205
  61. #define QT_GAD 211
  62. #define S6_GAD 206
  63. #define S5_GAD 207
  64. #define S4_GAD 208
  65. #define S3_GAD 209
  66. #define S2_GAD 210
  67.  
  68. static UWORD bdata1[] = {0,11, 0,0, 48,0};
  69. static UWORD bdata2[] = {1,1, 1,10};
  70. static UWORD bdata3[] = {1,11, 49,11, 49,0};
  71. static UWORD bdata4[] = {48,1, 48,10};
  72.  
  73. static UWORD bdata5[] = {0,11, 0,0, 98,0};
  74. static UWORD bdata6[] = {1,1, 1,10};
  75. static UWORD bdata7[] = {1,11, 99,11, 99,0};
  76. static UWORD bdata8[] = {98,1, 98,10};
  77.  
  78. static struct Border b1 = {0, 0, 2, 0, JAM2, 3, bdata1, NULL,};
  79. static struct Border b2 = {0, 0, 2, 0, JAM2, 2, bdata2, &b1,};
  80. static struct Border b3 = {0, 0, 1, 0, JAM2, 3, bdata3, &b2,};
  81. static struct Border b4 = {0, 0, 1, 0, JAM2, 2, bdata4, &b3,};
  82.  
  83. static struct Border b5 = {0, 0, 2, 0, JAM2, 3, bdata5, NULL,};
  84. static struct Border b6 = {0, 0, 2, 0, JAM2, 2, bdata6, &b5,};
  85. static struct Border b7 = {0, 0, 1, 0, JAM2, 3, bdata7, &b6,};
  86. static struct Border b8 = {0, 0, 1, 0, JAM2, 2, bdata8, &b7,};
  87.  
  88. static struct IntuiText tx1 = {1, 0, JAM2, 17, 2, &Topaz80, "UP", NULL};
  89. static struct IntuiText tx2 = {1, 0, JAM2, 9, 2, &Topaz80, "DOWN", NULL};
  90. static struct IntuiText tx3 = {1, 0, JAM2, 9, 2, &Topaz80, "LEFT", NULL};
  91. static struct IntuiText tx4 = {1, 0, JAM2, 5, 2, &Topaz80, "RIGHT", NULL};
  92. static struct IntuiText tx5 = {1, 0, JAM2, 9, 2, &Topaz80, "Rand", NULL};
  93. static struct IntuiText tx6 = {1, 0, JAM2, 9, 2, &Topaz80, "Turn", NULL};
  94. static struct IntuiText tx7 = {1, 0, JAM2, 14,2,&Topaz80,"Big Daddy",NULL};
  95. static struct IntuiText tx8 = {1, 0, JAM2, 18, 2,&Topaz80,"Mathilda",NULL};
  96. static struct IntuiText tx9 = {1, 0, JAM2, 18, 2,&Topaz80,"Lamikins",NULL};
  97. static struct IntuiText tx10= {1, 0, JAM2, 22, 2,&Topaz80,"Lil Sis",NULL,};
  98. static struct IntuiText tx11= {1, 0, JAM2, 22, 2,&Topaz80,"Baaa-by",NULL,};
  99. static struct IntuiText tx12= {1, 0, JAM2,  9, 2,&Topaz80,"Okay",NULL,};
  100.  
  101. struct Gadget g1 = {NULL, 93, 91, 50, 12, GFLG_GADGHCOMP, 
  102.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx1, NULL,
  103.     NULL, UP_GAD, NULL,};
  104. struct Gadget g2 = {&g1, 93, 117, 50, 12, GFLG_GADGHCOMP, 
  105.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx2, NULL,
  106.     NULL, DN_GAD, NULL,};
  107. struct Gadget g3 = {&g2, 55, 104, 50, 12, GFLG_GADGHCOMP, 
  108.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx3, NULL,
  109.     NULL, LT_GAD, NULL,};
  110. struct Gadget g4 = {&g3, 131, 104, 50, 12, GFLG_GADGHCOMP, 
  111.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx4, NULL,
  112.     NULL, RT_GAD, NULL,};
  113. struct Gadget g5 = {&g4, 55, 139, 50, 12, GFLG_GADGHCOMP, 
  114.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx5, NULL,
  115.     NULL, RN_GAD, NULL,};
  116. struct Gadget g6 = {&g5, 131, 139, 50, 12, GFLG_GADGHCOMP, 
  117.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx6, NULL,
  118.     NULL, RO_GAD, NULL,};
  119. struct Gadget g7 = {&g6, 360, 88, 100, 12,
  120.     GFLG_GADGHCOMP | GFLG_SELECTED, GACT_RELVERIFY | GACT_TOGGLESELECT,
  121.     GTYP_BOOLGADGET, &b8, NULL, &tx7, NULL, NULL, S6_GAD, NULL,};
  122. struct Gadget g8 = {&g7, 360, 101, 100, 12, GFLG_GADGHCOMP, 
  123.     GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx8,
  124.     NULL, NULL, S5_GAD, NULL,};
  125. struct Gadget g9 = {&g8, 360, 114, 100, 12, GFLG_GADGHCOMP, 
  126.     GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx9,
  127.     NULL, NULL, S4_GAD, NULL,};
  128. struct Gadget g10 = {&g9, 360, 127, 100, 12, GFLG_GADGHCOMP, 
  129.     GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx10,
  130.     NULL, NULL, S3_GAD, NULL,};
  131. struct Gadget g11 = {&g10, 360, 140, 100, 12, GFLG_GADGHCOMP, 
  132.     GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx11,
  133.     NULL, NULL, S2_GAD, NULL,};
  134. struct Gadget g12 = {&g11, 235, 114, 50, 12, GFLG_GADGHCOMP, 
  135.     GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx12, NULL,
  136.     NULL, QT_GAD, NULL,};
  137.  
  138. static UWORD __chip pnt[] = {
  139.     0x0000, 0x0000,
  140.     0x0400, 0x07C0,
  141.     0x0000, 0x07C0,
  142.     0x0100, 0x0380,
  143.     0x0000, 0x07E0,
  144.     0x07C0, 0x1FF8,
  145.     0x1FF0, 0x3FEC,
  146.     0x3FF8, 0x7FDE,
  147.     0x3FF8, 0x7FBE,
  148.     0x7FFC, 0xFF7F,
  149.     0x7EFC, 0xFFFF,
  150.     0x7FFC, 0xFFFF,
  151.     0x3FF8, 0x7FFE,
  152.     0x3FF8, 0x7FFE,
  153.     0x1FF0, 0x3FFC,
  154.     0x07C0, 0x1FF8,
  155.     0x0000, 0x07E0,
  156.     0x0000, 0x0000,
  157. };
  158.