1: /*
   2:  * Copyright (c) 1983 Regents of the University of California,
   3:  * All rights reserved.  Redistribution permitted subject to
   4:  * the terms of the Berkeley Software License Agreement.
   5:  */
   6: 
   7: #if !defined(lint) && !defined(pdp11)
   8: static char sccsid[] = "@(#)globals.c	1.3 4/24/85";
   9: #endif
  10: 
  11: #include "externs.h"
  12: 
  13: #define strstr(x) x
  14: 
  15: int WEIGHT = MAXWEIGHT;
  16: int CUMBER = MAXCUMBER;
  17: 
  18: #ifdef pdp11
  19: unsigned objdes[NUMOFOBJECTS] = {
  20: #else
  21: char *objdes[NUMOFOBJECTS] = {
  22: #endif
  23:     strstr("There is a knife here"),
  24:     strstr("There is an exquisitely crafted sword and scabbard here."),
  25:     0,              /* can land from here */
  26:     strstr("There is a fierce woodsman here brandishing a heavy mallet."),
  27:     strstr("There is an unweildly two-handed sword here."),
  28:     strstr("There is a bloody meat cleaver here."),
  29:     strstr("A rusty broadsword is lying here."),
  30:     strstr("There is an ancient coat of finely woven mail here."),
  31:     strstr("There is a old dented helmet with an ostrich plume here."),
  32:     strstr("There is a shield of some native tribe here."),
  33:     strstr("The maid's body is lying here. She was murdered!"),
  34:     strstr("There is a Viper ready for launch here."),
  35:     strstr("A kerosene lantern is burning luridly here."),
  36:     strstr("An old pair of shoes has been discarded here."),
  37:     0,              /* cylon */
  38:     strstr("There is a pair of pajamas here."),
  39:     strstr("A kingly robe of royal purple and spun gold is draped here."),
  40:     strstr("There is a strange golden amulet on the floor here."),
  41:     strstr("A medallion of solid gold shimmers on the ground nearby."),
  42:     strstr("A talisman of gold is lying here."),
  43:     strstr("A dead woodsman has fallen here. He was savagely murdered."),
  44:     strstr("A heavy wooden mallet lies nearby."),
  45:     strstr("There is a laser pistol here."),
  46:     strstr("A flower-like young goddess is bathing in the hot mineral pools. She is \nwatching you, but continues to steep and sing softly."),
  47:     strstr("The goddess is reclining on a bed of ferns and studying you intently."),
  48:     strstr("There is a grenade here"),
  49:     strstr("There is a length of heavy chain here."),
  50:     strstr("There is a stout rope here."),
  51:     strstr("There is a pair of Levi's here."),
  52:     strstr("A bloody mace is lying on the ground here."),
  53:     strstr("There is a shovel here."),
  54:     strstr("A long, sharp halberd is propped up here."),
  55:     strstr("There is a compass here"),
  56:     strstr("Wreckage and smoldering debris from a crash litter the ground here."),
  57:     strstr("A woodland Elf armed with a shield and deadly halberd lunges toward you!"),
  58:     strstr("I think I hear footsteps behind us."),
  59:     strstr("There are a few coins here."),
  60:     strstr("There are some matches here."),
  61:     strstr("An unctuous man in a white suit and a dwarf are standing here."),
  62:     strstr("There are some ripe papayas here."),
  63:     strstr("There is a ripe pineapple here."),
  64:     strstr("There are some kiwi fruit here."),
  65:     strstr("There are some coconuts here."),
  66:     strstr("There is a ripe mango here."),
  67:     strstr("There is a sparkling diamond ring here."),
  68:     strstr("There is a colorful pink potion in a small crystal vial here."),
  69:     strstr("A gold bracelet is on the ground here."),
  70:     strstr("A swarthy woman with stern features pulls you aside from the crowd,\n'I must talk to you -- but not here.  Meet me at midnight in the gardens.'"),
  71:     strstr("The swarthy woman has been awaiting you anxiousy. 'I must warn you that the\nIsland has anticipated your Quest.  You will not be welcomed. The Darkness is\nstrong where you must search.  Seek not the shadows save only at night, for\nthen are they the weakest.  In the mountains far from here a canyon winds\nwith ferns and streams and forgotten vines.  There you must go. Take this\nrope.'"),
  72:     strstr("Out from the shadows a figure leaps!  His black cape swirls around, and he\nholds a laser sword at your chest.  'So, you have come to fulfill the Quest.\nHa! Your weapons are no match for me!'"),
  73:     strstr("An old timer with one eye missing and no money for a drink sits at the bar."),
  74:     strstr("You are flying through an asteroid field!"),
  75:     strstr("A planet is nearby."),
  76:     strstr("The ground is charred here."),
  77:     strstr("There is a thermonuclear warhead here."),
  78:     strstr("The fragile, beautiful young goddess lies here.  You murdered her horribly."),
  79:     strstr("The old timer is lying here.  He is dead."),
  80:     strstr("The native girl's body is lying here."),
  81:     strstr("A native girl is sitting here."),
  82:     strstr("A gorgeous white stallion is standing here."),
  83:     strstr("The keys are in the ignition."),
  84:     strstr("A pot of pearls and jewels is sitting here."),
  85:     strstr("A bar of solid gold is here."),
  86:     strstr("There is a 10 kilogram diamond block here.")
  87: 
  88: };
  89: 
  90: char *objsht[NUMOFOBJECTS] = {
  91:     "knife",
  92:     "fine sword",
  93:     0,
  94:     "Woodsman",
  95:     "two-handed sword",
  96:     "meat cleaver",
  97:     "broadsword",
  98:     "coat of mail",
  99:     "plumed helmet",
 100:     "shield",
 101:     "maid's body",
 102:     "viper",
 103:     "lantern",
 104:     "shoes",
 105:     0,
 106:     "pajamas",
 107:     "robe",
 108:     "amulet",
 109:     "medallion",
 110:     "talisman",
 111:     "woodsman's body",
 112:     "wooden mallet",
 113:     "laser",
 114:     0,
 115:     0,
 116:     "grenade",
 117:     "chain",
 118:     "rope",
 119:     "levis",
 120:     "mace",
 121:     "shovel",
 122:     "halberd",
 123:     "compass",
 124:     0,
 125:     "Elf",
 126:     0,
 127:     "coins",
 128:     "match book",
 129:     0,
 130:     "papayas",
 131:     "pineapple",
 132:     "kiwi",
 133:     "coconuts",
 134:     "mango",
 135:     "ring",
 136:     "potion",
 137:     "bracelet",
 138:     0,
 139:     0,
 140:     "Dark Lord",
 141:     0,
 142:     0,
 143:     0,
 144:     0,
 145:     "warhead",
 146:     "goddess's body",
 147:     "old timer's body",
 148:     "girl's body",
 149:     0,
 150:     "stallion",
 151:     "car",
 152:     "pot of jewels",
 153:     "bar of gold",
 154:     "diamond block"
 155: };
 156: 
 157: char *ouch[NUMOFINJURIES] = {
 158:     "some minor abrasions",
 159:     "some minor lacerations",
 160:     "a minor puncture wound",
 161:     "a minor amputation",
 162:     "a sprained wrist",
 163:     "a fractured ankle and shattered kneecap",
 164:     "a broken arm and dislocated shoulder",
 165:     "a few broken ribs",
 166:     "a broken leg and torn ligaments",
 167:     "a broken back and ruptured spleen",
 168:     "some deep incisions and a loss of blood",
 169:     "a fractured skull and mashed face",
 170:     "a broken neck"
 171: };
 172: 
 173: int objwt[NUMOFOBJECTS] = {
 174:     1,  5,  0,  10, 15, 2,  10, 10,
 175:     3,  5,  50, 2500,   2,  1,  100,    1,
 176:     2,  1,  1,  1,  60, 10, 5,  0,
 177:     50, 5,  15, 5,  1,  20, 10, 10,
 178:     0,  0,  0,  0,  1,  0,  0,  1,
 179:     1,  1,  2,  1,  0,  0,  0,  0,
 180:     0,  0,  100,    0,  0,  0,  55, 47,
 181:     50, 45, 45, 100,    2000,   30, 20, 10
 182: };
 183: 
 184: int objcumber[NUMOFOBJECTS] = {
 185:     1,  5,  0,  150,    10, 1,  5,  2,
 186:     2,  1,  5,  10, 1,  1,  10, 1,
 187:     1,  1,  1,  1,  7,  5,  4,  0,
 188:     0,  1,  1,  1,  1,  5,  4,  4,
 189:     1,  0,  0,  0,  1,  0,  0,  1,
 190:     1,  1,  3,  1,  0,  0,  1,  0,
 191:     0,  0,  10, 0,  0,  0,  7,  8,
 192:     10, 8,  8,  10, 10, 3,  1,  2
 193: };
 194: 
 195: int win = 1;
 196: int matchcount = 20;
 197: int followgod = -1;
 198: int followfight = -1;

Defined variables

CUMBER defined in line 16; never used
WEIGHT defined in line 15; never used
followfight defined in line 198; never used
followgod defined in line 197; never used
matchcount defined in line 196; never used
objcumber defined in line 184; never used
objdes defined in line 21; never used
objsht defined in line 90; never used
objwt defined in line 173; never used
ouch defined in line 157; never used
sccsid defined in line 8; never used
win defined in line 195; never used

Defined macros

strstr defined in line 13; used 62 times
Last modified: 1987-07-31
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2207
Valid CSS Valid XHTML 1.0 Strict