1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* Additional copyright for this file:
* Copyright (C) 1995-1997 Presto Studios, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "pegasus/cursor.h"
#include "pegasus/energymonitor.h"
#include "pegasus/gamestate.h"
#include "pegasus/pegasus.h"
#include "pegasus/ai/ai_area.h"
#include "pegasus/items/biochips/aichip.h"
#include "pegasus/items/biochips/opticalchip.h"
#include "pegasus/neighborhood/caldoria/caldoria.h"
#include "pegasus/neighborhood/norad/constants.h"
#include "pegasus/neighborhood/prehistoric/prehistoric.h"
#include "pegasus/neighborhood/mars/constants.h"
#include "pegasus/neighborhood/tsa/fulltsa.h"
#include "pegasus/neighborhood/wsc/wsc.h"
namespace Pegasus {
// TSA PICTs:
static const ResIDType kTBPCloseBoxPICTID = 800;
static const ResIDType kTBPRewindPICTID = 801;
static const ResIDType kUnresolvedPICTID = 802;
static const ResIDType kResolvedPICTID = 803;
static const ResIDType kJumpMenuPICTID = 804;
static const ResIDType kJumpMenuHilitedPICTID = 805;
static const ResIDType kExitPICTID = 806;
static const ResIDType kExitHilitedPICTID = 807;
static const ResIDType kLeftRipPICTID = 808;
static const ResIDType kComparisonCloseBoxPICTID = 809;
static const ResIDType kComparisonLeftRewindPICTID = 810;
static const ResIDType kComparisonRightRewindPICTID = 811;
static const ResIDType kComparisonHiliteNoradPICTID = 812;
static const ResIDType kComparisonHiliteMarsPICTID = 813;
static const ResIDType kComparisonHiliteCaldoriaPICTID = 814;
static const ResIDType kComparisonHiliteWSCPICTID = 815;
static const ResIDType kComparisonChancesNoradPICTID = 816;
static const ResIDType kComparisonChancesMarsPICTID = 817;
static const ResIDType kComparisonChancesCaldoriaPICTID = 818;
static const ResIDType kComparisonChancesWSCPICTID = 819;
static const ResIDType kRedirectionCCRolloverPICTID = 820;
static const ResIDType kRedirectionRRRolloverPICTID = 821;
static const ResIDType kRedirectionFDRolloverPICTID = 822;
static const ResIDType kRedirectionCCDoorPICTID = 823;
static const ResIDType kRedirectionRRDoorPICTID = 824;
static const ResIDType kRedirectionFDDoorPICTID = 825;
static const ResIDType kRedirectionSecuredPICTID = 826;
static const ResIDType kRedirectionNewTargetPICTID = 827;
static const ResIDType kRedirectionClosePICTID = 828;
static const int16 kCompassShift = 15;
static const TimeScale kFullTSAMovieScale = 600;
static const TimeScale kFullTSAFramesPerSecond = 15;
static const TimeScale kFullTSAFrameDuration = 40;
// Alternate IDs.
static const AlternateID kAltTSANormal = 0;
static const AlternateID kAltTSARobotsAtReadyRoom = 1;
static const AlternateID kAltTSARobotsAtFrontDoor = 2;
static const AlternateID kAltTSARedAlert = 3;
// Room IDs.
static const RoomID kTSA01 = 1;
static const RoomID kTSA02 = 2;
static const RoomID kTSA03 = 3;
static const RoomID kTSA04 = 4;
static const RoomID kTSA05 = 5;
static const RoomID kTSA0A = 6;
static const RoomID kTSA06 = 7;
static const RoomID kTSA07 = 8;
static const RoomID kTSA08 = 9;
static const RoomID kTSA09 = 10;
static const RoomID kTSA10 = 11;
static const RoomID kTSA11 = 12;
static const RoomID kTSA12 = 13;
static const RoomID kTSA13 = 14;
static const RoomID kTSA14 = 15;
static const RoomID kTSA15 = 16;
static const RoomID kTSA16 = 17;
static const RoomID kTSA17 = 18;
static const RoomID kTSA18 = 19;
static const RoomID kTSA19 = 20;
static const RoomID kTSA0B = 21;
static const RoomID kTSA21Cyan = 22;
static const RoomID kTSA22Cyan = 23;
static const RoomID kTSA23Cyan = 24;
static const RoomID kTSA24Cyan = 25;
static const RoomID kTSA25Cyan = 26;
static const RoomID kTSA21Red = 27;
static const RoomID kTSA23Red = 29;
static const RoomID kTSA24Red = 30;
static const RoomID kTSA25Red = 31;
static const RoomID kTSA26 = 32;
static const RoomID kTSA27 = 33;
static const RoomID kTSA28 = 34;
static const RoomID kTSA29 = 35;
static const RoomID kTSA30 = 36;
static const RoomID kTSA31 = 37;
static const RoomID kTSA32 = 38;
static const RoomID kTSA33 = 39;
static const RoomID kTSA34 = 40;
static const RoomID kTSA35 = 41;
static const RoomID kTSADeathRoom = 43;
// Hot Spot Activation IDs.
static const HotSpotActivationID kActivateTSAReadyForCard = 1;
static const HotSpotActivationID kActivateTSAReadyToTransport = 2;
static const HotSpotActivationID kActivateTSARobotsAwake = 3;
static const HotSpotActivationID kActivateTSA0BZoomedOut = 4;
static const HotSpotActivationID kActivateTSA0BZoomedIn = 5;
static const HotSpotActivationID kActivateTSA0BComparisonVideo = 6;
static const HotSpotActivationID kActivationLogReaderOpen = 7;
static const HotSpotActivationID kActivateTSA0BTBPVideo = 8;
static const HotSpotActivationID kActivationDoesntHaveKey = 9;
static const HotSpotActivationID kActivationKeyVaultOpen = 10;
static const HotSpotActivationID kActivationDoesntHaveChips = 11;
static const HotSpotActivationID kActivationChipVaultOpen = 12;
static const HotSpotActivationID kActivationJumpToPrehistoric = 13;
static const HotSpotActivationID kActivationJumpToNorad = 14;
static const HotSpotActivationID kActivationJumpToMars = 15;
static const HotSpotActivationID kActivationJumpToWSC = 16;
static const HotSpotActivationID kActivationReadyToExit = 17;
static const HotSpotActivationID kActivationReadyForJumpMenu = 18;
static const HotSpotActivationID kActivationMainJumpMenu = 19;
// Hot Spot IDs.
static const HotSpotID kTSAGTCardDropSpotID = 5000;
static const HotSpotID kTSAGTTokyoSpotID = 5001;
static const HotSpotID kTSAGTCaldoriaSpotID = 5002;
static const HotSpotID kTSAGTBeachSpotID = 5003;
static const HotSpotID kTSAGTOtherSpotID = 5004;
static const HotSpotID kTSA02DoorSpotID = 5005;
static const HotSpotID kTSA03EastJimenezSpotID = 5006;
static const HotSpotID kTSA03WestCrenshawSpotID = 5007;
static const HotSpotID kTSA04EastMatsumotoSpotID = 5008;
static const HotSpotID kTSA04WestCastilleSpotID = 5009;
static const HotSpotID kTSA05EastSinclairSpotID = 5010;
static const HotSpotID kTSA05WestWhiteSpotID = 5011;
static const HotSpotID kTSA0AEastSpotID = 5012;
static const HotSpotID kTSA0AWastSpotID = 5013;
static const HotSpotID kTSA0BEastMonitorSpotID = 5014;
static const HotSpotID kTSA0BEastMonitorOutSpotID = 5015;
static const HotSpotID kTSA0BEastCompareNoradSpotID = 5016;
static const HotSpotID kTSA0BEastCompareMarsSpotID = 5017;
static const HotSpotID kTSA0BEastCompareCaldoriaSpotID = 5018;
static const HotSpotID kTSA0BEastCompareWSCSpotID = 5019;
static const HotSpotID kTSA0BEastLeftRewindSpotID = 5020;
static const HotSpotID kTSA0BEastLeftPlaySpotID = 5021;
static const HotSpotID kTSA0BEastRightRewindSpotID = 5022;
static const HotSpotID kTSA0BEastRightPlaySpotID = 5023;
static const HotSpotID kTSA0BEastCloseVideoSpotID = 5024;
static const HotSpotID kTSA0BNorthMonitorSpotID = 5025;
static const HotSpotID kTSA0BNorthMonitorOutSpotID = 5026;
static const HotSpotID kTSA0BNorthHistLogSpotID = 5027;
static const HotSpotID kTSA0BNorthRobotsToCommandCenterSpotID = 5028;
static const HotSpotID kTSA0BNorthRobotsToReadyRoomSpotID = 5029;
static const HotSpotID kTSA0BNorthRobotsToFrontDoorSpotID = 5030;
static const HotSpotID kTSA0BWestMonitorSpotID = 5031;
static const HotSpotID kTSA0BWestMonitorOutSpotID = 5032;
static const HotSpotID kTSA0BWestTheorySpotID = 5033;
static const HotSpotID kTSA0BWestBackgroundSpotID = 5034;
static const HotSpotID kTSA0BWestProcedureSpotID = 5035;
static const HotSpotID kTSA0BWestCloseVideoSpotID = 5036;
static const HotSpotID kTSA0BWestPlayVideoSpotID = 5037;
static const HotSpotID kTSA0BWestRewindVideoSpotID = 5038;
static const HotSpotID kTSA22EastMonitorSpotID = 5039;
static const HotSpotID kTSA22EastKeySpotID = 5040;
static const HotSpotID kTSA23WestMonitorSpotID = 5041;
static const HotSpotID kTSA23WestChipsSpotID = 5042;
static const HotSpotID kTSA34NorthDoorSpotID = 5043;
static const HotSpotID kTSA37NorthJumpToPrehistoricSpotID = 5044;
static const HotSpotID kTSA37NorthJumpToNoradSpotID = 5045;
static const HotSpotID kTSA37NorthCancelNoradSpotID = 5046;
static const HotSpotID kTSA37NorthJumpToMarsSpotID = 5047;
static const HotSpotID kTSA37NorthCancelMarsSpotID = 5048;
static const HotSpotID kTSA37NorthJumpToWSCSpotID = 5049;
static const HotSpotID kTSA37NorthCancelWSCSpotID = 5050;
static const HotSpotID kTSA37NorthExitSpotID = 5051;
static const HotSpotID kTSA37NorthJumpMenuSpotID = 5052;
static const HotSpotID kTSA37NorthNoradMenuSpotID = 5053;
static const HotSpotID kTSA37NorthMarsMenuSpotID = 5054;
static const HotSpotID kTSA37NorthWSCMenuSpotID = 5055;
// Extra sequence IDs.
static const ExtraID kTSATransporterArrowLoop = 0;
static const ExtraID kTSAArriveFromCaldoria = 1;
static const ExtraID kTSAGTOtherChoice = 2;
static const ExtraID kTSAGTCardSwipe = 3;
static const ExtraID kTSAGTSelectCaldoria = 4;
static const ExtraID kTSAGTGoToCaldoria = 5;
static const ExtraID kTSAGTSelectBeach = 6;
static const ExtraID kTSAGTGoToBeach = 7;
static const ExtraID kTSAGTArriveAtBeach = 8;
static const ExtraID kTSAGTSelectTokyo = 9;
static const ExtraID kTSAGTGoToTokyo = 10;
static const ExtraID kTSAGTArriveAtTokyo = 11;
static const ExtraID kTSA02NorthZoomIn = 12;
static const ExtraID kTSA02NorthTenSecondDoor = 13;
static const ExtraID kTSA02NorthZoomOut = 14;
static const ExtraID kTSA02NorthDoorWithAgent3 = 15;
static const ExtraID kTSA03JimenezZoomIn = 16;
static const ExtraID kTSA03JimenezSpeech = 17;
static const ExtraID kTSA03JimenezZoomOut = 18;
static const ExtraID kTSA03CrenshawZoomIn = 19;
static const ExtraID kTSA03CrenshawSpeech = 20;
static const ExtraID kTSA03CrenshawZoomOut = 21;
static const ExtraID kTSA03SouthRobotDeath = 22;
static const ExtraID kTSA04NorthRobotGreeting = 23;
static const ExtraID kTSA04MatsumotoZoomIn = 24;
static const ExtraID kTSA04MatsumotoSpeech = 25;
static const ExtraID kTSA04MatsumotoZoomOut = 26;
static const ExtraID kTSA04CastilleZoomIn = 27;
static const ExtraID kTSA04CastilleSpeech = 28;
static const ExtraID kTSA04CastilleZoomOut = 29;
static const ExtraID kTSA05SinclairZoomIn = 30;
static const ExtraID kTSA05SinclairSpeech = 31;
static const ExtraID kTSA05SinclairZoomOut = 32;
static const ExtraID kTSA05WhiteZoomIn = 33;
static const ExtraID kTSA05WhiteSpeech = 34;
static const ExtraID kTSA05WhiteZoomOut = 35;
static const ExtraID kTSA0AEastRobot = 36;
static const ExtraID kTSA0AWestRobot = 37;
static const ExtraID kTSA16NorthRobotDeath = 38;
static const ExtraID kTSA0BEastZoomIn = 39;
static const ExtraID kTSA0BEastZoomedView = 40;
static const ExtraID kTSA0BEastZoomOut = 41;
static const ExtraID kTSA0BEastTurnLeft = 42;
static const ExtraID kTSA0BComparisonStartup = 43;
static const ExtraID kTSA0BComparisonView0000 = 44;
static const ExtraID kTSA0BComparisonView0002 = 45;
static const ExtraID kTSA0BComparisonView0020 = 46;
static const ExtraID kTSA0BComparisonView0022 = 47;
static const ExtraID kTSA0BComparisonView0200 = 48;
static const ExtraID kTSA0BComparisonView0202 = 49;
static const ExtraID kTSA0BComparisonView0220 = 50;
static const ExtraID kTSA0BComparisonView0222 = 51;
static const ExtraID kTSA0BComparisonView2000 = 52;
static const ExtraID kTSA0BComparisonView2002 = 53;
static const ExtraID kTSA0BComparisonView2020 = 54;
static const ExtraID kTSA0BComparisonView2022 = 55;
static const ExtraID kTSA0BComparisonView2200 = 56;
static const ExtraID kTSA0BComparisonView2202 = 57;
static const ExtraID kTSA0BComparisonView2220 = 58;
static const ExtraID kTSA0BComparisonView2222 = 59;
static const ExtraID kTSA0BNoradComparisonView = 60;
static const ExtraID kTSA0BNoradUnaltered = 61;
static const ExtraID kTSA0BNoradAltered = 62;
static const ExtraID kTSA0BMarsComparisonView = 63;
static const ExtraID kTSA0BMarsUnaltered = 64;
static const ExtraID kTSA0BMarsAltered = 65;
static const ExtraID kTSA0BWSCComparisonView = 66;
static const ExtraID kTSA0BWSCUnaltered = 67;
static const ExtraID kTSA0BWSCAltered = 68;
static const ExtraID kTSA0BCaldoriaComparisonView = 69;
static const ExtraID kTSA0BCaldoriaUnaltered = 70;
static const ExtraID kTSA0BCaldoriaAltered = 71;
static const ExtraID kTSA0BNorthZoomIn = 72;
static const ExtraID kTSA0BNorthZoomedView = 73;
static const ExtraID kTSA0BNorthZoomOut = 74;
static const ExtraID kTSA0BNorthTurnLeft = 75;
static const ExtraID kTSA0BNorthTurnRight = 76;
static const ExtraID kTSA0BNorthHistLogOpen = 77;
static const ExtraID kTSA0BNorthHistLogClose = 78;
static const ExtraID kTSA0BNorthHistLogCloseWithLog = 79;
static const ExtraID kTSA0BNorthCantChangeHistory = 80;
static const ExtraID kTSA0BNorthYoureBusted = 81;
static const ExtraID kTSA0BNorthFinallyHappened = 82;
static const ExtraID kTSA0BShowRip1 = 83;
static const ExtraID kTSA0BNorthRipView1 = 84;
static const ExtraID kTSA0BShowRip2 = 85;
static const ExtraID kTSA0BShowGuardRobots = 86;
static const ExtraID kTSA0BAIInterruption = 87;
static const ExtraID kTSA0BRobotsToCommandCenter = 88;
static const ExtraID kTSA0BNorthRobotsAtCCView = 89;
static const ExtraID kTSA0BNorthRobotsAtRRView = 90;
static const ExtraID kTSA0BNorthRobotsAtFDView = 91;
static const ExtraID kTSA0BRobotsFromCommandCenterToReadyRoom = 92;
static const ExtraID kTSA0BRobotsFromReadyRoomToCommandCenter = 93;
static const ExtraID kTSA0BRobotsFromCommandCenterToFrontDoor = 94;
static const ExtraID kTSA0BRobotsFromFrontDoorToCommandCenter = 95;
static const ExtraID kTSA0BRobotsFromFrontDoorToReadyRoom = 96;
static const ExtraID kTSA0BRobotsFromReadyRoomToFrontDoor = 97;
static const ExtraID kTSA0BWestZoomIn = 98;
static const ExtraID kTSA0BWestZoomedView = 99;
static const ExtraID kTSA0BWestZoomOut = 100;
static const ExtraID kTSA0BWestTurnRight = 101;
static const ExtraID kTSA0BTBPTheoryHighlight = 102;
static const ExtraID kTSA0BTBPBackgroundHighlight = 103;
static const ExtraID kTSA0BTBPProcedureHighlight = 104;
static const ExtraID kTSA0BTBPTheory = 105;
static const ExtraID kTSA0BTBPBackground = 106;
static const ExtraID kTSA0BTBPProcedure = 107;
static const ExtraID kTSA0BRipAlarmScreen = 108;
static const ExtraID kTSA22RedEastZoomInSequence = 109;
static const ExtraID kTSA22RedEastVaultViewWithKey = 110;
static const ExtraID kTSA22RedEastVaultViewNoKey = 111;
static const ExtraID kTSA23RedWestVaultZoomInSequence = 112;
static const ExtraID kTSA23RedWestVaultViewWithChips = 113;
static const ExtraID kTSA23RedWestVaultViewNoChips = 114;
static const ExtraID kTSA25NorthDeniedNoKey = 115;
static const ExtraID kTSA25NorthDeniedNoChip = 116;
static const ExtraID kTSA25NorthPutOnSuit = 117;
static const ExtraID kTSA25NorthAlreadyHaveSuit = 118;
static const ExtraID kTSA25NorthDescending1 = 119;
static const ExtraID kTSA25NorthDescending2 = 120;
static const ExtraID kTSA37HorseToAI1 = 121;
static const ExtraID kTSA37PegasusAI1 = 122;
static const ExtraID kTSA37AI1ToCommissioner1 = 123;
static const ExtraID kTSA37Commissioner1 = 124;
static const ExtraID kTSA37Commissioner1ToZoom = 125;
static const ExtraID kTSA37ZoomToPrehistoric = 126;
static const ExtraID kTSA37PrehistoricToAI2 = 127;
static const ExtraID kTSA37PegasusAI2 = 128;
static const ExtraID kTSA37AI2ToPrehistoric = 129;
static const ExtraID kTSA37PrehistoricToDepart = 130;
static const ExtraID kTSA37PegasusDepart = 131;
static const ExtraID kTSA37TimeJumpToPegasus = 132;
static const ExtraID kTSA37RecallToDownload = 133;
static const ExtraID kTSA37DownloadToColonel1 = 134;
static const ExtraID kTSA37Colonel1 = 135;
static const ExtraID kTSA37Colonel1ToReviewRequired = 136;
static const ExtraID kTSA37ReviewRequiredToExit = 137;
static const ExtraID kTSA37ExitHilited = 138;
static const ExtraID kTSA37ExitToHorse = 139;
static const ExtraID kTSA37HorseToColonel2 = 140;
static const ExtraID kTSA37Colonel2 = 141;
static const ExtraID kTSA37PegasusAI3 = 142;
static const ExtraID kTSA37AI3ToHorse = 143;
static const ExtraID kTSA37HorseToZoom = 144;
static const ExtraID kTSA37ZoomToMainMenu = 145;
static const ExtraID kTSA37MainMenuToAI4 = 146;
static const ExtraID kTSA37PegasusAI4 = 147;
static const ExtraID kTSA37AI4ToMainMenu = 148;
static const ExtraID kTSA37JumpMenu000 = 149;
static const ExtraID kTSA37JumpMenu001 = 150;
static const ExtraID kTSA37JumpMenu010 = 151;
static const ExtraID kTSA37JumpMenu011 = 152;
static const ExtraID kTSA37JumpMenu100 = 153;
static const ExtraID kTSA37JumpMenu101 = 154;
static const ExtraID kTSA37JumpMenu110 = 155;
static const ExtraID kTSA37JumpMenu111 = 156;
static const ExtraID kTSA37JumpToWSCMenu = 157;
static const ExtraID kTSA37CancelWSC = 158;
static const ExtraID kTSA37JumpToWSC = 159;
static const ExtraID kTSA37WSCToAI5 = 160;
static const ExtraID kTSA37PegasusAI5 = 161;
static const ExtraID kTSA37AI5ToWSC = 162;
static const ExtraID kTSA37WSCToDepart = 163;
static const ExtraID kTSA37JumpToMarsMenu = 164;
static const ExtraID kTSA37CancelMars = 165;
static const ExtraID kTSA37JumpToMars = 166;
static const ExtraID kTSA37MarsToAI6 = 167;
static const ExtraID kTSA37PegasusAI6 = 168;
static const ExtraID kTSA37AI6ToMars = 169;
static const ExtraID kTSA37MarsToDepart = 170;
static const ExtraID kTSA37JumpToNoradMenu = 171;
static const ExtraID kTSA37CancelNorad = 172;
static const ExtraID kTSA37JumpToNorad = 173;
static const ExtraID kTSA37NoradToAI7 = 174;
static const ExtraID kTSA37PegasusAI7 = 175;
static const ExtraID kTSA37AI7ToNorad = 176;
static const ExtraID kTSA37NoradToDepart = 177;
static const ExtraID kTSA37EnvironmentalScan = 178;
static const ExtraID kTSA37DownloadToMainMenu = 179;
static const ExtraID kTSA37DownloadToOpMemReview = 180;
static const ExtraID kTSA37OpMemReviewToMainMenu = 181;
static const ExtraID kTSA37OpMemReviewToAllClear = 182;
static const ExtraID kTSA37AllClearToCongratulations = 183;
static const ExtraID kTSA37Congratulations = 184;
static const ExtraID kTSA37CongratulationsToExit = 185;
const DisplayOrder kRipTimerOrder = kMonitorLayer;
const CoordType kUnresolvedLeft = kNavAreaLeft + 14;
const CoordType kUnresolvedTop = kNavAreaTop + 236;
const CoordType kResolvedLeft = kNavAreaLeft + 36;
const CoordType kResolvedTop = kNavAreaTop + 236;
const CoordType kJumpMenuLeft = kNavAreaLeft + 360;
const CoordType kJumpMenuTop = kNavAreaTop + 202;
const CoordType kJumpMenuHilitedLeft = kNavAreaLeft + 354;
const CoordType kJumpMenuHilitedTop = kNavAreaTop + 196;
const CoordType kExitLeft = kNavAreaLeft + 360;
const CoordType kExitTop = kNavAreaTop + 216;
const CoordType kExitHilitedLeft = kNavAreaLeft + 354;
const CoordType kExitHilitedTop = kNavAreaTop + 210;
const CoordType kRipTimerLeft = kNavAreaLeft + 95;
const CoordType kRipTimerTop = kNavAreaTop + 87;
const CoordType kTBPCloseLeft = kNavAreaLeft + 30;
const CoordType kTBPCloseTop = kNavAreaTop + 16;
const CoordType kTBPRewindLeft = kNavAreaLeft + 86;
const CoordType kTBPRewindTop = kNavAreaTop + 218;
const CoordType kComparisonCloseLeft = kNavAreaLeft + 50;
const CoordType kComparisonCloseTop = kNavAreaTop + 14;
const CoordType kComparisonLeftRewindLeft = kNavAreaLeft + 96;
const CoordType kComparisonLeftRewindTop = kNavAreaTop + 190;
const CoordType kComparisonRightRewindLeft = kNavAreaLeft + 282;
const CoordType kComparisonRightRewindTop = kNavAreaTop + 190;
const CoordType kComparisonHiliteSpriteLeft = kNavAreaLeft + 45;
const CoordType kComparisonHiliteSpriteTop = kNavAreaTop + 65;
const CoordType kComparisonHiliteNoradLeft = kNavAreaLeft + 45;
const CoordType kComparisonHiliteNoradTop = kNavAreaTop + 65;
const CoordType kComparisonHiliteMarsLeft = kNavAreaLeft + 45 + 4;
const CoordType kComparisonHiliteMarsTop = kNavAreaTop + 65 + 23;
const CoordType kComparisonHiliteCaldoriaLeft = kNavAreaLeft + 45 + 7;
const CoordType kComparisonHiliteCaldoriaTop = kNavAreaTop + 65 + 46;
const CoordType kComparisonHiliteWSCLeft = kNavAreaLeft + 45 + 11;
const CoordType kComparisonHiliteWSCTop = kNavAreaTop + 65 + 68;
const CoordType kComparisonChancesSpriteLeft = kNavAreaLeft + 148;
const CoordType kComparisonChancesSpriteTop = kNavAreaTop + 162;
const CoordType kComparisonChancesNoradLeft = kNavAreaLeft + 148;
const CoordType kComparisonChancesNoradTop = kNavAreaTop + 162;
const CoordType kComparisonChancesMarsLeft = kNavAreaLeft + 148;
const CoordType kComparisonChancesMarsTop = kNavAreaTop + 162;
const CoordType kComparisonChancesCaldoriaLeft = kNavAreaLeft + 148;
const CoordType kComparisonChancesCaldoriaTop = kNavAreaTop + 162 + 1;
const CoordType kComparisonChancesWSCLeft = kNavAreaLeft + 148;
const CoordType kComparisonChancesWSCTop = kNavAreaTop + 162;
const CoordType kRedirectionSprite1Left = kNavAreaLeft + 58;
const CoordType kRedirectionSprite1Top = kNavAreaTop + 16;
const CoordType kRedirectionSprite2Left = kNavAreaLeft + 36;
const CoordType kRedirectionSprite2Top = kNavAreaTop + 166;
const CoordType kRedirectionCCRolloverLeft = kNavAreaLeft + 58;
const CoordType kRedirectionCCRolloverTop = kNavAreaTop + 16;
const CoordType kRedirectionRRRolloverLeft = kNavAreaLeft + 430;
const CoordType kRedirectionRRRolloverTop = kNavAreaTop + 30;
const CoordType kRedirectionFDRolloverLeft = kNavAreaLeft + 278;
const CoordType kRedirectionFDRolloverTop = kNavAreaTop + 160;
const CoordType kRedirectionCCDoorLeft = kNavAreaLeft + 174;
const CoordType kRedirectionCCDoorTop = kNavAreaTop + 36;
const CoordType kRedirectionRRDoorLeft = kNavAreaLeft + 418;
const CoordType kRedirectionRRDoorTop = kNavAreaTop + 32;
const CoordType kRedirectionFDDoorLeft = kNavAreaLeft + 298;
const CoordType kRedirectionFDDoorTop = kNavAreaTop + 240;
const CoordType kRedirectionSecuredLeft = kNavAreaLeft + 36;
const CoordType kRedirectionSecuredTop = kNavAreaTop + 166;
const CoordType kRedirectionNewTargetLeft = kNavAreaLeft + 36;
const CoordType kRedirectionNewTargetTop = kNavAreaTop + 166;
const CoordType kRedirectionCloseLeft = kNavAreaLeft + 56;
const CoordType kRedirectionCloseTop = kNavAreaTop + 220;
static const TimeValue kTSABumpIntoWallIn = 0;
static const TimeValue kTSABumpIntoWallOut = 148;
static const TimeValue kTSAGTDoorCloseIn = 148;
static const TimeValue kTSAGTDoorCloseOut = 1570;
static const TimeValue kTSANoOtherDestinationIn = 1570;
static const TimeValue kTSANoOtherDestinationOut = 3601;
static const TimeValue kTSAEntryDoorCloseIn = 3601;
static const TimeValue kTSAEntryDoorCloseOut = 4200;
static const TimeValue kTSAInsideDoorCloseIn = 4200;
static const TimeValue kTSAInsideDoorCloseOut = 4800;
static const TimeValue kTSAVaultCloseIn = 4800;
static const TimeValue kTSAVaultCloseOut = 5388;
static const TimeValue kTSAPegasusDoorCloseIn = 5388;
static const TimeValue kTSAPegasusDoorCloseOut = 6457;
static const bool kPegasusUnresolved = false;
static const bool kPegasusResolved = true;
static const bool kPegasusCantExit = false;
static const bool kPegasusCanExit = true;
// Monitor modes
enum {
kMonitorNeutral = 0,
kMonitorTheory = 1,
kMonitorProcedure = 2,
kMonitorBackground = 3,
kMonitorNoradComparison = 4,
kMonitorMarsComparison = 5,
kMonitorCaldoriaComparison = 6,
kMonitorWSCComparison = 7,
kRawModeMask = 0x0F,
kPlayingTBPMask = 0x10,
kPlayingLeftComparisonMask = 0x20,
kPlayingRightComparisonMask = 0x40,
kPlayingAnyMask = kPlayingTBPMask |
kPlayingLeftComparisonMask |
kPlayingRightComparisonMask,
kMonitorPlayingTheory = kMonitorTheory | kPlayingTBPMask,
kMonitorPlayingProcedure = kMonitorProcedure | kPlayingTBPMask,
kMonitorPlayingBackground = kMonitorBackground | kPlayingTBPMask,
kMonitorPlayingLeftNoradComparison = kMonitorNoradComparison |
kPlayingLeftComparisonMask,
kMonitorPlayingRightNoradComparison = kMonitorNoradComparison |
kPlayingRightComparisonMask,
kMonitorPlayingLeftMarsComparison = kMonitorMarsComparison |
kPlayingLeftComparisonMask,
kMonitorPlayingRightMarsComparison = kMonitorMarsComparison |
kPlayingRightComparisonMask,
kMonitorPlayingLeftCaldoriaComparison = kMonitorCaldoriaComparison |
kPlayingLeftComparisonMask,
kMonitorPlayingRightCaldoriaComparison = kMonitorCaldoriaComparison |
kPlayingRightComparisonMask,
kMonitorPlayingLeftWSCComparison = kMonitorWSCComparison |
kPlayingLeftComparisonMask,
kMonitorPlayingRightWSCComparison = kMonitorWSCComparison |
kPlayingRightComparisonMask
};
static const ExtraID s_historicalLogViews[16] = {
kTSA0BComparisonView0000,
kTSA0BComparisonView0002,
kTSA0BComparisonView0020,
kTSA0BComparisonView0022,
kTSA0BComparisonView0200,
kTSA0BComparisonView0202,
kTSA0BComparisonView0220,
kTSA0BComparisonView0222,
kTSA0BComparisonView2000,
kTSA0BComparisonView2002,
kTSA0BComparisonView2020,
kTSA0BComparisonView2022,
kTSA0BComparisonView2200,
kTSA0BComparisonView2202,
kTSA0BComparisonView2220,
kTSA0BComparisonView2222
};
static const int kRedirectionCCRolloverSprite = 0;
static const int kRedirectionRRRolloverSprite = 1;
static const int kRedirectionFDRolloverSprite = 2;
static const int kRedirectionCCDoorSprite = 3;
static const int kRedirectionRRDoorSprite = 4;
static const int kRedirectionFDDoorSprite = 5;
static const int kRedirectionCloseSprite = 6;
static const int kRedirectionSecuredSprite = 0;
static const int kRedirectionNewTargetSprite = 1;
void RipTimer::initImage() {
_middle = -1;
_timerImage.getImageFromPICTResource(((PegasusEngine *)g_engine)->_resFork, kLeftRipPICTID);
Common::Rect r;
_timerImage.getSurfaceBounds(r);
setBounds(r);
}
void RipTimer::releaseImage() {
_timerImage.deallocateSurface();
}
void RipTimer::draw(const Common::Rect &updateRect) {
Common::Rect bounds;
getBounds(bounds);
Common::Rect r1 = bounds;
r1.right = _middle;
r1 = updateRect.findIntersectingRect(r1);
if (!r1.isEmpty()) {
Common::Rect r2 = r1;
r2.moveTo(r1.left - _bounds.left, r1.top - bounds.top);
_timerImage.copyToCurrentPort(r2, r1);
}
}
void RipTimer::timeChanged(const TimeValue newTime) {
// WORKAROUND: If the timer isn't running, don't run the following code.
// Fixes use of the code when it shouldn't be running (since this is an
// IdlerAnimation, this is called on useIdleTime() but this specific
// timer only makes sense when used as an actual timer).
if (!isRunning())
return;
Common::Rect bounds;
getBounds(bounds);
CoordType newMiddle = bounds.left + bounds.width() * newTime / getDuration();
if (newMiddle != _middle) {
_middle = newMiddle;
triggerRedraw();
}
if (newTime == getStop())
((PegasusEngine *)g_engine)->die(kDeathUncreatedInTSA);
}
FullTSA::FullTSA(InputHandler *nextHandler, PegasusEngine *owner) : Neighborhood(nextHandler, owner, "Full TSA", kFullTSAID),
_ripTimer(kNoDisplayElement), _sprite1(kNoDisplayElement), _sprite2(kNoDisplayElement), _sprite3(kNoDisplayElement) {
setIsItemTaken(kJourneymanKey);
setIsItemTaken(kPegasusBiochip);
setIsItemTaken(kMapBiochip);
}
void FullTSA::init() {
Neighborhood::init();
_ripTimer.setDisplayOrder(kRipTimerOrder);
_ripTimer.startDisplaying();
if (!GameState.getTSASeenRobotGreeting())
forceStridingStop(kTSA03, kNorth, kNoAlternateID);
_sprite1.setDisplayOrder(kMonitorLayer);
_sprite1.startDisplaying();
_sprite2.setDisplayOrder(kMonitorLayer);
_sprite2.startDisplaying();
_sprite3.setDisplayOrder(kMonitorLayer);
_sprite3.startDisplaying();
// Fix a mistake in the world builder tables.
HotspotInfoTable::Entry *entry = findHotspotEntry(kTSA23WestChipsSpotID);
entry->hotspotItem = kPegasusBiochip;
}
void FullTSA::dieUncreatedInTSA() {
die(kDeathUncreatedInTSA);
}
void FullTSA::start() {
g_energyMonitor->stopEnergyDraining();
if (!GameState.getScoringEnterTSA()) {
_utilityFuse.primeFuse(GameState.getTSAFuseTimeLimit());
_utilityFuse.setFunctor(new Common::Functor0Mem<void, FullTSA>(this, &FullTSA::dieUncreatedInTSA));
_utilityFuse.lightFuse();
} else if (GameState.getTSAState() == kTSAPlayerDetectedRip || GameState.getTSAState() == kTSAPlayerNeedsHistoricalLog) {
_ripTimer.initImage();
_ripTimer.moveElementTo(kRipTimerLeft, kRipTimerTop);
_ripTimer.setSegment(0, kRipTimeLimit, kRipTimeScale);
_ripTimer.setTime(GameState.getRipTimerTime());
_ripTimer.start();
}
Neighborhood::start();
}
void FullTSA::flushGameState() {
GameState.setRipTimerTime(_ripTimer.getTime());
GameState.setTSAFuseTimeLimit(_utilityFuse.getTimeRemaining());
}
Common::String FullTSA::getBriefingMovie() {
Common::String movieName = Neighborhood::getBriefingMovie();
if (movieName.empty()) {
RoomID room = GameState.getCurrentRoom();
switch (GameState.getTSAState()) {
case kTSAPlayerNotArrived:
case kTSAPlayerForcedReview:
if (room >= kTSA16 && room <= kTSA0B)
return "Images/AI/TSA/XT01A";
return "Images/AI/TSA/XT01";
case kTSAPlayerDetectedRip:
case kTSAPlayerNeedsHistoricalLog:
return "Images/AI/TSA/XT02";
case kTSAPlayerGotHistoricalLog:
case kTSAPlayerInstalledHistoricalLog:
return "Images/AI/TSA/XT03";
default:
switch (getCurrentActivation()) {
case kActivationJumpToPrehistoric:
g_AIChip->showBriefingClicked();
startExtraSequenceSync(kTSA37PegasusAI2, kHintInterruption);
startExtraSequenceSync(kTSA37AI2ToPrehistoric, kFilterNoInput);
g_AIChip->clearClicked();
break;
case kActivationJumpToNorad:
g_AIChip->showBriefingClicked();
startExtraSequenceSync(kTSA37PegasusAI7, kHintInterruption);
startExtraSequenceSync(kTSA37AI7ToNorad, kFilterNoInput);
g_AIChip->clearClicked();
break;
case kActivationJumpToMars:
g_AIChip->showBriefingClicked();
startExtraSequenceSync(kTSA37PegasusAI6, kHintInterruption);
startExtraSequenceSync(kTSA37AI6ToMars, kFilterNoInput);
g_AIChip->clearClicked();
break;
case kActivationJumpToWSC:
g_AIChip->showBriefingClicked();
startExtraSequenceSync(kTSA37PegasusAI5, kHintInterruption);
startExtraSequenceSync(kTSA37AI5ToWSC, kFilterNoInput);
g_AIChip->clearClicked();
break;
default:
if (GameState.allTimeZonesFinished())
return "Images/AI/TSA/XT05";
return "Images/AI/TSA/XT04";
}
break;
}
}
return movieName;
}
Common::String FullTSA::getEnvScanMovie() {
Common::String movieName = Neighborhood::getEnvScanMovie();
if (movieName.empty()) {
switch (GameState.getTSAState()) {
case kTSAPlayerNotArrived:
case kTSAPlayerForcedReview:
case kTSAPlayerDetectedRip:
case kTSAPlayerNeedsHistoricalLog:
return "Images/AI/TSA/XTE1";
default:
if (GameState.getCurrentRoom() == kTSA37) {
g_AIChip->showEnvScanClicked();
startExtraSequenceSync(kTSA37EnvironmentalScan, kHintInterruption);
switch (getCurrentActivation()) {
case kActivationJumpToPrehistoric:
startExtraSequenceSync(kTSA37AI2ToPrehistoric, kFilterNoInput);
break;
case kActivationJumpToNorad:
startExtraSequenceSync(kTSA37AI7ToNorad, kFilterNoInput);
showExtraView(kTSA37JumpToNoradMenu);
break;
case kActivationJumpToMars:
startExtraSequenceSync(kTSA37AI6ToMars, kFilterNoInput);
showExtraView(kTSA37JumpToMarsMenu);
break;
case kActivationJumpToWSC:
startExtraSequenceSync(kTSA37AI5ToWSC, kFilterNoInput);
showExtraView(kTSA37JumpToWSCMenu);
break;
default:
startExtraSequenceSync(kTSA37AI4ToMainMenu, kFilterNoInput);
break;
}
g_AIChip->clearClicked();
} else if (GameState.allTimeZonesFinished()) {
return "Images/AI/TSA/XTE1";
} else {
return "Images/AI/TSA/XTE2";
}
break;
}
}
return movieName;
}
uint FullTSA::getNumHints() {
uint numHints = Neighborhood::getNumHints();
if (numHints == 0) {
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (GameState.getCurrentRoom() == kTSA0B && GameState.getTSA0BZoomedIn())
numHints = 3;
break;
}
}
return numHints;
}
Common::String FullTSA::getHintMovie(uint hintNum) {
Common::String movieName = Neighborhood::getHintMovie(hintNum);
if (movieName.empty())
movieName = Common::String::format("Images/AI/TSA/XT20NH%d", hintNum);
return movieName;
}
void FullTSA::loadAmbientLoops() {
RoomID room = GameState.getCurrentRoom();
switch (GameState.getTSAState()) {
case kTSAPlayerDetectedRip:
case kTSAPlayerNeedsHistoricalLog:
if ((room >= kTSA16 && room <= kTSA0B) || (room >= kTSA21Cyan && room <= kTSA24Cyan) || (room >= kTSA21Red && room <= kTSA24Red))
loadLoopSound1("Sounds/TSA/TSA CLAXON.22K.AIFF", 0x100 / 4, 0, 0);
else if (room == kTSA25Cyan || room == kTSA25Red)
loadLoopSound1("Sounds/TSA/TSA CLAXON.22K.AIFF", 0x100 / 6, 0, 0);
else
loadLoopSound1("Sounds/TSA/TSA EchoClaxon.22K.AIFF", 0x100 / 4, 0, 0);
break;
default:
if (room >= kTSA00 && room <= kTSA02)
loadLoopSound1("Sounds/TSA/T01NAE.NEW.22K.AIFF");
else if (room >= kTSA03 && room <= kTSA15)
loadLoopSound1("Sounds/TSA/T01NAE.NEW.22K.AIFF");
else if (room >= kTSA16 && room <= kTSA0B)
loadLoopSound1("Sounds/TSA/T14SAEO1.22K.AIFF");
else if (room >= kTSA21Cyan && room <= kTSA25Red)
loadLoopSound1("Sounds/TSA/T15SAE01.22K.AIFF");
else if (room >= kTSA26 && room <= kTSA37)
loadLoopSound1("Sounds/TSA/T01NAE.NEW.22K.AIFF");
break;
}
}
short FullTSA::getStaticCompassAngle(const RoomID room, const DirectionConstant dir) {
int16 result = Neighborhood::getStaticCompassAngle(room, dir);
switch (room) {
case kTSA08:
result += kCompassShift;
break;
case kTSA09:
result -= kCompassShift;
break;
case kTSA10:
result += kCompassShift * 2;
break;
case kTSA11:
case kTSA22Cyan:
case kTSA22Red:
result -= kCompassShift * 2;
break;
case kTSA12:
result += kCompassShift * 3;
break;
case kTSA13:
result -= kCompassShift * 3;
break;
case kTSA14:
case kTSA16:
case kTSA17:
case kTSA18:
case kTSA19:
result += kCompassShift * 4;
break;
case kTSA0B:
result += kCompassShift * 4;
if (dir == kWest)
result += 30;
else if (dir == kEast)
result -= 30;
break;
case kTSA33:
result += kCompassShift * 4;
break;
case kTSA15:
case kTSA21Cyan:
case kTSA24Cyan:
case kTSA25Cyan:
case kTSA21Red:
case kTSA24Red:
case kTSA25Red:
case kTSA26:
case kTSA27:
case kTSA28:
case kTSA29:
case kTSA30:
result -= kCompassShift * 4;
break;
case kTSA23Cyan:
case kTSA23Red:
result -= kCompassShift * 6;
break;
case kTSA32:
result -= kCompassShift * 8;
break;
case kTSA34:
result -= kCompassShift * 12;
break;
case kTSA35:
result += kCompassShift * 8;
break;
case kTSA37:
result -= kCompassShift * 2;
break;
}
return result;
}
void FullTSA::getExitCompassMove(const ExitTable::Entry &exitEntry, FaderMoveSpec &compassMove) {
Neighborhood::getExitCompassMove(exitEntry, compassMove);
switch (MakeRoomView(exitEntry.room, exitEntry.direction)) {
case MakeRoomView(kTSA01, kSouth):
compassMove.insertFaderKnot(exitEntry.movieStart, -180);
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 3, -180);
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 33,
getStaticCompassAngle(exitEntry.exitRoom, exitEntry.exitDirection));
break;
case MakeRoomView(kTSA11, kEast):
if (getCurrentAlternate() == kAltTSARobotsAtReadyRoom) {
compassMove.makeTwoKnotFaderSpec(kFullTSAMovieScale, exitEntry.movieStart,
getStaticCompassAngle(kTSA11, kEast), exitEntry.movieEnd,
getStaticCompassAngle(kTSA13, kEast));
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 13, compassMove.getNthKnotValue(1));
}
break;
case MakeRoomView(kTSA34, kNorth):
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 48,
getStaticCompassAngle(exitEntry.room, exitEntry.direction));
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 68,
getStaticCompassAngle(exitEntry.exitRoom, exitEntry.exitDirection));
break;
case MakeRoomView(kTSA37, kNorth):
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 38,
getStaticCompassAngle(exitEntry.room, exitEntry.direction));
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 64,
getStaticCompassAngle(exitEntry.room, exitEntry.direction) + kCompassShift * 3 / 2);
compassMove.insertFaderKnot(exitEntry.movieStart + kFullTSAFrameDuration * 105,
getStaticCompassAngle(exitEntry.exitRoom, exitEntry.exitDirection));
break;
}
}
void FullTSA::getExtraCompassMove(const ExtraTable::Entry &extraEntry, FaderMoveSpec &compassMove) {
int16 angle;
switch (extraEntry.extra) {
case kTSA0BEastTurnLeft:
case kTSA0BNorthTurnLeft:
angle =getStaticCompassAngle(GameState.getCurrentRoom(), GameState.getCurrentDirection());
compassMove.makeTwoKnotFaderSpec(_navMovie.getScale(), extraEntry.movieStart, angle,
extraEntry.movieEnd, angle - 60);
break;
case kTSA0BNorthTurnRight:
case kTSA0BWestTurnRight:
angle = getStaticCompassAngle(GameState.getCurrentRoom(), GameState.getCurrentDirection());
compassMove.makeTwoKnotFaderSpec(_navMovie.getScale(), extraEntry.movieStart, angle,
extraEntry.movieEnd, angle + 60);
break;
case kTSA22RedEastZoomInSequence:
angle = getStaticCompassAngle(GameState.getCurrentRoom(), GameState.getCurrentDirection());
compassMove.makeTwoKnotFaderSpec(_navMovie.getScale(), extraEntry.movieStart, angle,
extraEntry.movieEnd, angle);
compassMove.insertFaderKnot(extraEntry.movieStart + 1200, angle - kCompassShift * 2);
compassMove.insertFaderKnot(extraEntry.movieStart + 8160, angle - kCompassShift * 2);
compassMove.insertFaderKnot(extraEntry.movieStart + 9840, angle);
break;
case kTSA23RedWestVaultZoomInSequence:
angle = getStaticCompassAngle(GameState.getCurrentRoom(), GameState.getCurrentDirection());
compassMove.makeTwoKnotFaderSpec(_navMovie.getScale(), extraEntry.movieStart, angle,
extraEntry.movieEnd, angle);
compassMove.insertFaderKnot(extraEntry.movieStart + 1200, angle - kCompassShift * 2);
compassMove.insertFaderKnot(extraEntry.movieStart + 10100, angle - kCompassShift * 2);
compassMove.insertFaderKnot(extraEntry.movieStart + 11880, angle);
break;
default:
Neighborhood::getExtraCompassMove(extraEntry, compassMove);
break;
}
}
uint16 FullTSA::getDateResID() const {
return kDate2318ID;
}
TimeValue FullTSA::getViewTime(const RoomID room, const DirectionConstant direction) {
ExtraID extraID = 0xffffffff;
switch (MakeRoomView(room, direction)) {
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn())
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
extraID = s_historicalLogViews[getHistoricalLogIndex()];
break;
default:
extraID = kTSA0BEastZoomedView;
break;
}
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn())
switch (GameState.getTSAState()) {
case kTSAPlayerNeedsHistoricalLog:
extraID = kTSA0BNorthRipView1;
break;
default:
extraID = kTSA0BNorthZoomedView;
break;
}
break;
case MakeRoomView(kTSA0B, kWest):
if (GameState.getTSA0BZoomedIn())
extraID = kTSA0BWestZoomedView;
break;
case MakeRoomView(kTSA22Red, kEast):
if (_privateFlags.getFlag(kTSAPrivateKeyVaultOpenFlag)) {
if (_vm->itemInLocation(kJourneymanKey, kFullTSAID, kTSA22Red, kEast))
extraID = kTSA22RedEastVaultViewWithKey;
else
extraID = kTSA22RedEastVaultViewNoKey;
}
break;
case MakeRoomView(kTSA23Red, kWest):
if (_privateFlags.getFlag(kTSAPrivateChipVaultOpenFlag)) {
if (_vm->itemInLocation(kPegasusBiochip, kFullTSAID, kTSA23Red, kWest))
extraID = kTSA23RedWestVaultViewWithChips;
else
extraID = kTSA23RedWestVaultViewNoChips;
}
break;
case MakeRoomView(kTSA37, kNorth):
switch (GameState.getTSAState()) {
case kTSAPlayerGotHistoricalLog:
extraID = kTSA37ReviewRequiredToExit;
break;
case kPlayerFinishedWithTSA:
extraID = kTSA37CongratulationsToExit;
break;
default:
extraID = kTSA37AI3ToHorse;
break;
}
break;
}
if (extraID != 0xffffffff) {
ExtraTable::Entry entry;
getExtraEntry(extraID, entry);
return entry.movieEnd - 1;
}
return Neighborhood::getViewTime(room, direction);
}
void FullTSA::findSpotEntry(const RoomID room, const DirectionConstant direction, SpotFlags flags, SpotTable::Entry &entry) {
switch (MakeRoomView(room, direction)) {
case MakeRoomView(kTSA0B, kNorth):
case MakeRoomView(kTSA0B, kEast):
case MakeRoomView(kTSA0B, kWest):
if (!GameState.getTSA0BZoomedIn())
Neighborhood::findSpotEntry(room, direction, flags, entry);
break;
default:
Neighborhood::findSpotEntry(room, direction, flags, entry);
break;
}
}
void FullTSA::getExtraEntry(const uint32 id, ExtraTable::Entry &extraEntry) {
Neighborhood::getExtraEntry(id, extraEntry);
if (id == kTSA0BShowGuardRobots)
extraEntry.movieStart += kFullTSAFrameDuration * 3;
}
void FullTSA::pickedUpItem(Item *item) {
BiochipItem *biochip;
switch (item->getObjectID()) {
case kJourneymanKey:
GameState.setScoringGotJourneymanKey(true);
break;
case kPegasusBiochip:
biochip = (BiochipItem *)_vm->getAllItems().findItemByID(kMapBiochip);
_vm->addItemToBiochips(biochip);
GameState.setScoringGotPegasusBiochip(true);
break;
}
}
void FullTSA::playExtraMovie(const ExtraTable::Entry &extraEntry, const NotificationFlags flags, const InputBits interruptionInput) {
switch (extraEntry.extra) {
case kTSA0BNorthZoomIn:
if (_privateFlags.getFlag(kTSAPrivateLogReaderOpenFlag)) {
_privateFlags.setFlag(kTSAPrivateLogReaderOpenFlag, false);
requestExtraSequence(kTSA0BNorthHistLogClose, 0, kFilterNoInput);
requestExtraSequence(kTSA0BNorthZoomIn, kExtraCompletedFlag, kFilterNoInput);
} else {
Neighborhood::playExtraMovie(extraEntry, flags, interruptionInput);
}
break;
case kTSA0BNorthZoomOut:
if (_ripTimer.isVisible())
_ripTimer.hide();
shutDownRobotMonitor();
Neighborhood::playExtraMovie(extraEntry, flags, interruptionInput);
break;
case kTSA0BEastZoomOut:
shutDownComparisonMonitor();
Neighborhood::playExtraMovie(extraEntry, flags, interruptionInput);
break;
default:
Neighborhood::playExtraMovie(extraEntry, flags, interruptionInput);
break;
}
}
void FullTSA::startDoorOpenMovie(const TimeValue startTime, const TimeValue stopTime) {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA00, kNorth):
if (GameState.getLastNeighborhood() != kFullTSAID) {
startExtraSequence(kTSAArriveFromCaldoria, kDoorOpenCompletedFlag, kFilterNoInput);
return;
}
break;
case MakeRoomView(kTSA02, kNorth):
if (!GameState.getTSAIDedAtDoor()) {
GameState.setTSAIDedAtDoor(true);
requestExtraSequence(kTSA02NorthZoomIn, 0, kFilterNoInput);
requestExtraSequence(kTSA02NorthTenSecondDoor, 0, kFilterNoInput);
if (GameState.getTSASeenAgent3AtDoor()) {
requestExtraSequence(kTSA02NorthZoomOut, kExtraCompletedFlag, kFilterNoInput);
} else {
GameState.setTSASeenAgent3AtDoor(true);
requestExtraSequence(kTSA02NorthZoomOut, 0, kFilterNoInput);
requestExtraSequence(kTSA02NorthDoorWithAgent3, kDoorOpenCompletedFlag, kFilterNoInput);
}
return;
}
break;
case MakeRoomView(kTSA03, kSouth):
if (GameState.getTSAState() == kRobotsAtFrontDoor) {
playDeathExtra(kTSA03SouthRobotDeath, kDeathShotByTSARobots);
return;
}
break;
case MakeRoomView(kTSA16, kNorth):
if (GameState.getTSAState() == kRobotsAtCommandCenter) {
playDeathExtra(kTSA16NorthRobotDeath, kDeathShotByTSARobots);
return;
}
break;
}
Neighborhood::startDoorOpenMovie(startTime, stopTime);
}
InputBits FullTSA::getInputFilter() {
InputBits result = Neighborhood::getInputFilter();
switch (GameState.getCurrentRoom()) {
case kTSA0B:
if (GameState.getT0BMonitorMode() != kMonitorNeutral)
// Only allow a click.
result &= JMPPPInput::getClickInputFilter();
break;
case kTSA37:
// Can't move forward in Pegasus. Only press the exit button.
result &= ~(kFilterUpButton | kFilterUpAuto);
break;
}
return result;
}
void FullTSA::turnLeft() {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA15, kNorth):
if (GameState.getTSAState() == kTSAPlayerNeedsHistoricalLog)
setCurrentAlternate(kAltTSANormal);
break;
case MakeRoomView(kTSA0B, kNorth):
if (_ripTimer.isVisible())
_ripTimer.hide();
releaseSprites();
break;
case MakeRoomView(kTSA0B, kEast):
shutDownComparisonMonitor();
break;
}
Neighborhood::turnLeft();
}
void FullTSA::turnRight() {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA15, kSouth):
if (GameState.getTSAState() == kTSAPlayerNeedsHistoricalLog)
setCurrentAlternate(kAltTSANormal);
break;
case MakeRoomView(kTSA0B, kNorth):
if (_ripTimer.isVisible())
_ripTimer.hide();
releaseSprites();
break;
case MakeRoomView(kTSA0B, kEast):
shutDownComparisonMonitor();
break;
}
Neighborhood::turnRight();
}
void FullTSA::openDoor() {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA15, kSouth):
if (GameState.getTSAState() == kTSAPlayerNeedsHistoricalLog || GameState.getTSAState() == kRobotsAtFrontDoor)
setCurrentAlternate(kAltTSARedAlert);
break;
}
Neighborhood::openDoor();
}
CanMoveForwardReason FullTSA::canMoveForward(ExitTable::Entry &entry) {
if (GameState.getCurrentRoomAndView() == MakeRoomView(kTSA25Red, kNorth))
return kCantMoveBlocked;
return Neighborhood::canMoveForward(entry);
}
CanOpenDoorReason FullTSA::canOpenDoor(DoorTable::Entry &entry) {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA02, kNorth):
if (!GameState.getTSAFrontDoorUnlockedOutside())
return kCantOpenLocked;
break;
case MakeRoomView(kTSA03, kSouth):
if (!GameState.getTSAFrontDoorUnlockedInside())
return kCantOpenLocked;
break;
case MakeRoomView(kTSA16, kNorth):
if (GameState.getTSACommandCenterLocked())
return kCantOpenLocked;
break;
}
return Neighborhood::canOpenDoor(entry);
}
void FullTSA::bumpIntoWall() {
requestSpotSound(kTSABumpIntoWallIn, kTSABumpIntoWallOut, kFilterAllInput, 0);
Neighborhood::bumpIntoWall();
}
void FullTSA::downButton(const Input &input) {
switch (GameState.getCurrentRoomAndView()) {
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn())
startExtraSequence(kTSA0BEastZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn())
startExtraSequence(kTSA0BNorthZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case MakeRoomView(kTSA0B, kWest):
if (GameState.getTSA0BZoomedIn() && GameState.getT0BMonitorMode() == kMonitorNeutral)
startExtraSequence(kTSA0BWestZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
default:
Neighborhood::downButton(input);
}
}
void FullTSA::activateOneHotspot(HotspotInfoTable::Entry &entry, Hotspot *spot) {
switch (spot->getObjectID()) {
case kTSA0BEastLeftRewindSpotID:
case kTSA0BEastLeftPlaySpotID:
if (_privateFlags.getFlag(kTSAPrivatePlayingRightComparisonFlag))
spot->setInactive();
else
Neighborhood::activateOneHotspot(entry, spot);
break;
case kTSA0BEastRightRewindSpotID:
case kTSA0BEastRightPlaySpotID:
if (_privateFlags.getFlag(kTSAPrivatePlayingLeftComparisonFlag))
spot->setInactive();
else
Neighborhood::activateOneHotspot(entry, spot);
break;
default:
Neighborhood::activateOneHotspot(entry, spot);
break;
}
}
void FullTSA::activateHotspots() {
Neighborhood::activateHotspots();
switch (MakeRoomView(GameState.getCurrentRoom(), GameState.getCurrentDirection())) {
case MakeRoomView(kTSA02, kNorth):
if (!GameState.getTSAFrontDoorUnlockedOutside())
_vm->getAllHotspots().activateOneHotspot(kTSA02DoorSpotID);
break;
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn())
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (getCurrentActivation() != kActivateTSA0BComparisonVideo) {
_vm->getAllHotspots().activateOneHotspot(kTSA0BEastCompareNoradSpotID);
_vm->getAllHotspots().activateOneHotspot(kTSA0BEastCompareMarsSpotID);
_vm->getAllHotspots().activateOneHotspot(kTSA0BEastCompareCaldoriaSpotID);
_vm->getAllHotspots().activateOneHotspot(kTSA0BEastCompareWSCSpotID);
}
break;
}
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn())
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
_vm->getAllHotspots().activateOneHotspot(kTSA0BNorthRobotsToCommandCenterSpotID);
_vm->getAllHotspots().activateOneHotspot(kTSA0BNorthRobotsToReadyRoomSpotID);
_vm->getAllHotspots().activateOneHotspot(kTSA0BNorthRobotsToFrontDoorSpotID);
break;
}
break;
}
}
void FullTSA::clickInHotspot(const Input &input, const Hotspot *clickedSpot) {
switch (clickedSpot->getObjectID()) {
case kTSAGTOtherSpotID:
showExtraView(kTSAGTOtherChoice);
playSpotSoundSync(kTSANoOtherDestinationIn, kTSANoOtherDestinationOut);
showExtraView(kTSAGTCardSwipe);
break;
case kTSA02DoorSpotID:
GameState.setTSAFrontDoorUnlockedOutside(true);
Neighborhood::clickInHotspot(input, clickedSpot);
break;
case kTSA03EastJimenezSpotID:
startExtraLongSequence(kTSA03JimenezZoomIn, kTSA03JimenezZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA03WestCrenshawSpotID:
startExtraLongSequence(kTSA03CrenshawZoomIn, kTSA03CrenshawZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA04EastMatsumotoSpotID:
startExtraLongSequence(kTSA04MatsumotoZoomIn, kTSA04MatsumotoZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA04WestCastilleSpotID:
startExtraLongSequence(kTSA04CastilleZoomIn, kTSA04CastilleZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA05EastSinclairSpotID:
startExtraLongSequence(kTSA05SinclairZoomIn, kTSA05SinclairZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA05WestWhiteSpotID:
startExtraLongSequence(kTSA05WhiteZoomIn, kTSA05WhiteZoomOut, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA0BEastCompareNoradSpotID:
initializeComparisonMonitor(kMonitorNoradComparison, kTSA0BNoradComparisonView);
break;
case kTSA0BEastCompareMarsSpotID:
initializeComparisonMonitor(kMonitorMarsComparison, kTSA0BMarsComparisonView);
break;
case kTSA0BEastCompareCaldoriaSpotID:
initializeComparisonMonitor(kMonitorCaldoriaComparison, kTSA0BCaldoriaComparisonView);
break;
case kTSA0BEastCompareWSCSpotID:
initializeComparisonMonitor(kMonitorWSCComparison, kTSA0BWSCComparisonView);
break;
case kTSA0BEastCloseVideoSpotID:
_navMovie.stop();
_sprite3.show();
_vm->delayShell(1, 2);
_sprite3.hide();
initializeComparisonMonitor(kMonitorNeutral, 0);
break;
case kTSA0BEastLeftPlaySpotID:
playLeftComparison();
break;
case kTSA0BEastRightPlaySpotID:
playRightComparison();
break;
// Command center
case kTSA0BWestTheorySpotID:
initializeTBPMonitor(kMonitorTheory, kTSA0BTBPTheoryHighlight);
break;
case kTSA0BWestBackgroundSpotID:
initializeTBPMonitor(kMonitorBackground, kTSA0BTBPBackgroundHighlight);
break;
case kTSA0BWestProcedureSpotID:
initializeTBPMonitor(kMonitorProcedure, kTSA0BTBPProcedureHighlight);
break;
case kTSA0BWestCloseVideoSpotID:
_navMovie.stop();
_sprite2.show();
_vm->delayShell(1, 2);
_sprite2.hide();
initializeTBPMonitor(kMonitorNeutral, 0);
break;
case kTSA0BWestPlayVideoSpotID:
playTBPMonitor();
break;
case kTSA0BEastLeftRewindSpotID:
case kTSA0BEastRightRewindSpotID:
case kTSA0BWestRewindVideoSpotID:
if ((GameState.getT0BMonitorMode() & kPlayingAnyMask) != 0) {
bool playing = _navMovie.isRunning();
if (playing)
_navMovie.stop();
if (clickedSpot->getObjectID() == kTSA0BEastRightRewindSpotID)
_sprite2.show();
else
_sprite1.show();
_vm->delayShell(1, 2);
if (clickedSpot->getObjectID() == kTSA0BEastRightRewindSpotID)
_sprite2.hide();
else
_sprite1.hide();
_navMovie.setTime(GameState.getT0BMonitorStart());
if (playing) {
_navMovie.start();
} else {
_privateFlags.setFlag(kTSAPrivatePlayingLeftComparisonFlag, false);
_privateFlags.setFlag(kTSAPrivatePlayingRightComparisonFlag, false);
}
}
break;
case kTSA22EastMonitorSpotID:
requestExtraSequence(kTSA22RedEastZoomInSequence, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA23WestMonitorSpotID:
requestExtraSequence(kTSA23RedWestVaultZoomInSequence, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA0BNorthRobotsToCommandCenterSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionCCDoorSprite);
_sprite1.show();
_vm->delayShell(1, 2);
_sprite1.hide();
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
// Nothing
break;
case kRobotsAtFrontDoor:
GameState.setTSAState(kRobotsAtCommandCenter);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromFrontDoorToCommandCenter, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtReadyRoom:
GameState.setTSAState(kRobotsAtCommandCenter);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromReadyRoomToCommandCenter, kExtraCompletedFlag, kFilterNoInput);
break;
}
break;
case kTSA0BNorthRobotsToReadyRoomSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionRRDoorSprite);
_sprite1.show();
_vm->delayShell(1, 2);
_sprite1.hide();
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
GameState.setTSAState(kRobotsAtReadyRoom);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromCommandCenterToReadyRoom, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtFrontDoor:
GameState.setTSAState(kRobotsAtReadyRoom);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromFrontDoorToReadyRoom, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtReadyRoom:
// Nothing
break;
}
break;
case kTSA0BNorthRobotsToFrontDoorSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionFDDoorSprite);
_sprite1.show();
_vm->delayShell(1, 2);
_sprite1.hide();
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
GameState.setTSAState(kRobotsAtFrontDoor);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromCommandCenterToFrontDoor, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtFrontDoor:
// Nothing
break;
case kRobotsAtReadyRoom:
GameState.setTSAState(kRobotsAtFrontDoor);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromReadyRoomToFrontDoor, kExtraCompletedFlag, kFilterNoInput);
break;
}
break;
// Pegasus
case kTSA37NorthJumpToPrehistoricSpotID:
startExtraSequence(kTSA37PegasusDepart, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA37NorthExitSpotID:
_sprite2.setCurrentFrameIndex(1);
_vm->delayShell(1, 2);
releaseSprites();
moveForward();
break;
case kTSA37NorthJumpMenuSpotID:
_sprite2.setCurrentFrameIndex(1);
_vm->delayShell(1, 2);
releaseSprites();
break;
case kTSA37NorthJumpToNoradSpotID:
GameState.setTSAState(kPlayerOnWayToNorad);
requestExtraSequence(kTSA37JumpToNorad, 0, kFilterNoInput);
if (!GameState.getBeenToNorad()) {
requestExtraSequence(kTSA37NoradToAI7, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusAI7, 0, kFilterNoInput);
requestExtraSequence(kTSA37AI7ToNorad, 0, kFilterNoInput);
GameState.setBeenToNorad(true);
}
requestExtraSequence(kTSA37NoradToDepart, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusDepart, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA37NorthJumpToMarsSpotID:
GameState.setTSAState(kPlayerOnWayToMars);
requestExtraSequence(kTSA37JumpToMars, 0, kFilterNoInput);
if (!GameState.getBeenToMars()) {
requestExtraSequence(kTSA37MarsToAI6, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusAI6, 0, kFilterNoInput);
requestExtraSequence(kTSA37AI6ToMars, 0, kFilterNoInput);
GameState.setBeenToMars(true);
}
requestExtraSequence(kTSA37MarsToDepart, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusDepart, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA37NorthJumpToWSCSpotID:
GameState.setTSAState(kPlayerOnWayToWSC);
requestExtraSequence(kTSA37JumpToWSC, 0, kFilterNoInput);
if (!GameState.getBeenToWSC()) {
requestExtraSequence(kTSA37WSCToAI5, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusAI5, 0, kFilterNoInput);
requestExtraSequence(kTSA37AI5ToWSC, 0, kFilterNoInput);
GameState.setBeenToWSC(true);
}
requestExtraSequence(kTSA37WSCToDepart, 0, kFilterNoInput);
requestExtraSequence(kTSA37PegasusDepart, kExtraCompletedFlag, kFilterNoInput);
break;
default:
Neighborhood::clickInHotspot(input, clickedSpot);
break;
}
}
void FullTSA::showMainJumpMenu() {
ExtraID jumpMenuView = kTSA37JumpMenu000;
if (GameState.getNoradFinished())
jumpMenuView += 4;
if (GameState.getMarsFinished())
jumpMenuView += 2;
if (GameState.getWSCFinished())
jumpMenuView += 1;
showExtraView(jumpMenuView);
setCurrentActivation(kActivationMainJumpMenu);
}
void FullTSA::playTBPMonitor() {
InputDevice.waitInput(kFilterAllButtons);
if ((GameState.getT0BMonitorMode() & kPlayingTBPMask) == 0) {
ExtraID extra;
switch (GameState.getT0BMonitorMode() & kRawModeMask) {
case kMonitorTheory:
GameState.setTSASeenTheory(true);
extra = kTSA0BTBPTheory;
GameState.setScoringSawTheory(true);
break;
case kMonitorBackground:
GameState.setTSASeenBackground(true);
extra = kTSA0BTBPBackground;
GameState.setScoringSawBackground(true);
break;
case kMonitorProcedure:
GameState.setTSASeenProcedure(true);
extra = kTSA0BTBPProcedure;
GameState.setScoringSawProcedure(true);
break;
default:
error("Invalid monitor mode");
}
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() | kPlayingTBPMask);
ExtraTable::Entry entry;
getExtraEntry(extra, entry);
_lastExtra = extra;
GameState.setT0BMonitorStart(entry.movieStart + kFullTSAFrameDuration * 5);
startMovieSequence(GameState.getT0BMonitorStart(), entry.movieEnd, kExtraCompletedFlag, false, kFilterAllInput);
} else if (_navMovie.isRunning()) {
_navMovie.stop();
} else {
_navMovie.start();
}
}
void FullTSA::initializeTBPMonitor(const int newMode, const ExtraID highlightExtra) {
GameState.setT0BMonitorMode(newMode);
if (newMode != kMonitorNeutral) {
showExtraView(highlightExtra);
_vm->delayShell(1, 2);
setCurrentActivation(kActivateTSA0BTBPVideo);
_sprite1.addPICTResourceFrame(kTBPRewindPICTID, false, 0, 0);
_sprite1.moveElementTo(kTBPRewindLeft, kTBPRewindTop);
_sprite1.setCurrentFrameIndex(0);
_sprite2.addPICTResourceFrame(kTBPCloseBoxPICTID, false, 0, 0);
_sprite2.moveElementTo(kTBPCloseLeft, kTBPCloseTop);
_sprite2.setCurrentFrameIndex(0);
playTBPMonitor();
} else {
if (GameState.getTSAState() == kTSAPlayerForcedReview && GameState.getTSASeenTheory() &&
GameState.getTSASeenBackground() && GameState.getTSASeenProcedure()) {
setOffRipAlarm();
} else {
setCurrentActivation(kActivateTSA0BZoomedIn);
updateViewFrame();
}
releaseSprites();
}
_interruptionFilter = kFilterAllInput;
}
void FullTSA::startUpComparisonMonitor() {
releaseSprites();
_sprite1.addPICTResourceFrame(kComparisonHiliteNoradPICTID, false,
kComparisonHiliteNoradLeft - kComparisonHiliteSpriteLeft,
kComparisonHiliteNoradTop - kComparisonHiliteSpriteTop);
_sprite1.addPICTResourceFrame(kComparisonHiliteMarsPICTID, false,
kComparisonHiliteMarsLeft - kComparisonHiliteSpriteLeft,
kComparisonHiliteMarsTop - kComparisonHiliteSpriteTop);
_sprite1.addPICTResourceFrame(kComparisonHiliteCaldoriaPICTID, false,
kComparisonHiliteCaldoriaLeft - kComparisonHiliteSpriteLeft,
kComparisonHiliteCaldoriaTop - kComparisonHiliteSpriteTop);
_sprite1.addPICTResourceFrame(kComparisonHiliteWSCPICTID, false,
kComparisonHiliteWSCLeft - kComparisonHiliteSpriteLeft,
kComparisonHiliteWSCTop - kComparisonHiliteSpriteTop);
_sprite1.setCurrentFrameIndex(0);
_sprite1.moveElementTo(kComparisonHiliteSpriteLeft, kComparisonHiliteSpriteTop);
_sprite2.addPICTResourceFrame(kComparisonChancesNoradPICTID, false,
kComparisonChancesNoradLeft - kComparisonChancesSpriteLeft,
kComparisonChancesNoradTop - kComparisonChancesSpriteTop);
_sprite2.addPICTResourceFrame(kComparisonChancesMarsPICTID, false,
kComparisonChancesMarsLeft - kComparisonChancesSpriteLeft,
kComparisonChancesMarsTop - kComparisonChancesSpriteTop);
_sprite2.addPICTResourceFrame(kComparisonChancesCaldoriaPICTID, false,
kComparisonChancesCaldoriaLeft - kComparisonChancesSpriteLeft,
kComparisonChancesCaldoriaTop - kComparisonChancesSpriteTop);
_sprite2.addPICTResourceFrame(kComparisonChancesWSCPICTID, false,
kComparisonChancesWSCLeft - kComparisonChancesSpriteLeft,
kComparisonChancesWSCTop - kComparisonChancesSpriteTop);
_sprite2.setCurrentFrameIndex(0);
_sprite2.moveElementTo(kComparisonChancesSpriteLeft, kComparisonChancesSpriteTop);
updateViewFrame();
}
void FullTSA::shutDownComparisonMonitor() {
releaseSprites();
}
void FullTSA::initializeComparisonMonitor(const int newMode, const ExtraID comparisonView) {
GameState.setT0BMonitorMode(newMode);
_privateFlags.setFlag(kTSAPrivatePlayingLeftComparisonFlag, false);
_privateFlags.setFlag(kTSAPrivatePlayingRightComparisonFlag, false);
if (newMode != kMonitorNeutral) {
shutDownComparisonMonitor();
setCurrentActivation(kActivateTSA0BComparisonVideo);
_sprite1.addPICTResourceFrame(kComparisonLeftRewindPICTID, false, 0, 0);
_sprite1.moveElementTo(kComparisonLeftRewindLeft, kComparisonLeftRewindTop);
_sprite1.setCurrentFrameIndex(0);
_sprite2.addPICTResourceFrame(kComparisonRightRewindPICTID, false, 0, 0);
_sprite2.moveElementTo(kComparisonRightRewindLeft, kComparisonRightRewindTop);
_sprite2.setCurrentFrameIndex(0);
_sprite3.addPICTResourceFrame(kComparisonCloseBoxPICTID, false, 0, 0);
_sprite3.moveElementTo(kComparisonCloseLeft, kComparisonCloseTop);
_sprite3.setCurrentFrameIndex(0);
showExtraView(comparisonView);
} else {
if (GameState.getTSAState() == kTSAPlayerInstalledHistoricalLog &&
GameState.getTSASeenNoradNormal() &&
GameState.getTSASeenNoradAltered() &&
GameState.getTSASeenMarsNormal() &&
GameState.getTSASeenMarsAltered() &&
GameState.getTSASeenCaldoriaNormal() &&
GameState.getTSASeenCaldoriaAltered() &&
GameState.getTSASeenWSCNormal() &&
GameState.getTSASeenWSCAltered()) {
GameState.setTSAState(kTSABossSawHistoricalLog);
requestExtraSequence(kTSA0BEastZoomOut, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BEastTurnLeft, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BNorthZoomIn, kExtraCompletedFlag, kFilterNoInput);
} else {
setCurrentActivation(kActivateTSA0BZoomedIn);
releaseSprites();
startUpComparisonMonitor();
}
}
_interruptionFilter = kFilterAllInput;
}
void FullTSA::playLeftComparison() {
InputDevice.waitInput(kFilterAllButtons);
if ((GameState.getT0BMonitorMode() & kPlayingLeftComparisonMask) == 0) {
ExtraID extra;
switch (GameState.getT0BMonitorMode() & kRawModeMask) {
case kMonitorNoradComparison:
GameState.setTSASeenNoradAltered(true);
extra = kTSA0BNoradAltered;
GameState.setScoringSawNoradAltered(true);
break;
case kMonitorMarsComparison:
GameState.setTSASeenMarsAltered(true);
extra = kTSA0BMarsAltered;
GameState.setScoringSawMarsAltered(true);
break;
case kMonitorCaldoriaComparison:
GameState.setTSASeenCaldoriaAltered(true);
extra = kTSA0BCaldoriaAltered;
GameState.setScoringSawCaldoriaAltered(true);
break;
case kMonitorWSCComparison:
GameState.setTSASeenWSCAltered(true);
extra = kTSA0BWSCAltered;
GameState.setScoringSawWSCAltered(true);
break;
default:
error("Invalid monitor mode");
}
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() | kPlayingLeftComparisonMask);
ExtraTable::Entry entry;
getExtraEntry(extra, entry);
_lastExtra = extra;
// skip first five frames of movie
// (this is a dissolve that doesn't belong...)
GameState.setT0BMonitorStart(entry.movieStart + kFullTSAFrameDuration * 5);
_privateFlags.setFlag(kTSAPrivatePlayingLeftComparisonFlag);
// Allow clicking...
startMovieSequence(GameState.getT0BMonitorStart(), entry.movieEnd,
kExtraCompletedFlag, false, JMPPPInput::getClickInputFilter());
} else if (_navMovie.isRunning()) {
_navMovie.stop();
} else {
_navMovie.start();
}
}
void FullTSA::playRightComparison() {
InputDevice.waitInput(kFilterAllButtons);
if ((GameState.getT0BMonitorMode() & kPlayingRightComparisonMask) == 0) {
ExtraID extra;
switch (GameState.getT0BMonitorMode() & kRawModeMask) {
case kMonitorNoradComparison:
GameState.setTSASeenNoradNormal(true);
extra = kTSA0BNoradUnaltered;
GameState.setScoringSawNoradNormal(true);
break;
case kMonitorMarsComparison:
GameState.setTSASeenMarsNormal(true);
extra = kTSA0BMarsUnaltered;
GameState.setScoringSawMarsNormal(true);
break;
case kMonitorCaldoriaComparison:
GameState.setTSASeenCaldoriaNormal(true);
extra = kTSA0BCaldoriaUnaltered;
GameState.setScoringSawCaldoriaNormal(true);
break;
case kMonitorWSCComparison:
GameState.setTSASeenWSCNormal(true);
extra = kTSA0BWSCUnaltered;
GameState.setScoringSawWSCNormal(true);
break;
default:
error("Invalid monitor mode");
}
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() | kPlayingRightComparisonMask);
ExtraTable::Entry entry;
getExtraEntry(extra, entry);
_lastExtra = extra;
// skip first five frames of movie
// (this is a dissolve that doesn't belong...)
GameState.setT0BMonitorStart(entry.movieStart + kFullTSAFrameDuration * 5);
_privateFlags.setFlag(kTSAPrivatePlayingRightComparisonFlag);
// Allow clicking...
startMovieSequence(GameState.getT0BMonitorStart(), entry.movieEnd,
kExtraCompletedFlag, false, JMPPPInput::getClickInputFilter());
} else if (_navMovie.isRunning()) {
_navMovie.stop();
} else {
_navMovie.start();
}
}
// When this function is called, the player is zoomed up on the center monitor, and the
// TSA state is kTSABossSawHistoricalLog.
void FullTSA::startRobotGame() {
requestExtraSequence(kTSA0BNorthCantChangeHistory, 0, kFilterNoInput);
requestExtraSequence(kTSA0BAIInterruption, 0, kFilterNoInput);
requestExtraSequence(kTSA0BShowGuardRobots, 0, kFilterNoInput);
requestExtraSequence(kTSA0BRobotsToCommandCenter, kExtraCompletedFlag, kFilterNoInput);
}
void FullTSA::startUpRobotMonitor() {
releaseSprites();
_sprite1.addPICTResourceFrame(kRedirectionCCRolloverPICTID, true,
kRedirectionCCRolloverLeft - kRedirectionSprite1Left,
kRedirectionCCRolloverTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionRRRolloverPICTID, true,
kRedirectionRRRolloverLeft - kRedirectionSprite1Left,
kRedirectionRRRolloverTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionFDRolloverPICTID, false,
kRedirectionFDRolloverLeft - kRedirectionSprite1Left,
kRedirectionFDRolloverTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionCCDoorPICTID, true,
kRedirectionCCDoorLeft - kRedirectionSprite1Left,
kRedirectionCCDoorTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionRRDoorPICTID, true,
kRedirectionRRDoorLeft - kRedirectionSprite1Left,
kRedirectionRRDoorTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionFDDoorPICTID, false,
kRedirectionFDDoorLeft - kRedirectionSprite1Left,
kRedirectionFDDoorTop - kRedirectionSprite1Top);
_sprite1.addPICTResourceFrame(kRedirectionClosePICTID, false,
kRedirectionCloseLeft - kRedirectionSprite1Left,
kRedirectionCloseTop - kRedirectionSprite1Top);
_sprite1.moveElementTo(kRedirectionSprite1Left, kRedirectionSprite1Top);
_sprite2.addPICTResourceFrame(kRedirectionSecuredPICTID, false,
kRedirectionSecuredLeft - kRedirectionSprite2Left,
kRedirectionSecuredTop - kRedirectionSprite2Top);
_sprite2.addPICTResourceFrame(kRedirectionNewTargetPICTID, false,
kRedirectionNewTargetLeft - kRedirectionSprite2Left,
kRedirectionNewTargetTop - kRedirectionSprite2Top);
_sprite2.moveElementTo(kRedirectionSprite2Left, kRedirectionSprite2Top);
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
showExtraView(kTSA0BNorthRobotsAtCCView);
break;
case kRobotsAtFrontDoor:
showExtraView(kTSA0BNorthRobotsAtFDView);
break;
case kRobotsAtReadyRoom:
showExtraView(kTSA0BNorthRobotsAtRRView);
break;
}
}
void FullTSA::shutDownRobotMonitor() {
releaseSprites();
}
// Assume this is called only when zoomed in at T0B west
void FullTSA::setOffRipAlarm() {
GameState.setTSAState(kTSAPlayerDetectedRip);
_ripTimer.initImage();
_ripTimer.moveElementTo(kRipTimerLeft, kRipTimerTop);
_ripTimer.setSegment(0, kRipTimeLimit, kRipTimeScale);
_ripTimer.start();
loadAmbientLoops();
startExtraSequenceSync(kTSA0BRipAlarmScreen, kFilterNoInput);
_vm->delayShell(2, 1); // Two seconds..
requestExtraSequence(kTSA0BWestZoomOut, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BWestTurnRight, 0, kFilterNoInput);
requestExtraSequence(kTSA0BNorthZoomIn, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BNorthFinallyHappened, 0, kFilterNoInput);
requestExtraSequence(kTSA0BShowRip1, kExtraCompletedFlag, kFilterNoInput);
}
void FullTSA::checkContinuePoint(const RoomID room, const DirectionConstant direction) {
switch (MakeRoomView(room, direction)) {
case MakeRoomView(kTSA04, kNorth):
case MakeRoomView(kTSA14, kEast):
case MakeRoomView(kTSA15, kWest):
case MakeRoomView(kTSA16, kNorth):
case MakeRoomView(kTSA16, kSouth):
case MakeRoomView(kTSA21Cyan, kSouth):
case MakeRoomView(kTSA21Red, kSouth):
case MakeRoomView(kTSA26, kNorth):
makeContinuePoint();
break;
}
}
void FullTSA::arriveAt(const RoomID room, const DirectionConstant direction) {
checkRobotLocations(room, direction);
Neighborhood::arriveAt(room, direction);
switch (MakeRoomView(room, direction)) {
case MakeRoomView(kTSADeathRoom, kNorth):
case MakeRoomView(kTSADeathRoom, kSouth):
case MakeRoomView(kTSADeathRoom, kEast):
case MakeRoomView(kTSADeathRoom, kWest):
die(kDeathShotByTSARobots);
break;
case MakeRoomView(kTSA00, kNorth):
if (GameState.getLastNeighborhood() != kFullTSAID) {
makeContinuePoint();
openDoor();
} else {
setCurrentActivation(kActivateTSAReadyForCard);
loopExtraSequence(kTSATransporterArrowLoop, 0);
}
break;
case MakeRoomView(kTSA03, kNorth):
case MakeRoomView(kTSA05, kNorth):
case MakeRoomView(kTSA0A, kNorth):
case MakeRoomView(kTSA06, kNorth):
case MakeRoomView(kTSA07, kNorth):
if (_utilityFuse.isFuseLit())
_utilityFuse.stopFuse();
GameState.setScoringEnterTSA(true);
break;
case MakeRoomView(kTSA04, kNorth):
if (_utilityFuse.isFuseLit())
_utilityFuse.stopFuse();
if (!GameState.getTSASeenRobotGreeting())
startExtraSequence(kTSA04NorthRobotGreeting, kExtraCompletedFlag, kFilterNoInput);
break;
case MakeRoomView(kTSA03, kSouth):
GameState.setTSAFrontDoorUnlockedInside(GameState.getTSAState() == kRobotsAtFrontDoor || GameState.allTimeZonesFinished());
break;
case MakeRoomView(kTSA0A, kEast):
case MakeRoomView(kTSA0A, kWest):
if (GameState.getTSAState() == kTSAPlayerNotArrived)
setCurrentActivation(kActivateTSARobotsAwake);
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn()) {
setCurrentActivation(kActivateTSA0BZoomedIn);
switch (GameState.getTSAState()) {
case kTSAPlayerNeedsHistoricalLog:
_ripTimer.show();
break;
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
startUpRobotMonitor();
break;
}
} else {
setCurrentActivation(kActivateTSA0BZoomedOut);
switch (GameState.getTSAState()) {
case kTSAPlayerNotArrived:
requestExtraSequence(kTSA0BNorthZoomIn, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BNorthYoureBusted, 0, kFilterNoInput);
requestExtraSequence(kTSA0BNorthZoomOut, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BNorthTurnLeft, 0, kFilterNoInput);
requestExtraSequence(kTSA0BWestZoomIn, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSAPlayerGotHistoricalLog:
startExtraSequence(kTSA0BNorthHistLogOpen, kExtraCompletedFlag, kFilterNoInput);
break;
}
}
break;
case MakeRoomView(kTSA0B, kSouth):
GameState.setTSA0BZoomedIn(false);
setCurrentActivation(kActivateTSA0BZoomedOut);
break;
case MakeRoomView(kTSA0B, kWest):
if (GameState.getTSA0BZoomedIn()) {
setCurrentActivation(kActivateTSA0BZoomedIn);
initializeTBPMonitor(kMonitorNeutral, 0);
} else {
setCurrentActivation(kActivateTSA0BZoomedOut);
}
break;
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn()) {
setCurrentActivation(kActivateTSA0BZoomedIn);
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
initializeComparisonMonitor(kMonitorNeutral, 0);
break;
}
} else {
setCurrentActivation(kActivateTSA0BZoomedOut);
}
break;
case MakeRoomView(kTSA21Red, kSouth):
if (GameState.getTSAState() == kRobotsAtFrontDoor)
GameState.setScoringWentToReadyRoom2(true);
break;
case MakeRoomView(kTSA22Red, kEast):
if (!_vm->playerHasItemID(kJourneymanKey))
setCurrentActivation(kActivationDoesntHaveKey);
break;
case MakeRoomView(kTSA23Red, kWest):
if (!_vm->playerHasItemID(kPegasusBiochip))
setCurrentActivation(kActivationDoesntHaveChips);
break;
case MakeRoomView(kTSA25Red, kNorth):
arriveAtTSA25Red();
break;
case MakeRoomView(kTSA34, kSouth):
if (GameState.getLastRoom() == kTSA37)
closeDoorOffScreen(kTSA37, kNorth);
break;
case MakeRoomView(kTSA37, kNorth):
arriveAtTSA37();
break;
}
}
void FullTSA::checkRobotLocations(const RoomID room, const DirectionConstant dir) {
switch (room) {
case kTSA03:
case kTSA04:
case kTSA05:
case kTSA06:
case kTSA0A:
case kTSA07:
case kTSA08:
case kTSA09:
case kTSA10:
case kTSA11:
case kTSA12:
case kTSA13:
case kTSA14:
case kTSA15:
switch (GameState.getTSAState()) {
case kRobotsAtFrontDoor:
setCurrentAlternate(kAltTSARobotsAtFrontDoor);
break;
case kRobotsAtReadyRoom:
setCurrentAlternate(kAltTSARobotsAtReadyRoom);
break;
}
break;
case kTSA16:
if (dir == kNorth) {
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
if (!_privateFlags.getFlag(kTSAPrivateSeenRobotWarningFlag)) {
g_AIArea->playAIMovie(kRightAreaSignature, "Images/AI/TSA/XT11WB", false, kWarningInterruption);
_privateFlags.setFlag(kTSAPrivateSeenRobotWarningFlag, true);
}
break;
case kRobotsAtFrontDoor:
setCurrentAlternate(kAltTSARobotsAtFrontDoor);
break;
case kRobotsAtReadyRoom:
setCurrentAlternate(kAltTSARobotsAtReadyRoom);
break;
}
}
break;
}
}
void FullTSA::arriveAtTSA25Red() {
if (!_vm->playerHasItemID(kJourneymanKey))
startExtraSequence(kTSA25NorthDeniedNoKey, kExtraCompletedFlag, kFilterNoInput);
else if (!_vm->playerHasItemID(kPegasusBiochip))
startExtraSequence(kTSA25NorthDeniedNoChip, kExtraCompletedFlag, kFilterNoInput);
else if (GameState.getTSABiosuitOn())
startExtraSequence(kTSA25NorthAlreadyHaveSuit, kExtraCompletedFlag, kFilterNoInput);
else
startExtraSequence(kTSA25NorthPutOnSuit, kExtraCompletedFlag, kFilterNoInput);
}
void FullTSA::arriveAtTSA37() {
_ripTimer.stop();
_ripTimer.releaseImage();
switch (GameState.getTSAState()) {
case kTSAPlayerNeedsHistoricalLog:
startExtraLongSequence(kTSA37HorseToAI1, kTSA37AI2ToPrehistoric, kExtraCompletedFlag, kFilterNoInput);
break;
case kPlayerOnWayToPrehistoric:
setCurrentActivation(kActivationJumpToPrehistoric);
showExtraView(kTSA37AI2ToPrehistoric);
break;
case kTSAPlayerGotHistoricalLog:
initializePegasusButtons(false);
break;
case kPlayerWentToPrehistoric:
case kPlayerOnWayToNorad:
case kPlayerOnWayToMars:
case kPlayerOnWayToWSC:
startExtraSequence(kTSA37TimeJumpToPegasus, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtFrontDoor:
startExtraLongSequence(kTSA37HorseToColonel2, kTSA37AI4ToMainMenu, kExtraCompletedFlag, kFilterNoInput);
break;
case kPlayerLockedInPegasus:
showMainJumpMenu();
break;
case kPlayerFinishedWithTSA:
initializePegasusButtons(true);
break;
}
}
void FullTSA::turnTo(const DirectionConstant newDirection) {
Neighborhood::turnTo(newDirection);
switch (MakeRoomView(GameState.getCurrentRoom(), newDirection)) {
case MakeRoomView(kTSA03, kSouth):
if (GameState.getTSAState() == kRobotsAtFrontDoor || GameState.allTimeZonesFinished())
GameState.setTSAFrontDoorUnlockedInside(true);
else
GameState.setTSAFrontDoorUnlockedInside(false);
break;
case MakeRoomView(kTSA0A, kEast):
case MakeRoomView(kTSA0A, kWest):
setCurrentActivation(kActivateTSARobotsAwake);
break;
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn())
setCurrentActivation(kActivateTSA0BZoomedIn);
else
setCurrentActivation(kActivateTSA0BZoomedOut);
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() & ~kPlayingAnyMask);
if (_privateFlags.getFlag(kTSAPrivateLogReaderOpenFlag))
_privateFlags.setFlag(kTSAPrivateLogReaderOpenFlag, false);
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (GameState.getTSA0BZoomedIn())
startUpComparisonMonitor();
break;
}
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn())
setCurrentActivation(kActivateTSA0BZoomedIn);
else
setCurrentActivation(kActivateTSA0BZoomedOut);
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() & ~kPlayingAnyMask);
switch (GameState.getTSAState()) {
case kTSAPlayerNeedsHistoricalLog:
if (GameState.getTSA0BZoomedIn())
_ripTimer.show();
break;
case kTSAPlayerGotHistoricalLog:
if (!GameState.getTSA0BZoomedIn())
startExtraSequence(kTSA0BNorthHistLogOpen, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSAPlayerInstalledHistoricalLog:
if (GameState.getTSA0BZoomedIn()) {
if ((GameState.getTSASeenNoradNormal() || GameState.getTSASeenNoradAltered()) &&
(GameState.getTSASeenMarsNormal() || GameState.getTSASeenMarsAltered()) &&
(GameState.getTSASeenCaldoriaNormal() || GameState.getTSASeenCaldoriaAltered()) &&
(GameState.getTSASeenWSCNormal() || GameState.getTSASeenWSCAltered())) {
GameState.setTSAState(kTSABossSawHistoricalLog);
startRobotGame();
}
}
break;
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (GameState.getTSA0BZoomedIn())
startExtraSequence(kTSA0BShowGuardRobots, kExtraCompletedFlag, kFilterNoInput);
break;
}
break;
case MakeRoomView(kTSA0B, kWest):
if (GameState.getTSA0BZoomedIn())
setCurrentActivation(kActivateTSA0BZoomedIn);
else
setCurrentActivation(kActivateTSA0BZoomedOut);
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() & ~kPlayingAnyMask);
if (_privateFlags.getFlag(kTSAPrivateLogReaderOpenFlag))
_privateFlags.setFlag(kTSAPrivateLogReaderOpenFlag, false);
if (GameState.getTSA0BZoomedIn())
initializeTBPMonitor(kMonitorNeutral, 0);
break;
case MakeRoomView(kTSA0B, kSouth):
GameState.setTSA0BZoomedIn(false);
setCurrentActivation(kActivateTSA0BZoomedOut);
break;
case MakeRoomView(kTSA16, kNorth):
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
if (!_privateFlags.getFlag(kTSAPrivateSeenRobotWarningFlag)) {
g_AIArea->playAIMovie(kRightAreaSignature, "Images/AI/TSA/XT11WB", false, kWarningInterruption);
_privateFlags.setFlag(kTSAPrivateSeenRobotWarningFlag, true);
}
break;
case kRobotsAtFrontDoor:
setCurrentAlternate(kAltTSARobotsAtFrontDoor);
break;
case kRobotsAtReadyRoom:
setCurrentAlternate(kAltTSARobotsAtReadyRoom);
break;
}
break;
case MakeRoomView(kTSA22Red, kEast):
if (!_vm->playerHasItemID(kJourneymanKey))
setCurrentActivation(kActivationDoesntHaveKey);
break;
case MakeRoomView(kTSA22Red, kNorth):
case MakeRoomView(kTSA22Red, kSouth):
if (_privateFlags.getFlag(kTSAPrivateKeyVaultOpenFlag)) {
playSpotSoundSync(kTSAVaultCloseIn, kTSAVaultCloseOut);
_privateFlags.setFlag(kTSAPrivateKeyVaultOpenFlag, false);
}
setCurrentActivation(kActivateHotSpotAlways);
break;
case MakeRoomView(kTSA23Red, kWest):
if (!_vm->playerHasItemID(kPegasusBiochip))
setCurrentActivation(kActivationDoesntHaveChips);
break;
case MakeRoomView(kTSA23Red, kNorth):
case MakeRoomView(kTSA23Red, kSouth):
if (_privateFlags.getFlag(kTSAPrivateChipVaultOpenFlag)) {
playSpotSoundSync(kTSAVaultCloseIn, kTSAVaultCloseOut);
_privateFlags.setFlag(kTSAPrivateChipVaultOpenFlag, false);
}
setCurrentActivation(kActivateHotSpotAlways);
break;
}
// Make sure the TBP monitor is forced neutral.
GameState.setT0BMonitorMode(kMonitorNeutral);
}
void FullTSA::closeDoorOffScreen(const RoomID room, const DirectionConstant) {
switch (room) {
case kTSA00:
case kTSA01:
if (GameState.getCurrentRoom() == kTSA01 || GameState.getCurrentRoom() == kTSA02)
playSpotSoundSync(kTSAGTDoorCloseIn, kTSAGTDoorCloseOut);
break;
case kTSA02:
case kTSA03:
playSpotSoundSync(kTSAEntryDoorCloseIn, kTSAEntryDoorCloseOut);
break;
case kTSA14:
case kTSA15:
case kTSA16:
case kTSA21Cyan:
case kTSA21Red:
playSpotSoundSync(kTSAInsideDoorCloseIn, kTSAInsideDoorCloseOut);
break;
case kTSA34:
case kTSA37:
playSpotSoundSync(kTSAPegasusDoorCloseIn, kTSAPegasusDoorCloseOut);
break;
}
}
void FullTSA::receiveNotification(Notification *notification, const NotificationFlags flags) {
ExtraID lastExtra = _lastExtra;
if ((flags & kExtraCompletedFlag) != 0) {
switch (lastExtra) {
case kTSA0BEastTurnLeft:
// Need to check this here because turnTo will call _navMovie.stop,
// so it has to happen before Neighborhood::receiveNotification,
// which may end up starting another sequence...
turnTo(kNorth);
break;
}
}
Neighborhood::receiveNotification(notification, flags);
InventoryItem *item;
if ((flags & kExtraCompletedFlag) != 0) {
// Only allow input if we're not in the middle of series of queue requests.
if (actionQueueEmpty())
_interruptionFilter = kFilterAllInput;
switch (lastExtra) {
case kTSAGTCardSwipe:
item = (InventoryItem *)_vm->getAllItems().findItemByID(kKeyCard);
_vm->addItemToInventory(item);
setCurrentActivation(kActivateTSAReadyToTransport);
break;
case kTSAGTGoToCaldoria:
_vm->jumpToNewEnvironment(kCaldoriaID, kCaldoria44, kEast);
if (GameState.allTimeZonesFinished())
GameState.setScoringWentAfterSinclair(true);
break;
case kTSAGTGoToTokyo:
case kTSAGTGoToBeach:
if (GameState.allTimeZonesFinished())
die(kDeathSinclairShotDelegate);
else
die(kDeathUncreatedInTSA);
break;
case kTSA02NorthZoomOut:
openDoor();
break;
// Hall of suspects.
case kTSA04NorthRobotGreeting:
GameState.setTSASeenRobotGreeting(true);
restoreStriding(kTSA03, kNorth, kNoAlternateID);
break;
case kTSA03JimenezZoomIn:
GameState.setScoringSawBust1(true);
break;
case kTSA03CrenshawZoomIn:
GameState.setScoringSawBust2(true);
break;
case kTSA04MatsumotoZoomIn:
GameState.setScoringSawBust3(true);
break;
case kTSA04CastilleZoomIn:
GameState.setScoringSawBust4(true);
break;
case kTSA05SinclairZoomIn:
GameState.setScoringSawBust5(true);
break;
case kTSA05WhiteZoomIn:
GameState.setScoringSawBust6(true);
break;
// Command center
// Historical comparison...
case kTSA0BEastZoomIn:
GameState.setTSA0BZoomedIn(true);
setCurrentActivation(kActivateTSA0BZoomedIn);
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() & ~kPlayingAnyMask);
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
startUpComparisonMonitor();
break;
}
break;
case kTSA0BEastZoomOut:
GameState.setTSA0BZoomedIn(false);
setCurrentActivation(kActivateTSA0BZoomedOut);
switch (GameState.getTSAState()) {
case kTSABossSawHistoricalLog:
// Prevent current view from activating.
break;
default:
activateCurrentView(GameState.getCurrentRoom(), GameState.getCurrentDirection(),
kSpotOnTurnMask);
break;
}
break;
case kTSA0BComparisonStartup:
if ((flags & kActionRequestCompletedFlag) != 0) {
_privateFlags.setFlag(kTSAPrivateLogReaderOpenFlag, false);
GameState.setTSAState(kTSAPlayerInstalledHistoricalLog);
turnTo(kEast);
}
startUpComparisonMonitor();
break;
case kTSA0BNoradAltered:
case kTSA0BMarsAltered:
case kTSA0BCaldoriaAltered:
case kTSA0BWSCAltered:
case kTSA0BNoradUnaltered:
case kTSA0BMarsUnaltered:
case kTSA0BCaldoriaUnaltered:
case kTSA0BWSCUnaltered:
initializeComparisonMonitor(kMonitorNeutral, 0);
break;
// Center monitor.
case kTSA0BNorthZoomIn:
GameState.setTSA0BZoomedIn(true);
setCurrentActivation(kActivateTSA0BZoomedIn);
GameState.setT0BMonitorMode(GameState.getT0BMonitorMode() & ~kPlayingAnyMask);
switch (GameState.getTSAState()) {
case kTSAPlayerNeedsHistoricalLog:
startExtraSequence(kTSA0BShowRip1, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSABossSawHistoricalLog:
case kTSAPlayerInstalledHistoricalLog:
if ((GameState.getTSASeenNoradNormal() || GameState.getTSASeenNoradAltered()) &&
(GameState.getTSASeenMarsNormal() || GameState.getTSASeenMarsAltered()) &&
(GameState.getTSASeenCaldoriaNormal() || GameState.getTSASeenCaldoriaAltered()) &&
(GameState.getTSASeenWSCNormal() || GameState.getTSASeenWSCAltered())) {
GameState.setTSAState(kTSABossSawHistoricalLog);
startRobotGame();
}
break;
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
startExtraSequence(kTSA0BShowGuardRobots, kExtraCompletedFlag, kFilterNoInput);
break;
}
break;
case kTSA0BNorthZoomOut:
GameState.setTSA0BZoomedIn(false);
setCurrentActivation(kActivateTSA0BZoomedOut);
break;
case kTSA0BShowRip1:
GameState.setTSAState(kTSAPlayerNeedsHistoricalLog);
GameState.setTSACommandCenterLocked(false);
if ((flags & kActionRequestCompletedFlag) != 0)
turnTo(kNorth);
_ripTimer.show();
break;
case kTSA0BNorthHistLogOpen:
setCurrentActivation(kActivationLogReaderOpen);
_privateFlags.setFlag(kTSAPrivateLogReaderOpenFlag, true);
break;
case kTSA0BRobotsToCommandCenter:
GameState.setTSAState(kRobotsAtCommandCenter);
// Fall through
case kTSA0BShowGuardRobots:
startUpRobotMonitor();
// Fall through
case kTSA0BRobotsFromCommandCenterToReadyRoom:
case kTSA0BRobotsFromReadyRoomToCommandCenter:
case kTSA0BRobotsFromCommandCenterToFrontDoor:
case kTSA0BRobotsFromFrontDoorToCommandCenter:
case kTSA0BRobotsFromFrontDoorToReadyRoom:
case kTSA0BRobotsFromReadyRoomToFrontDoor:
_sprite2.setCurrentFrameIndex(kRedirectionSecuredSprite);
_sprite2.show();
break;
// TBP monitor.
case kTSA0BWestZoomIn:
GameState.setTSA0BZoomedIn(true);
setCurrentActivation(kActivateTSA0BZoomedIn);
if (GameState.getTSAState() == kTSAPlayerNotArrived) {
turnTo(kWest);
GameState.setTSACommandCenterLocked(true);
GameState.setTSAState(kTSAPlayerForcedReview);
}
initializeTBPMonitor(kMonitorNeutral, 0);
break;
case kTSA0BWestZoomOut:
GameState.setTSA0BZoomedIn(false);
setCurrentActivation(kActivateTSA0BZoomedOut);
GameState.setT0BMonitorMode(kMonitorNeutral);
switch (GameState.getTSAState()) {
case kTSAPlayerDetectedRip:
// Keep the current view from activating.
break;
default:
activateCurrentView(GameState.getCurrentRoom(), GameState.getCurrentDirection(),
kSpotOnTurnMask);
break;
}
break;
case kTSA0BTBPTheory:
case kTSA0BTBPBackground:
case kTSA0BTBPProcedure:
initializeTBPMonitor(kMonitorNeutral, 0);
break;
// Ready room
case kTSA22RedEastZoomInSequence:
_privateFlags.setFlag(kTSAPrivateKeyVaultOpenFlag, true);
setCurrentActivation(kActivationKeyVaultOpen);
break;
case kTSA23RedWestVaultZoomInSequence:
_privateFlags.setFlag(kTSAPrivateChipVaultOpenFlag, true);
setCurrentActivation(kActivationChipVaultOpen);
break;
case kTSA25NorthPutOnSuit:
GameState.setTSABiosuitOn(true);
GameState.setScoringGotBiosuit(true);
// Fall through...
case kTSA25NorthAlreadyHaveSuit:
requestExtraSequence(kTSA25NorthDescending1, 0, kFilterNoInput);
requestExtraSequence(kTSA25NorthDescending2, kExtraCompletedFlag, kFilterNoInput);
break;
case kTSA25NorthDescending2:
arriveAt(kTSA26, kNorth);
break;
// Pegasus.
case kTSA37HorseToAI1:
case kTSA37AI2ToPrehistoric:
setCurrentActivation(kActivationJumpToPrehistoric);
GameState.setTSAState(kPlayerOnWayToPrehistoric);
break;
case kTSA37PegasusDepart:
_vm->setLastEnergyValue(kFullEnergy);
switch (GameState.getTSAState()) {
case kPlayerOnWayToPrehistoric:
_vm->jumpToNewEnvironment(kPrehistoricID, kPrehistoric02, kSouth);
GameState.setPrehistoricSeenTimeStream(false);
GameState.setPrehistoricSeenFlyer1(false);
GameState.setPrehistoricSeenFlyer2(false);
GameState.setPrehistoricSeenBridgeZoom(false);
GameState.setPrehistoricBreakerThrown(false);
GameState.setScoringGoToPrehistoric(true);
GameState.setTSAState(kPlayerWentToPrehistoric);
break;
case kPlayerOnWayToNorad:
_vm->jumpToNewEnvironment(kNoradAlphaID, kNorad01, kSouth);
GameState.setNoradSeenTimeStream(false);
GameState.setNoradGassed(true);
GameState.setNoradFillingStationOn(false);
GameState.setNoradN22MessagePlayed(false);
GameState.setNoradPlayedGlobeGame(false);
GameState.setNoradBeatRobotWithClaw(false);
GameState.setNoradBeatRobotWithDoor(false);
GameState.setNoradRetScanGood(false);
GameState.setNoradWaitingForLaser(false);
GameState.setNoradSubRoomPressure(9);
GameState.setNoradSubPrepState(kSubNotPrepped);
break;
case kPlayerOnWayToMars:
_vm->jumpToNewEnvironment(kMarsID, kMars0A, kNorth);
GameState.setMarsSeenTimeStream(false);
GameState.setMarsHeardUpperPodMessage(false);
GameState.setMarsRobotThrownPlayer(false);
GameState.setMarsHeardCheckInMessage(false);
GameState.setMarsPodAtUpperPlatform(false);
GameState.setMarsSeenThermalScan(false);
GameState.setMarsArrivedBelow(false);
GameState.setMarsSeenRobotAtReactor(false);
GameState.setMarsAvoidedReactorRobot(false);
GameState.setMarsLockFrozen(false);
GameState.setMarsLockBroken(false);
GameState.setMarsSecurityDown(false);
GameState.setMarsAirlockOpen(false);
GameState.setMarsReadyForShuttleTransport(false);
GameState.setMarsFinishedCanyonChase(false);
GameState.setMarsThreadedMaze(false);
break;
case kPlayerOnWayToWSC:
_vm->jumpToNewEnvironment(kWSCID, kWSC01, kWest);
GameState.setWSCSeenTimeStream(false);
GameState.setWSCPoisoned(false);
GameState.setWSCAnsweredAboutDart(false);
GameState.setWSCRemovedDart(false);
GameState.setWSCAnalyzerOn(false);
GameState.setWSCDartInAnalyzer(false);
GameState.setWSCAnalyzedDart(false);
GameState.setWSCSawMorph(false);
GameState.setWSCDesignedAntidote(false);
GameState.setWSCOfficeMessagesOpen(false);
GameState.setWSCSeenNerd(false);
GameState.setWSCHeardPage1(false);
GameState.setWSCHeardPage2(false);
GameState.setWSCHeardCheckIn(false);
GameState.setWSCDidPlasmaDodge(false);
GameState.setWSCSeenSinclairLecture(false);
GameState.setWSCBeenAtWSC93(false);
GameState.setWSCCatwalkDark(false);
GameState.setWSCRobotDead(false);
GameState.setWSCRobotGone(false);
break;
};
break;
case kTSA37TimeJumpToPegasus:
if (g_energyMonitor)
g_energyMonitor->stopEnergyDraining();
switch (GameState.getTSAState()) {
case kPlayerWentToPrehistoric:
arriveFromPrehistoric();
break;
case kPlayerOnWayToNorad:
arriveFromNorad();
break;
case kPlayerOnWayToMars:
arriveFromMars();
break;
case kPlayerOnWayToWSC:
arriveFromWSC();
break;
default:
break;
}
break;
case kTSA37DownloadToOpMemReview:
switch (GameState.getTSAState()) {
case kPlayerOnWayToNorad:
g_opticalChip->playOpMemMovie(kPoseidonSpotID);
break;
case kPlayerOnWayToMars:
g_opticalChip->playOpMemMovie(kAriesSpotID);
break;
case kPlayerOnWayToWSC:
g_opticalChip->playOpMemMovie(kMercurySpotID);
break;
}
if (GameState.allTimeZonesFinished()) {
requestExtraSequence(kTSA37OpMemReviewToAllClear, 0, kFilterNoInput);
requestExtraSequence(kTSA37AllClearToCongratulations, 0, kFilterNoInput);
requestExtraSequence(kTSA37Congratulations, 0, kFilterNoInput);
requestExtraSequence(kTSA37CongratulationsToExit, kExtraCompletedFlag, kFilterNoInput);
} else {
requestExtraSequence(kTSA37OpMemReviewToMainMenu, kExtraCompletedFlag, kFilterNoInput);
}
break;
case kTSA37RecallToDownload:
case kTSA37ReviewRequiredToExit:
GameState.setTSAState(kTSAPlayerGotHistoricalLog);
initializePegasusButtons(kPegasusUnresolved);
break;
case kTSA37ZoomToMainMenu:
case kTSA37HorseToColonel2:
case kTSA37DownloadToMainMenu:
case kTSA37OpMemReviewToMainMenu:
case kTSA37AI4ToMainMenu:
GameState.setTSAState(kPlayerLockedInPegasus);
showMainJumpMenu();
makeContinuePoint();
break;
case kTSA37JumpToNoradMenu:
setCurrentActivation(kActivationJumpToNorad);
break;
case kTSA37JumpToMarsMenu:
setCurrentActivation(kActivationJumpToMars);
break;
case kTSA37JumpToWSCMenu:
setCurrentActivation(kActivationJumpToWSC);
break;
case kTSA37CancelNorad:
case kTSA37CancelMars:
case kTSA37CancelWSC:
showMainJumpMenu();
break;
case kTSA37CongratulationsToExit:
GameState.setTSAState(kPlayerFinishedWithTSA);
initializePegasusButtons(true);
break;
}
}
g_AIArea->checkMiddleArea();
}
void FullTSA::arriveFromPrehistoric() {
if (_vm->playerHasItemID(kHistoricalLog)) {
GameState.setScoringFinishedPrehistoric();
requestExtraSequence(kTSA37RecallToDownload, 0, kFilterNoInput);
requestExtraSequence(kTSA37DownloadToColonel1, 0, kFilterNoInput);
requestExtraSequence(kTSA37Colonel1, 0, kFilterNoInput);
requestExtraSequence(kTSA37Colonel1ToReviewRequired, 0, kFilterNoInput);
requestExtraSequence(kTSA37ReviewRequiredToExit, kExtraCompletedFlag, kFilterNoInput);
} else {
// Make sure rip timer is going...
startExtraSequence(kTSA37DownloadToMainMenu, kExtraCompletedFlag, kFilterNoInput);
}
}
void FullTSA::arriveFromNorad() {
requestExtraSequence(kTSA37RecallToDownload, 0, kFilterNoInput);
if (GameState.getNoradFinished() && !GameState.getScoringFinishedNorad()) {
GameState.setScoringFinishedNorad();
requestExtraSequence(kTSA37DownloadToOpMemReview, kExtraCompletedFlag, kFilterNoInput);
} else {
requestExtraSequence(kTSA37DownloadToMainMenu, kExtraCompletedFlag, kFilterNoInput);
}
}
void FullTSA::arriveFromMars() {
requestExtraSequence(kTSA37RecallToDownload, 0, kFilterNoInput);
if (GameState.getMarsFinished() && !GameState.getScoringFinishedMars()) {
GameState.setScoringFinishedMars();
requestExtraSequence(kTSA37DownloadToOpMemReview, kExtraCompletedFlag, kFilterNoInput);
} else {
requestExtraSequence(kTSA37DownloadToMainMenu, kExtraCompletedFlag, kFilterNoInput);
}
}
void FullTSA::arriveFromWSC() {
requestExtraSequence(kTSA37RecallToDownload, 0, kFilterNoInput);
if (GameState.getWSCFinished() && !GameState.getScoringFinishedWSC()) {
GameState.setScoringFinishedWSC();
requestExtraSequence(kTSA37DownloadToOpMemReview, kExtraCompletedFlag, kFilterNoInput);
} else {
requestExtraSequence(kTSA37DownloadToMainMenu, kExtraCompletedFlag, kFilterNoInput);
}
}
void FullTSA::initializePegasusButtons(bool resolved) {
if (resolved) {
_sprite1.addPICTResourceFrame(kResolvedPICTID, false, 0, 0);
_sprite1.moveElementTo(kResolvedLeft, kResolvedTop);
} else {
_sprite1.addPICTResourceFrame(kUnresolvedPICTID, false, 0, 0);
_sprite1.moveElementTo(kUnresolvedLeft, kUnresolvedTop);
}
_sprite1.setCurrentFrameIndex(0);
_sprite1.show();
_sprite2.addPICTResourceFrame(kExitPICTID, false, kExitLeft - kExitHilitedLeft, kExitTop - kExitHilitedTop);
_sprite2.addPICTResourceFrame(kExitHilitedPICTID, false, 0, 0);
_sprite2.moveElementTo(kExitHilitedLeft, kExitHilitedTop);
setCurrentActivation(kActivationReadyToExit);
_sprite2.setCurrentFrameIndex(0);
_sprite2.show();
}
Hotspot *FullTSA::getItemScreenSpot(Item *item, DisplayElement *element) {
switch (item->getObjectID()) {
case kJourneymanKey:
return _vm->getAllHotspots().findHotspotByID(kTSA22EastKeySpotID);
break;
case kPegasusBiochip:
return _vm->getAllHotspots().findHotspotByID(kTSA23WestChipsSpotID);
break;
}
return Neighborhood::getItemScreenSpot(item, element);
}
void FullTSA::dropItemIntoRoom(Item *item, Hotspot *dropSpot) {
Neighborhood::dropItemIntoRoom(item, dropSpot);
switch (item->getObjectID()) {
case kKeyCard:
if (dropSpot->getObjectID() == kTSAGTCardDropSpotID)
startExtraSequence(kTSAGTCardSwipe, kExtraCompletedFlag, kFilterNoInput);
break;
case kHistoricalLog:
if (dropSpot->getObjectID() == kTSA0BNorthHistLogSpotID) {
requestExtraSequence(kTSA0BNorthHistLogCloseWithLog, 0, kFilterNoInput);
requestExtraSequence(kTSA0BNorthTurnRight, 0, kFilterNoInput);
requestExtraSequence(kTSA0BEastZoomIn, kExtraCompletedFlag, kFilterNoInput);
requestExtraSequence(kTSA0BComparisonStartup, kExtraCompletedFlag, kFilterNoInput);
GameState.setScoringPutLogInReader(true);
}
break;
}
}
uint FullTSA::getHistoricalLogIndex() {
uint index;
if (GameState.getTSASeenNoradNormal() && GameState.getTSASeenNoradAltered())
index = 8;
else
index = 0;
if (GameState.getTSASeenMarsNormal() && GameState.getTSASeenMarsAltered())
index += 4;
if (GameState.getTSASeenCaldoriaNormal() && GameState.getTSASeenCaldoriaAltered())
index += 2;
if (GameState.getTSASeenWSCNormal() && GameState.getTSASeenWSCAltered())
index += 1;
return index;
}
void FullTSA::handleInput(const Input &input, const Hotspot *cursorSpot) {
switch (MakeRoomView(GameState.getCurrentRoom(), GameState.getCurrentDirection())) {
case MakeRoomView(kTSA0B, kEast):
if (GameState.getTSA0BZoomedIn() && !_navMovie.isRunning() && GameState.getT0BMonitorMode() == kMonitorNeutral) {
switch (GameState.getTSAState()) {
case kTSAPlayerInstalledHistoricalLog:
case kTSABossSawHistoricalLog:
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (cursorSpot) {
switch (cursorSpot->getObjectID()) {
case kTSA0BEastCompareNoradSpotID:
_sprite1.setCurrentFrameIndex(0);
_sprite2.setCurrentFrameIndex(0);
_sprite1.show();
_sprite2.show();
break;
case kTSA0BEastCompareMarsSpotID:
_sprite1.setCurrentFrameIndex(1);
_sprite2.setCurrentFrameIndex(1);
_sprite1.show();
_sprite2.show();
break;
case kTSA0BEastCompareCaldoriaSpotID:
_sprite1.setCurrentFrameIndex(2);
_sprite2.setCurrentFrameIndex(2);
_sprite1.show();
_sprite2.show();
break;
case kTSA0BEastCompareWSCSpotID:
_sprite1.setCurrentFrameIndex(3);
_sprite2.setCurrentFrameIndex(3);
_sprite1.show();
_sprite2.show();
break;
default:
_sprite1.hide();
_sprite2.hide();
break;
}
} else {
_sprite1.hide();
_sprite2.hide();
}
break;
}
}
break;
case MakeRoomView(kTSA0B, kNorth):
if (GameState.getTSA0BZoomedIn() && !_navMovie.isRunning()) {
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
case kRobotsAtFrontDoor:
case kRobotsAtReadyRoom:
if (cursorSpot) {
switch (cursorSpot->getObjectID()) {
case kTSA0BNorthRobotsToCommandCenterSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionCCRolloverSprite);
_sprite1.show();
break;
case kTSA0BNorthRobotsToReadyRoomSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionRRRolloverSprite);
_sprite1.show();
break;
case kTSA0BNorthRobotsToFrontDoorSpotID:
_sprite1.setCurrentFrameIndex(kRedirectionFDRolloverSprite);
_sprite1.show();
break;
default:
_sprite1.hide();
break;
}
} else {
_sprite1.hide();
}
break;
}
}
break;
}
Neighborhood::handleInput(input, cursorSpot);
}
void FullTSA::releaseSprites() {
_sprite1.hide();
_sprite2.hide();
_sprite3.hide();
_sprite1.discardFrames();
_sprite2.discardFrames();
_sprite3.discardFrames();
}
bool FullTSA::canSolve() {
return GameState.getCurrentRoomAndView() == MakeRoomView(kTSA0B, kNorth) &&
GameState.getTSA0BZoomedIn() &&
(GameState.getTSAState() == kRobotsAtCommandCenter ||
GameState.getTSAState() == kRobotsAtFrontDoor ||
GameState.getTSAState() == kRobotsAtReadyRoom);
}
void FullTSA::doSolve() {
// REROUTING ROBOTS
_sprite1.setCurrentFrameIndex(kRedirectionFDDoorSprite);
_sprite1.show();
_vm->delayShell(1, 2);
_sprite1.hide();
switch (GameState.getTSAState()) {
case kRobotsAtCommandCenter:
GameState.setTSAState(kRobotsAtFrontDoor);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromCommandCenterToFrontDoor, kExtraCompletedFlag, kFilterNoInput);
break;
case kRobotsAtFrontDoor:
// Nothing
break;
case kRobotsAtReadyRoom:
GameState.setTSAState(kRobotsAtFrontDoor);
_sprite2.setCurrentFrameIndex(kRedirectionNewTargetSprite);
startExtraSequence(kTSA0BRobotsFromReadyRoomToFrontDoor, kExtraCompletedFlag, kFilterNoInput);
break;
}
}
void FullTSA::updateCursor(const Common::Point where, const Hotspot *cursorSpot) {
if (cursorSpot) {
switch (cursorSpot->getObjectID()) {
case kTSA0BEastMonitorSpotID:
case kTSA0BNorthMonitorSpotID:
case kTSA0BWestMonitorSpotID:
case kTSA22EastMonitorSpotID:
case kTSA23WestMonitorSpotID:
_vm->_cursor->setCurrentFrameIndex(1);
return;
case kTSA0BEastMonitorOutSpotID:
case kTSA0BNorthMonitorOutSpotID:
case kTSA0BWestMonitorOutSpotID:
_vm->_cursor->setCurrentFrameIndex(2);
return;
}
}
Neighborhood::updateCursor(where, cursorSpot);
}
Common::String FullTSA::getNavMovieName() {
return "Images/TSA/Full TSA.movie";
}
Common::String FullTSA::getSoundSpotsName() {
return "Sounds/TSA/TSA Spots";
}
} // End of namespace Pegasus
|