1
2
3
4
5 INTEGER FIGHTS(H,FLG)
6 IMPLICIT INTEGER (A-Z)
7 %include dparam
8 PARAMETER (STRMAX=7)
9 PARAMETER (STRMIN=2)
10 LOGICAL FLG
11
12 FIGHTS=STRMIN+((((STRMAX-STRMIN)*ASCORE(H))+(MXSCOR/2))/MXSCOR)
13 IF(FLG) FIGHTS=FIGHTS+ASTREN(H)
14 RETURN
15
16
17
18
19
20
21
22 INTEGER VILSTR(V)
23 IMPLICIT INTEGER (A-Z)
24 %include dparam
25
26 VILSTR=OCAPAC(V)
27 IF(VILSTR.LE.0) RETURN
28 IF((V.NE.THIEF).OR..NOT.THFENF) GO TO 100
29 THFENF=.FALSE.
30 VILSTR=MIN0(VILSTR,2)
31
32 100 DO 200 I=1,VLNT
33 IF((VILLNS(I).EQ.V).AND.(PRSI.EQ.VBEST(I)))
34 & VILSTR=MAX0(1,VILSTR-1)
35 200 CONTINUE
36 RETURN
37
38
39
40
41
42
43
44 GTTIME(T)
45 IMPLICIT INTEGER (A-Z)
46 %include dparam
47
48 CALL ITIME(TMARRAY)
49 H=TMARRAY(1)
50 M=TMARRAY(2)
51 S=TMARRAY(3)
52 T=((H*60)+M)-((SHOUR*60)+SMIN)
53 IF(T.LT.0) T=T+1440
54 T=T+PLTIME
55 RETURN
56
57
58
59
60
61
62
63 LOGICAL OPNCLS(OBJ,SO,SC)
64 IMPLICIT INTEGER (A-Z)
65 %include dparam
66 LOGICAL QOPEN
67
68
69
70
71 QOPEN(O)=AND(OFLAG2(O),OPENBT).NE.0
72
73 OPNCLS=.TRUE.
74 IF(PRSA.EQ.CLOSEW) GO TO 100
75 IF(PRSA.EQ.OPENW) GO TO 50
76 OPNCLS=.FALSE.
77 RETURN
78
79 50 IF(QOPEN(OBJ)) GO TO 200
80 CALL RSPEAK(SO)
81
82 OFLAG2(OBJ)=OR(OFLAG2(OBJ),OPENBT)
83 RETURN
84
85 100 IF(.NOT.QOPEN(OBJ)) GO TO 200
86 CALL RSPEAK(SC)
87
88 OFLAG2(OBJ)=AND(OFLAG2(OBJ),COMPL(OPENBT))
89 RETURN
90
91 200 CALL RSPEAK(125+RND(3))
92 RETURN
93
94
95
96
97
98
99
100 LOGICAL LIT(RM)
101 IMPLICIT INTEGER (A-Z)
102 %include dparam
103 LOGICAL QHERE
104
105 LIT=.TRUE.
106
107 IF(DEADF.OR.(AND(RFLAG(RM),RLIGHT).NE.0)) RETURN
108
109 DO 1000 I=1,OLNT
110 IF(QHERE(I,RM)) GO TO 100
111 OA=OADV(I)
112 IF(OA.LE.0) GO TO 1000
113 IF(AROOM(OA).NE.RM) GO TO 1000
114
115
116
117
118 100 IF((AND(OFLAG1(I),ONBT)).NE.0) RETURN
119
120
121
122 IF(((AND(OFLAG1(I),VISIBT)).EQ.0).OR.
123 & (((AND(OFLAG1(I),TRANBT)).EQ.0).AND.
124 & ((AND(OFLAG2(I),OPENBT)).EQ.0))) GO TO 1000
125
126
127
128 DO 500 J=1,OLNT
129
130
131 IF((OCAN(J).EQ.I).AND.((AND(OFLAG1(J),ONBT)).NE.0))
132 & RETURN
133 500 CONTINUE
134 1000 CONTINUE
135 LIT=.FALSE.
136 RETURN
137
138