home *** CD-ROM | disk | FTP | other *** search
/ MacHome 1999 Game / Image.bin / Role Playing and Strategy / Starbound II.hqx / Starbound II / AI agents / Gypsum.rsrc next >
MacOS Resource Fork  |  1998-05-14  |  32.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacOS Resource Fork (archive/rsrc).

You can browse this item here: Gypsum.rsrc

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 81 a7 41 49 42 46 40 73 | 32 24 01 00 00 00 00 00 |..AIBF@s|2$......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 7e 51 00 00 7d 51 00 00 |........|~Q..}Q..|
|00000060| 03 56 22 21 22 22 22 12 | 22 22 22 23 23 23 33 43 |.V"!""".|"""###3C|
|00000070| 33 32 33 43 22 11 19 11 | 12 22 23 34 33 43 22 33 |323C"...|."#43C"3|
|00000080| 23 22 06 47 79 70 73 75 | 6d 6e 74 73 20 49 49 20 |#".Gypsu|mnts II |
|00000090| 63 6f 70 79 2e 63 59 4d | 65 72 6f 6e 73 2d 2d 2d |copy.cYM|erons---|
|000000a0| 73 31 02 00 41 49 42 46 | 40 73 32 24 01 00 00 36 |s1..AIBF|@s2$...6|
|000000b0| 00 41 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.A......|........|
|000000c0| 00 00 00 00 b0 1b 47 57 | 00 00 00 00 00 00 81 a7 |......GW|........|
|000000d0| 22 11 22 22 00 00 00 00 | 00 00 00 0d 00 00 ff ff |".""....|........|
|000000e0| ff ff 00 00 00 01 ff ff | cc cc 00 00 00 02 ff ff |........|........|
|000000f0| 99 99 00 00 00 03 ff ff | 66 66 00 00 00 04 ff ff |........|ff......|
|00000100| 33 33 00 00 00 05 ff ff | 00 00 00 00 00 06 cc cc |33......|........|
|00000110| 99 99 00 00 00 07 cc cc | 66 66 00 00 00 08 cc cc |........|ff......|
|00000120| 33 33 00 00 00 09 ff ff | ff ff 33 33 00 0a ff ff |33......|..33....|
|00000130| cc cc 33 33 00 0b ff ff | 99 99 33 33 00 0c ff ff |..33....|..33....|
|00000140| 66 66 33 33 00 0d cc cc | cc cc 00 00 00 01 0b ae |ff33....|........|
|00000150| 0b ae 00 00 00 29 73 69 | 74 75 61 74 69 6f 6e 20 |.....)si|tuation |
|00000160| 6f 72 62 69 74 61 6c 5f | 74 72 6f 6f 70 5f 73 74 |orbital_|troop_st|
|00000170| 61 72 74 0d 0d 62 65 67 | 69 6e 0d 65 6e 64 3b 00 |art..beg|in.end;.|
|00000180| 00 00 12 2f 2f 20 55 73 | 65 72 20 63 6f 6e 73 74 |...// Us|er const|
|00000190| 61 6e 74 73 0d 00 00 02 | 15 54 68 69 73 20 69 73 |ants....|.This is|
|000001a0| 20 61 6e 20 65 78 74 72 | 65 6d 65 6c 79 20 70 72 | an extr|emely pr|
|000001b0| 69 6d 69 74 69 76 65 20 | 41 49 20 74 68 61 74 20 |imitive |AI that |
|000001c0| 49 20 68 61 76 65 20 64 | 65 76 65 6c 6f 70 65 64 |I have d|eveloped|
|000001d0| 20 74 6f 20 74 65 73 74 | 20 6f 75 74 20 74 68 65 | to test| out the|
|000001e0| 20 41 49 20 65 6e 67 69 | 6e 65 20 61 6e 64 20 67 | AI engi|ne and g|
|000001f0| 69 76 65 20 79 6f 75 20 | 61 74 20 6c 65 61 73 74 |ive you |at least|
|00000200| 20 73 6f 6d 65 74 68 69 | 6e 67 20 74 6f 20 70 6c | somethi|ng to pl|
|00000210| 61 79 20 61 67 61 69 6e | 73 74 20 69 6e 20 74 68 |ay again|st in th|
|00000220| 65 20 70 72 65 76 69 65 | 77 2e 20 20 53 61 6d 20 |e previe|w. Sam |
|00000230| 77 69 6c 6c 20 62 65 20 | 64 65 73 69 67 6e 69 6e |will be |designin|
|00000240| 67 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 41 49 27 |g all of| the AI'|
|00000250| 73 20 69 6e 20 74 68 65 | 20 66 75 74 75 72 65 2c |s in the| future,|
|00000260| 20 62 75 74 20 49 20 77 | 69 6c 6c 20 63 6f 6e 74 | but I w|ill cont|
|00000270| 69 6e 75 65 20 74 6f 20 | 77 6f 72 6b 20 6f 6e 20 |inue to |work on |
|00000280| 74 68 69 73 20 6f 6e 65 | 20 61 73 20 49 20 65 78 |this one| as I ex|
|00000290| 70 61 6e 64 20 74 68 65 | 20 63 61 70 61 62 69 6c |pand the| capabil|
|000002a0| 69 74 69 65 73 20 6f 66 | 20 74 68 65 20 65 6e 67 |ities of| the eng|
|000002b0| 69 6e 65 2e 0d 0d 46 6f | 72 20 70 65 6f 70 6c 65 |ine...Fo|r people|
|000002c0| 20 77 68 6f 20 77 69 73 | 68 20 74 6f 20 64 65 73 | who wis|h to des|
|000002d0| 69 67 6e 20 41 49 27 73 | 20 6f 66 20 74 68 65 69 |ign AI's| of thei|
|000002e0| 72 20 6f 77 6e 2c 20 53 | 61 6d 20 61 6e 64 20 49 |r own, S|am and I|
|000002f0| 20 61 73 6b 20 74 68 61 | 74 20 79 6f 75 20 72 65 | ask tha|t you re|
|00000300| 66 72 61 69 6e 20 66 72 | 6f 6d 20 75 73 69 6e 67 |frain fr|om using|
|00000310| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6e | the fol|lowing n|
|00000320| 61 6d 65 73 3a 0d 0d 47 | 79 70 73 75 6d 2c 20 43 |ames:..G|ypsum, C|
|00000330| 61 6c 63 69 74 65 2c 20 | 46 6c 75 6f 72 69 74 65 |alcite, |Fluorite|
|00000340| 2c 20 41 70 61 74 69 74 | 65 2c 20 4f 72 74 68 6f |, Apatit|e, Ortho|
|00000350| 63 6c 61 73 65 2c 20 51 | 75 61 72 74 7a 2c 20 54 |clase, Q|uartz, T|
|00000360| 6f 70 61 7a 2c 20 43 6f | 72 75 6e 64 75 6d 2c 20 |opaz, Co|rundum, |
|00000370| 44 69 61 6d 6f 6e 64 0d | 0d 57 65 20 77 69 6c 6c |Diamond.|.We will|
|00000380| 20 62 65 20 75 73 69 6e | 67 20 74 68 65 73 65 20 | be usin|g these |
|00000390| 6e 61 6d 65 73 20 66 6f | 72 20 74 68 61 20 41 49 |names fo|r tha AI|
|000003a0| 27 73 20 77 65 20 64 65 | 76 65 6c 6f 70 2e 00 00 |'s we de|velop...|
|000003b0| 00 2e 01 90 00 47 00 05 | 00 00 00 00 00 06 00 00 |.....G..|........|
|000003c0| 00 04 00 03 00 00 00 05 | 00 00 00 07 00 00 00 0a |........|........|
|000003d0| 00 00 00 05 00 00 00 09 | 00 00 00 0b 00 00 00 06 |........|........|
|000003e0| 00 00 00 d8 00 01 00 00 | 00 00 00 01 00 00 00 06 |........|........|
|000003f0| 00 00 00 28 00 03 00 00 | 00 00 00 84 00 00 00 06 |...(....|........|
|00000400| 00 00 00 14 00 03 00 00 | 00 00 00 06 00 06 00 c0 |........|........|
|00000410| 00 00 64 69 00 00 00 06 | 00 00 00 28 00 03 00 00 |..di....|...(....|
|00000420| 00 00 00 84 00 00 00 06 | 00 00 00 14 00 03 00 00 |........|........|
|00000430| 00 00 00 06 00 06 00 c0 | 00 01 6b f4 00 00 00 06 |........|..k.....|
|00000440| 00 00 00 28 00 03 00 00 | 00 00 00 84 00 00 00 06 |...(....|........|
|00000450| 00 00 00 14 00 03 00 00 | 00 00 00 06 00 06 00 c0 |........|........|
|00000460| 00 02 4e 1c 00 00 00 06 | 00 00 00 28 00 03 00 00 |..N.....|...(....|
|00000470| 00 00 00 84 00 00 00 06 | 00 00 00 14 00 03 00 00 |........|........|
|00000480| 00 00 00 06 00 06 00 c0 | 00 03 00 01 00 00 00 06 |........|........|
|00000490| 00 00 00 03 00 03 00 00 | 00 00 00 84 00 00 00 06 |........|........|
|000004a0| 00 00 00 01 00 03 00 00 | 00 00 00 06 00 06 00 c0 |........|........|
|000004b0| 00 04 0b a8 00 09 00 00 | 00 00 00 00 00 00 00 36 |........|.......6|
|000004c0| 00 01 00 0b 00 0b 00 0b | 00 0b 00 0b 00 0c 00 0c |........|........|
|000004d0| 00 0c 00 0c 00 0c 00 0d | 00 0d 00 0d 00 0d 00 0d |........|........|
|000004e0| 00 0e 00 0e 00 0e 00 0e | 00 0e 00 10 00 10 00 10 |........|........|
|000004f0| 00 10 00 10 00 11 00 00 | 00 10 00 01 00 00 00 00 |........|........|
|00000500| 00 01 00 09 00 00 00 00 | 00 00 00 00 00 04 00 01 |........|........|
|00000510| 00 05 00 00 00 10 00 01 | 00 00 00 00 00 01 00 09 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 04 00 01 00 05 00 00 |........|........|
|00000530| 00 10 00 01 00 00 00 00 | 00 01 00 09 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 04 00 01 | 00 05 00 00 00 10 00 01 |........|........|
|00000550| 00 00 00 00 00 01 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 04 00 01 00 05 00 00 | 00 10 00 01 00 00 00 00 |........|........|
|00000570| 00 01 00 09 00 00 00 00 | 00 00 00 00 00 04 00 01 |........|........|
|00000580| 00 05 00 00 00 10 00 01 | 00 00 00 00 00 01 00 09 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 04 00 01 00 04 00 00 |........|........|
|000005a0| 00 10 00 01 00 00 00 00 | 00 01 00 09 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 04 00 01 | 00 05 00 00 00 10 00 01 |........|........|
|000005c0| 00 00 00 00 00 01 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 04 00 01 00 05 00 00 | 00 10 00 01 00 00 00 00 |........|........|
|000005e0| 00 01 00 09 00 00 00 00 | 00 00 00 00 00 04 00 01 |........|........|
|000005f0| 00 05 00 00 00 10 00 01 | 00 00 00 00 00 01 00 09 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 04 00 01 00 05 00 00 |........|........|
|00000610| 00 5e 73 69 74 75 61 74 | 69 6f 6e 20 6f 72 62 69 |.^situat|ion orbi|
|00000620| 74 61 6c 5f 63 6f 6d 62 | 61 74 5f 73 74 61 72 74 |tal_comb|at_start|
|00000630| 0d 0d 62 65 67 69 6e 0d | 20 20 20 2f 2f 20 44 6f |..begin.| // Do|
|00000640| 20 6e 6f 74 68 69 6e 67 | 20 61 74 20 74 68 65 20 | nothing| at the |
|00000650| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 6f 72 62 |beginnin|g of orb|
|00000660| 69 74 61 6c 20 63 6f 6d | 62 61 74 0d 65 6e 64 3b |ital com|bat.end;|
|00000670| 00 00 00 6b 73 69 74 75 | 61 74 69 6f 6e 20 70 6c |...ksitu|ation pl|
|00000680| 61 6e 65 74 61 72 79 5f | 62 6f 6d 62 61 72 6d 65 |anetary_|bombarme|
|00000690| 6e 74 5f 73 74 61 72 74 | 0d 0d 62 65 67 69 6e 0d |nt_start|..begin.|
|000006a0| 20 20 20 2f 2f 20 44 6f | 20 6e 6f 74 68 69 6e 67 | // Do| nothing|
|000006b0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|000006c0| 67 20 6f 66 20 70 6c 61 | 6e 65 74 61 72 79 20 62 |g of pla|netary b|
|000006d0| 6f 6d 64 61 72 64 6d 65 | 6e 74 0d 65 6e 64 3b 00 |omdardme|nt.end;.|
|000006e0| 00 00 46 73 69 74 75 61 | 74 69 6f 6e 20 70 6c 61 |..Fsitua|tion pla|
|000006f0| 6e 65 74 5f 73 74 61 72 | 74 0d 0d 62 65 67 69 6e |net_star|t..begin|
|00000700| 0d 20 20 20 2f 2f 20 44 | 6f 20 6e 6f 74 68 69 6e |. // D|o nothin|
|00000710| 67 20 61 74 20 70 6c 61 | 6e 65 74 61 72 79 20 73 |g at pla|netary s|
|00000720| 74 61 72 74 0d 65 6e 64 | 3b 00 00 01 d9 73 69 74 |tart.end|;....sit|
|00000730| 75 61 74 69 6f 6e 20 73 | 74 61 72 74 5f 67 61 6d |uation s|tart_gam|
|00000740| 65 0d 76 61 72 73 0d 20 | 20 20 77 5f 73 70 65 6e |e.vars. | w_spen|
|00000750| 64 69 6e 67 20 3a 20 69 | 6e 74 65 67 65 72 3b 0d |ding : i|nteger;.|
|00000760| 20 20 20 73 5f 73 70 65 | 6e 64 69 6e 67 20 3a 20 | s_spe|nding : |
|00000770| 69 6e 74 65 67 65 72 3b | 0d 20 20 20 6d 5f 73 70 |integer;|. m_sp|
|00000780| 65 6e 64 69 6e 67 20 3a | 20 69 6e 74 65 67 65 72 |ending :| integer|
|00000790| 3b 0d 20 20 20 64 5f 73 | 70 65 6e 64 69 6e 67 20 |;. d_s|pending |
|000007a0| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 20 20 20 74 65 |: intege|r;. te|
|000007b0| 63 68 5f 6d 69 6e 20 3a | 20 69 6e 74 65 67 65 72 |ch_min :| integer|
|000007c0| 3b 0d 0d 62 65 67 69 6e | 0d 20 20 20 2f 2f 20 41 |;..begin|. // A|
|000007d0| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|000007e0| 6f 66 20 74 68 65 20 67 | 61 6d 65 20 77 65 20 64 |of the g|ame we d|
|000007f0| 65 74 65 72 6d 69 6e 65 | 20 68 6f 77 20 77 65 20 |etermine| how we |
|00000800| 77 69 6c 6c 20 64 69 76 | 69 64 65 20 74 68 65 20 |will div|ide the |
|00000810| 73 70 65 6e 64 69 6e 67 | 0d 20 20 20 77 5f 73 70 |spending|. w_sp|
|00000820| 65 6e 64 69 6e 67 20 3a | 3d 20 52 61 6e 64 6f 6d |ending :|= Random|
|00000830| 28 34 30 29 20 2b 20 32 | 30 3b 0d 20 20 20 73 5f |(40) + 2|0;. s_|
|00000840| 73 70 65 6e 64 69 6e 67 | 20 3a 3d 20 52 61 6e 64 |spending| := Rand|
|00000850| 6f 6d 28 34 30 29 20 2b | 20 32 30 3b 0d 20 20 20 |om(40) +| 20;. |
|00000860| 6d 5f 73 70 65 6e 64 69 | 6e 67 20 3a 3d 20 52 61 |m_spendi|ng := Ra|
|00000870| 6e 64 6f 6d 28 34 30 29 | 20 2b 20 32 30 3b 0d 20 |ndom(40)| + 20;. |
|00000880| 20 20 64 5f 73 70 65 6e | 64 69 6e 67 20 3a 3d 20 | d_spen|ding := |
|00000890| 52 61 6e 64 6f 6d 28 34 | 30 29 20 2b 20 32 30 3b |Random(4|0) + 20;|
|000008a0| 0d 20 20 2f 2f 20 4e 6f | 77 20 77 65 20 64 65 63 |. // No|w we dec|
|000008b0| 69 64 65 20 74 68 65 20 | 6d 69 6e 69 6d 75 6d 20 |ide the |minimum |
|000008c0| 74 65 63 68 20 62 65 66 | 6f 72 65 20 77 65 20 73 |tech bef|ore we s|
|000008d0| 74 61 72 74 20 62 75 69 | 6c 64 69 6e 67 20 73 68 |tart bui|lding sh|
|000008e0| 69 70 73 0d 20 20 20 74 | 65 63 68 5f 6d 69 6e 20 |ips. t|ech_min |
|000008f0| 3a 3d 20 52 61 6e 64 6f | 6d 28 33 29 20 2b 20 31 |:= Rando|m(3) + 1|
|00000900| 3b 0d 65 6e 64 3b 00 00 | 00 b6 00 01 00 14 00 14 |;.end;..|........|
|00000910| 00 15 00 15 00 16 00 16 | 00 17 00 17 00 17 00 17 |........|........|
|00000920| 00 17 00 17 00 18 00 18 | 00 18 00 18 00 1a 00 1a |........|........|
|00000930| 00 1b 00 1b 00 1d 00 1d | 00 1d 00 1d 00 1d 00 1f |........|........|
|00000940| 00 1f 00 20 00 20 00 22 | 00 22 00 22 00 27 00 27 |... . ."|.".".'.'|
|00000950| 00 28 00 28 00 28 00 29 | 00 29 00 29 00 2b 00 2b |.(.(.(.)|.).).+.+|
|00000960| 00 2c 00 2c 00 2c 00 2c | 00 2f 00 2f 00 2f 00 2f |.,.,.,.,|././././|
|00000970| 00 2f 00 2f 00 2f 00 2f | 00 2f 00 2f 00 30 00 30 |././././|././.0.0|
|00000980| 00 30 00 30 00 30 00 31 | 00 31 00 31 00 31 00 32 |.0.0.0.1|.1.1.1.2|
|00000990| 00 34 00 34 00 35 00 35 | 00 36 00 36 00 36 00 37 |.4.4.5.5|.6.6.6.7|
|000009a0| 00 37 00 37 00 37 00 38 | 00 38 00 38 00 38 00 39 |.7.7.7.8|.8.8.8.9|
|000009b0| 00 39 00 39 00 39 00 3b | 00 3b 00 3b 00 3b 00 3e |.9.9.9.;|.;.;.;.>|
|000009c0| 00 3c 00 3c 00 3c 00 3c | 00 3f 00 3f 00 3f 00 40 |.<.<.<.<|.?.?.?.@|
|000009d0| 00 40 00 40 00 41 00 41 | 00 41 00 41 00 42 00 42 |.@.@.A.A|.A.A.B.B|
|000009e0| 00 42 00 42 00 43 00 43 | 00 43 00 43 00 43 00 44 |.B.B.C.C|.C.C.C.D|
|000009f0| 00 45 00 45 00 45 00 48 | 00 00 00 59 73 69 74 75 |.E.E.E.H|...Ysitu|
|00000a00| 61 74 69 6f 6e 20 70 6c | 61 6e 65 74 61 72 79 5f |ation pl|anetary_|
|00000a10| 64 65 66 65 6e 73 65 5f | 73 74 61 72 74 0d 0d 62 |defense_|start..b|
|00000a20| 65 67 69 6e 0d 20 20 20 | 2f 2f 20 44 6f 20 6e 6f |egin. |// Do no|
|00000a30| 74 68 69 6e 67 20 61 74 | 20 70 6c 61 6e 65 74 61 |thing at| planeta|
|00000a40| 72 79 20 64 65 66 65 6e | 73 65 20 73 74 61 72 74 |ry defen|se start|
|00000a50| 0d 65 6e 64 3b 00 00 00 | 69 73 69 74 75 61 74 69 |.end;...|isituati|
|00000a60| 6f 6e 20 70 6c 61 6e 65 | 74 61 72 79 5f 64 65 70 |on plane|tary_dep|
|00000a70| 6c 6f 79 6d 65 6e 74 5f | 73 74 61 72 74 0d 0d 62 |loyment_|start..b|
|00000a80| 65 67 69 6e 0d 20 20 20 | 2f 2f 20 44 6f 20 6e 6f |egin. |// Do no|
|00000a90| 74 68 69 6e 67 20 61 74 | 20 74 68 65 20 62 65 67 |thing at| the beg|
|00000aa0| 69 6e 69 6e 67 20 6f 66 | 20 70 6c 61 6e 65 74 61 |ining of| planeta|
|00000ab0| 72 79 20 64 65 70 6c 6f | 79 6d 65 6e 74 0d 65 6e |ry deplo|yment.en|
|00000ac0| 64 3b 00 00 00 5f 73 69 | 74 75 61 74 69 6f 6e 20 |d;..._si|tuation |
|00000ad0| 70 6c 61 6e 65 74 61 72 | 79 5f 74 72 6f 6f 70 5f |planetar|y_troop_|
|00000ae0| 73 74 61 72 74 0d 0d 62 | 65 67 69 6e 0d 20 20 20 |start..b|egin. |
|00000af0| 2f 2f 20 44 6f 20 6e 6f | 74 68 69 6e 67 20 61 74 |// Do no|thing at|
|00000b00| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00000b10| 66 20 74 72 6f 6f 70 20 | 6d 6f 76 65 6d 65 6e 74 |f troop |movement|
|00000b20| 0d 65 6e 64 3b 00 00 04 | 85 73 69 74 75 61 74 69 |.end;...|.situati|
|00000b30| 6f 6e 20 70 6c 61 6e 65 | 74 61 72 79 5f 73 71 75 |on plane|tary_squ|
|00000b40| 61 64 0d 76 61 72 73 0d | 20 20 20 6d 65 20 3a 20 |ad.vars.| me : |
|00000b50| 73 71 75 61 64 3b 0d 20 | 20 20 6d 79 5f 72 61 63 |squad;. | my_rac|
|00000b60| 65 20 3a 20 69 6e 74 65 | 67 65 72 3b 0d 20 20 20 |e : inte|ger;. |
|00000b70| 6d 79 5f 6c 6f 63 61 74 | 69 6f 6e 20 3a 20 69 6e |my_locat|ion : in|
|00000b80| 74 65 67 65 72 3b 0d 20 | 20 20 74 61 72 67 65 74 |teger;. | target|
|00000b90| 20 3a 20 69 6e 74 65 67 | 65 72 3b 0d 20 20 20 66 | : integ|er;. f|
|00000ba0| 6f 63 75 73 20 3a 20 73 | 71 75 61 64 3b 0d 20 20 |ocus : s|quad;. |
|00000bb0| 20 6c 6f 63 20 3a 20 69 | 6e 74 65 67 65 72 3b 0d | loc : i|nteger;.|
|00000bc0| 20 20 20 73 75 63 63 65 | 73 73 20 3a 20 62 6f 6f | succe|ss : boo|
|00000bd0| 6c 65 61 6e 3b 0d 0d 62 | 65 67 69 6e 0d 20 20 20 |lean;..b|egin. |
|00000be0| 2f 2f 20 46 69 6e 64 20 | 74 68 65 20 6e 65 61 72 |// Find |the near|
|00000bf0| 65 73 74 20 65 6e 65 6d | 79 20 73 71 75 61 64 20 |est enem|y squad |
|00000c00| 61 6e 64 20 6d 6f 76 65 | 20 74 6f 77 61 72 64 20 |and move| toward |
|00000c10| 69 74 0d 20 20 20 6d 65 | 20 3a 3d 20 54 68 69 73 |it. me| := This|
|00000c20| 5f 73 71 75 61 64 28 29 | 3b 0d 20 20 20 6d 79 5f |_squad()|;. my_|
|00000c30| 72 61 63 65 20 3a 3d 20 | 53 71 75 61 64 5f 72 61 |race := |Squad_ra|
|00000c40| 63 65 28 6d 65 29 3b 0d | 20 20 20 6d 79 5f 6c 6f |ce(me);.| my_lo|
|00000c50| 63 61 74 69 6f 6e 20 3a | 3d 20 53 71 75 61 64 5f |cation :|= Squad_|
|00000c60| 68 65 78 28 6d 65 29 3b | 0d 20 20 20 74 61 72 67 |hex(me);|. targ|
|00000c70| 65 74 20 3a 3d 20 2d 31 | 3b 0d 20 20 20 66 6f 63 |et := -1|;. foc|
|00000c80| 75 73 20 3a 3d 20 46 69 | 72 73 74 5f 73 71 75 61 |us := Fi|rst_squa|
|00000c90| 64 28 2d 31 29 3b 0d 20 | 20 20 77 68 69 6c 65 20 |d(-1);. | while |
|00000ca0| 28 66 6f 63 75 73 20 3c | 3e 20 6e 69 6c 29 20 64 |(focus <|> nil) d|
|00000cb0| 6f 0d 20 20 20 20 20 20 | 62 65 67 69 6e 0d 20 20 |o. |begin. |
|00000cc0| 20 20 20 20 20 20 20 69 | 66 20 28 53 71 75 61 64 | i|f (Squad|
|00000cd0| 5f 72 61 63 65 28 66 6f | 63 75 73 29 20 3c 3e 20 |_race(fo|cus) <> |
|00000ce0| 6d 79 5f 72 61 63 65 29 | 20 74 68 65 6e 0d 20 20 |my_race)| then. |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 62 65 67 69 6e 0d | | begin.|
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|00000d10| 6f 63 20 3a 3d 20 53 71 | 75 61 64 5f 68 65 78 28 |oc := Sq|uad_hex(|
|00000d20| 66 6f 63 75 73 29 3b 0d | 20 20 20 20 20 20 20 20 |focus);.| |
|00000d30| 20 20 20 20 20 20 20 69 | 66 20 28 74 61 72 67 65 | i|f (targe|
|00000d40| 74 20 3d 20 2d 31 29 20 | 74 68 65 6e 0d 20 20 20 |t = -1) |then. |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00000d60| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |egin. | |
|00000d70| 20 20 20 20 20 20 20 20 | 20 20 74 61 72 67 65 74 | | target|
|00000d80| 20 3a 3d 20 6c 6f 63 3b | 0d 20 20 20 20 20 20 20 | := loc;|. |
|00000d90| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 3b 0d | | end;.|
|00000da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00000db0| 6c 73 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |lse. | |
|00000dc0| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 20 20 20 20 | be|gin. |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000de0| 20 69 66 20 28 50 6c 61 | 6e 65 74 5f 64 69 73 74 | if (Pla|net_dist|
|00000df0| 61 6e 63 65 28 6d 79 5f | 6c 6f 63 61 74 69 6f 6e |ance(my_|location|
|00000e00| 2c 20 6c 6f 63 29 20 3c | 0d 20 20 20 20 20 20 20 |, loc) <|. |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e20| 20 20 50 6c 61 6e 65 74 | 5f 64 69 73 74 61 6e 63 | Planet|_distanc|
|00000e30| 65 28 6d 79 5f 6c 6f 63 | 61 74 69 6f 6e 2c 20 74 |e(my_loc|ation, t|
|00000e40| 61 72 67 65 74 29 29 20 | 74 68 65 6e 0d 20 20 20 |arget)) |then. |
|00000e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e60| 20 20 20 20 20 74 61 72 | 67 65 74 20 3a 3d 20 6c | tar|get := l|
|00000e70| 6f 63 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |oc;. | |
|00000e80| 20 20 20 20 20 20 65 6e | 64 3b 0d 20 20 20 20 20 | en|d;. |
|00000e90| 20 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 20 | e|nd;. |
|00000ea0| 20 20 20 20 20 66 6f 63 | 75 73 20 3a 3d 20 4e 65 | foc|us := Ne|
|00000eb0| 78 74 5f 73 71 75 61 64 | 28 66 6f 63 75 73 2c 20 |xt_squad|(focus, |
|00000ec0| 2d 31 29 3b 0d 20 20 20 | 20 20 20 65 6e 64 3b 0d |-1);. | end;.|
|00000ed0| 20 20 20 69 66 20 28 74 | 61 72 67 65 74 20 3d 20 | if (t|arget = |
|00000ee0| 2d 31 29 20 74 68 65 6e | 0d 20 20 20 20 20 20 73 |-1) then|. s|
|00000ef0| 75 63 63 65 73 73 20 3a | 3d 20 4d 6f 76 65 5f 73 |uccess :|= Move_s|
|00000f00| 71 75 61 64 28 6d 79 5f | 6c 6f 63 61 74 69 6f 6e |quad(my_|location|
|00000f10| 29 3b 0d 20 20 20 65 6c | 73 65 0d 20 20 20 20 20 |);. el|se. |
|00000f20| 20 62 65 67 69 6e 0d 20 | 20 20 20 20 20 20 20 20 | begin. | |
|00000f30| 73 75 63 63 65 73 73 20 | 3a 3d 20 4d 6f 76 65 5f |success |:= Move_|
|00000f40| 73 71 75 61 64 28 74 61 | 72 67 65 74 29 3b 0d 20 |squad(ta|rget);. |
|00000f50| 20 20 20 20 20 20 20 20 | 69 66 20 28 6e 6f 74 20 | |if (not |
|00000f60| 73 75 63 63 65 73 73 29 | 20 74 68 65 6e 0d 20 20 |success)| then. |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 73 75 63 63 65 73 | | succes|
|00000f80| 73 20 3a 3d 20 4d 6f 76 | 65 5f 73 71 75 61 64 28 |s := Mov|e_squad(|
|00000f90| 6d 79 5f 6c 6f 63 61 74 | 69 6f 6e 29 3b 0d 20 20 |my_locat|ion);. |
|00000fa0| 20 20 20 20 65 6e 64 3b | 0d 65 6e 64 3b 0d 00 00 | end;|.end;...|
|00000fb0| 02 10 00 01 00 00 00 00 | 00 01 00 03 00 00 00 00 |........|........|
|00000fc0| 00 a7 00 06 00 6a 00 00 | 61 74 00 05 00 6a 00 00 |.....j..|at...j..|
|00000fd0| 6b f8 00 03 00 00 00 00 | 00 a8 00 06 00 ca 00 01 |k.......|........|
|00000fe0| 6b f4 00 05 00 6a 00 00 | 00 06 00 03 00 00 00 00 |k....j..|........|
|00000ff0| 00 a9 00 06 00 ca 00 02 | 4e 1c 00 00 00 06 ff ff |........|N.......|
|00001000| ff ff 00 06 00 ca 00 03 | 00 01 00 00 00 06 ff ff |........|........|
|00001010| ff ff 00 03 00 00 00 00 | 00 ae 00 06 00 6a 00 04 |........|.....j..|
|00001020| 0b a8 00 05 00 6a 00 04 | df 50 00 00 00 65 00 00 |.....j..|.P...e..|
|00001030| 00 00 00 03 00 00 00 00 | 00 05 00 08 00 00 00 00 |........|........|
|00001040| 00 30 00 05 00 6a 00 04 | 6b f8 00 03 00 00 00 00 |.0...j..|k.......|
|00001050| 00 a8 00 05 00 ca 00 01 | fe 64 00 03 00 00 00 00 |........|.d......|
|00001060| 00 05 00 08 00 00 00 00 | 00 2b 00 05 00 6a 00 04 |........|.+...j..|
|00001070| 6b f8 00 03 00 00 00 00 | 00 a9 00 06 00 ca 00 05 |k.......|........|
|00001080| a4 3c 00 05 00 ca 00 03 | 6b f8 00 00 00 06 ff ff |.<......|k.......|
|00001090| ff ff 00 03 00 00 00 00 | 00 02 00 08 00 00 00 00 |........|........|
|000010a0| 00 21 00 05 00 ca 00 05 | 6b f8 00 06 00 ca 00 03 |.!......|k.......|
|000010b0| fd e0 00 01 00 00 00 00 | 00 2b 00 05 00 ca 00 02 |........|.+......|
|000010c0| 00 84 00 05 00 ca 00 05 | 00 00 00 03 00 00 00 00 |........|........|
|000010d0| 00 ad 00 05 00 ca 00 02 | 6b f8 00 05 00 ca 00 03 |........|k.......|
|000010e0| 00 00 00 03 00 00 00 00 | 00 ad 00 03 00 00 00 00 |........|........|
|000010f0| 00 01 00 08 00 00 00 00 | 00 2b 00 05 00 ca 00 05 |........|.+......|
|00001100| 6b f8 00 06 00 ca 00 03 | 00 14 00 05 00 6a 00 04 |k.......|.....j..|
|00001110| d5 b0 00 00 00 06 ff ff | ff ff 00 03 00 00 00 00 |........|........|
|00001120| 00 af 00 06 00 6a 00 04 | 00 10 00 01 00 00 00 00 |.....j..|........|
|00001130| 00 0e 00 05 00 ca 00 03 | 63 00 00 00 00 06 ff ff |........|c.......|
|00001140| ff ff 00 03 00 00 00 00 | 00 02 00 08 00 00 00 00 |........|........|
|00001150| 00 38 00 05 00 ca 00 02 | 01 b3 00 03 00 00 00 00 |.8......|........|
|00001160| 00 b0 00 06 01 0a 00 06 | 00 11 00 01 00 00 00 00 |........|........|
|00001170| 00 41 00 05 00 ca 00 03 | 00 03 00 03 00 00 00 00 |.A......|........|
|00001180| 00 b0 00 06 01 0a 00 06 | 6b f4 00 05 01 0a 00 06 |........|k.......|
|00001190| 00 03 00 03 00 00 00 00 | 00 0e 00 08 00 00 00 00 |........|........|
|000011a0| 00 41 00 05 00 ca 00 02 | 00 00 00 03 00 00 00 00 |.A......|........|
|000011b0| 00 b0 00 06 01 0a 00 06 | 6b f4 00 09 00 00 00 00 |........|k.......|
|000011c0| 00 00 00 00 00 84 00 01 | 00 0d 00 0d 00 0e 00 0e |........|........|
|000011d0| 00 0e 00 0f 00 0f 00 0f | 00 10 00 10 00 11 00 11 |........|........|
|000011e0| 00 11 00 12 00 12 00 12 | 00 12 00 14 00 14 00 14 |........|........|
|000011f0| 00 14 00 14 00 16 00 16 | 00 16 00 17 00 17 00 17 |........|........|
|00001200| 00 17 00 19 00 19 00 1b | 00 1d 00 1d 00 1d 00 1e |........|........|
|00001210| 00 1e 00 1e 00 1e 00 1e | 00 1f 00 1f 00 22 00 22 |........|....."."|
|00001220| 00 22 00 22 00 23 00 24 | 00 24 00 24 00 24 00 25 |.".".#.$|.$.$.$.%|
|00001230| 00 25 00 25 00 26 00 28 | 00 28 00 28 00 29 00 29 |.%.%.&.(|.(.(.).)|
|00001240| 00 29 00 2a 00 2a 00 2a | 00 2c 00 00 00 51 73 69 |.).*.*.*|.,...Qsi|
|00001250| 74 75 61 74 69 6f 6e 20 | 67 72 6f 75 6e 64 5f 63 |tuation |ground_c|
|00001260| 6f 6d 62 61 74 5f 73 74 | 61 72 74 0d 0d 62 65 67 |ombat_st|art..beg|
|00001270| 69 6e 0d 20 20 20 2f 2f | 20 44 6f 20 6e 6f 74 68 |in. //| Do noth|
|00001280| 69 6e 67 20 61 74 20 67 | 72 6f 75 6e 64 20 63 6f |ing at g|round co|
|00001290| 6d 62 61 74 20 73 74 61 | 72 74 0d 65 6e 64 3b 00 |mbat sta|rt.end;.|
|000012a0| 00 00 4d 73 69 74 75 61 | 74 69 6f 6e 20 73 65 63 |..Msitua|tion sec|
|000012b0| 74 6f 72 5f 74 75 72 6e | 5f 73 74 61 72 74 0d 0d |tor_turn|_start..|
|000012c0| 62 65 67 69 6e 0d 20 20 | 20 2f 2f 20 44 6f 20 6e |begin. | // Do n|
|000012d0| 6f 74 68 69 6e 67 20 61 | 74 20 73 65 63 74 6f 72 |othing a|t sector|
|000012e0| 20 74 75 72 6e 20 73 74 | 61 72 74 0d 65 6e 64 3b | turn st|art.end;|
|000012f0| 00 00 00 54 73 69 74 75 | 61 74 69 6f 6e 20 73 70 |...Tsitu|ation sp|
|00001300| 61 63 65 5f 63 6f 6d 62 | 61 74 5f 73 74 61 72 74 |ace_comb|at_start|
|00001310| 0d 0d 62 65 67 69 6e 0d | 20 20 20 2f 2f 20 44 6f |..begin.| // Do|
|00001320| 20 6e 6f 74 68 69 6e 67 | 20 61 74 20 74 68 65 20 | nothing| at the |
|00001330| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 63 6f 6d |beginnin|g of com|
|00001340| 62 61 74 0d 65 6e 64 3b | 00 00 11 ef 73 69 74 75 |bat.end;|....situ|
|00001350| 61 74 69 6f 6e 20 66 6c | 65 65 74 5f 6d 6f 76 65 |ation fl|eet_move|
|00001360| 0d 76 61 72 73 0d 20 20 | 20 6d 65 20 3a 20 66 6c |.vars. | me : fl|
|00001370| 65 65 74 3b 0d 20 20 20 | 66 5f 66 6c 65 65 74 20 |eet;. |f_fleet |
|00001380| 3a 20 66 6c 65 65 74 3b | 0d 20 20 20 74 5f 66 6c |: fleet;|. t_fl|
|00001390| 65 65 74 20 3a 20 66 6c | 65 65 74 3b 0d 20 20 20 |eet : fl|eet;. |
|000013a0| 61 6e 67 6c 65 20 3a 20 | 69 6e 74 65 67 65 72 3b |angle : |integer;|
|000013b0| 0d 20 20 20 74 5f 64 69 | 73 74 20 3a 20 69 6e 74 |. t_di|st : int|
|000013c0| 65 67 65 72 3b 0d 20 20 | 20 73 75 63 63 65 73 73 |eger;. | success|
|000013d0| 20 3a 20 62 6f 6f 6c 65 | 61 6e 3b 0d 20 20 20 66 | : boole|an;. f|
|000013e0| 5f 70 6c 61 6e 65 74 20 | 3a 20 70 6c 61 6e 65 74 |_planet |: planet|
|000013f0| 3b 0d 20 20 20 74 5f 70 | 6c 61 6e 65 74 20 3a 20 |;. t_p|lanet : |
|00001400| 70 6c 61 6e 65 74 3b 0d | 20 20 20 70 5f 72 61 63 |planet;.| p_rac|
|00001410| 65 20 3a 20 69 6e 74 65 | 67 65 72 3b 0d 20 20 20 |e : inte|ger;. |
|00001420| 0d 62 65 67 69 6e 0d 20 | 20 20 2f 2f 20 54 68 69 |.begin. | // Thi|
|00001430| 73 20 73 65 63 74 69 6f | 6e 20 77 69 6c 6c 20 62 |s sectio|n will b|
|00001440| 65 20 65 61 73 69 65 72 | 20 74 6f 20 77 72 69 74 |e easier| to writ|
|00001450| 65 20 77 68 65 6e 20 74 | 68 65 20 61 74 74 61 63 |e when t|he attac|
|00001460| 68 6d 65 6e 74 73 20 61 | 72 65 20 64 6f 6e 65 0d |hments a|re done.|
|00001470| 20 20 20 6d 65 20 3a 3d | 20 54 68 69 73 5f 66 6c | me :=| This_fl|
|00001480| 65 65 74 28 29 3b 0d 20 | 20 20 2f 2f 20 53 65 65 |eet();. | // See|
|00001490| 20 69 66 20 79 6f 75 20 | 63 61 6e 20 66 69 6e 64 | if you |can find|
|000014a0| 20 61 6e 79 20 65 6e 65 | 6d 79 20 66 6c 65 65 74 | any ene|my fleet|
|000014b0| 73 0d 20 20 20 74 5f 66 | 6c 65 65 74 20 3a 3d 20 |s. t_f|leet := |
|000014c0| 6e 69 6c 3b 0d 20 20 20 | 66 5f 66 6c 65 65 74 20 |nil;. |f_fleet |
|000014d0| 3a 3d 20 46 69 72 73 74 | 5f 66 6c 65 65 74 28 2d |:= First|_fleet(-|
|000014e0| 31 29 3b 0d 20 20 20 77 | 68 69 6c 65 20 28 66 5f |1);. w|hile (f_|
|000014f0| 66 6c 65 65 74 20 3c 3e | 20 6e 69 6c 29 20 64 6f |fleet <>| nil) do|
|00001500| 0d 20 20 20 20 20 20 62 | 65 67 69 6e 0d 20 20 20 |. b|egin. |
|00001510| 20 20 20 20 20 20 69 66 | 20 28 47 65 74 5f 66 6c | if| (Get_fl|
|00001520| 65 65 74 5f 72 61 63 65 | 28 66 5f 66 6c 65 65 74 |eet_race|(f_fleet|
|00001530| 29 20 3c 3e 20 47 65 74 | 5f 66 6c 65 65 74 5f 72 |) <> Get|_fleet_r|
|00001540| 61 63 65 28 6d 65 29 29 | 20 74 68 65 6e 0d 20 20 |ace(me))| then. |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 62 65 67 69 6e 0d | | begin.|
|00001560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00001570| 66 20 28 74 5f 66 6c 65 | 65 74 20 3d 20 6e 69 6c |f (t_fle|et = nil|
|00001580| 29 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |) then. | |
|00001590| 20 20 20 20 20 20 20 20 | 20 74 5f 66 6c 65 65 74 | | t_fleet|
|000015a0| 20 3a 3d 20 66 5f 66 6c | 65 65 74 3b 0d 20 20 20 | := f_fl|eet;. |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|000015c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000015d0| 20 20 20 69 66 20 28 44 | 69 73 74 61 6e 63 65 28 | if (D|istance(|
|000015e0| 47 65 74 5f 66 6c 65 65 | 74 5f 78 28 6d 65 29 2c |Get_flee|t_x(me),|
|000015f0| 20 47 65 74 5f 66 6c 65 | 65 74 5f 79 28 6d 65 29 | Get_fle|et_y(me)|
|00001600| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001620| 20 47 65 74 5f 66 6c 65 | 65 74 5f 78 28 66 5f 66 | Get_fle|et_x(f_f|
|00001630| 6c 65 65 74 29 2c 20 47 | 65 74 5f 66 6c 65 65 74 |leet), G|et_fleet|
|00001640| 5f 79 28 66 5f 66 6c 65 | 65 74 29 29 20 3c 0d 20 |_y(f_fle|et)) <. |
|00001650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001660| 20 20 20 20 20 44 69 73 | 74 61 6e 63 65 28 47 65 | Dis|tance(Ge|
|00001670| 74 5f 66 6c 65 65 74 5f | 78 28 6d 65 29 2c 20 47 |t_fleet_|x(me), G|
|00001680| 65 74 5f 66 6c 65 65 74 | 5f 79 28 6d 65 29 2c 0d |et_fleet|_y(me),.|
|00001690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 47 | | G|
|000016b0| 65 74 5f 66 6c 65 65 74 | 5f 78 28 74 5f 66 6c 65 |et_fleet|_x(t_fle|
|000016c0| 65 74 29 2c 20 47 65 74 | 5f 66 6c 65 65 74 5f 79 |et), Get|_fleet_y|
|000016d0| 28 74 5f 66 6c 65 65 74 | 29 29 29 20 74 68 65 6e |(t_fleet|))) then|
|000016e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000016f0| 20 20 20 20 20 20 74 5f | 66 6c 65 65 74 20 3a 3d | t_|fleet :=|
|00001700| 20 66 5f 66 6c 65 65 74 | 3b 0d 20 20 20 20 20 20 | f_fleet|;. |
|00001710| 20 20 20 20 20 20 65 6e | 64 3b 0d 20 20 20 20 20 | en|d;. |
|00001720| 20 20 20 20 66 5f 66 6c | 65 65 74 20 3a 3d 20 4e | f_fl|eet := N|
|00001730| 65 78 74 5f 66 6c 65 65 | 74 28 66 5f 66 6c 65 65 |ext_flee|t(f_flee|
|00001740| 74 2c 20 2d 31 29 3b 0d | 20 20 20 20 20 20 65 6e |t, -1);.| en|
|00001750| 64 3b 0d 20 20 20 69 66 | 20 28 74 5f 66 6c 65 65 |d;. if| (t_flee|
|00001760| 74 20 3c 3e 20 6e 69 6c | 29 20 74 68 65 6e 0d 20 |t <> nil|) then. |
|00001770| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00001780| 20 20 20 20 2f 2f 20 57 | 65 27 76 65 20 66 6f 75 | // W|e've fou|
|00001790| 6e 64 20 61 20 73 68 69 | 70 20 74 6f 20 67 6f 20 |nd a shi|p to go |
|000017a0| 61 66 74 65 72 20 73 6f | 20 68 65 61 64 20 74 6f |after so| head to|
|000017b0| 77 61 72 64 20 69 74 0d | 20 20 20 20 20 20 20 20 |ward it.| |
|000017c0| 20 77 68 69 6c 65 20 28 | 46 6c 65 65 74 5f 6d 70 | while (|Fleet_mp|
|000017d0| 28 6d 65 29 20 3e 20 30 | 29 20 64 6f 0d 20 20 20 |(me) > 0|) do. |
|000017e0| 20 20 20 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 | | begin. |
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 6e | | an|
|00001800| 67 6c 65 20 3a 3d 20 54 | 61 72 67 65 74 5f 74 6f |gle := T|arget_to|
|00001810| 5f 61 6e 67 6c 65 28 47 | 65 74 5f 66 6c 65 65 74 |_angle(G|et_fleet|
|00001820| 5f 78 28 6d 65 29 2c 20 | 47 65 74 5f 66 6c 65 65 |_x(me), |Get_flee|
|00001830| 74 5f 79 28 6d 65 29 2c | 0d 20 20 20 20 20 20 20 |t_y(me),|. |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001860| 20 47 65 74 5f 66 6c 65 | 65 74 5f 78 28 74 5f 66 | Get_fle|et_x(t_f|
|00001870| 6c 65 65 74 29 2c 20 47 | 65 74 5f 66 6c 65 65 74 |leet), G|et_fleet|
|00001880| 5f 79 28 74 5f 66 6c 65 | 65 74 29 29 3b 0d 20 20 |_y(t_fle|et));. |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 5f 64 | | t_d|
|000018a0| 69 73 74 20 3a 3d 20 44 | 69 73 74 61 6e 63 65 28 |ist := D|istance(|
|000018b0| 47 65 74 5f 66 6c 65 65 | 74 5f 78 28 6d 65 29 2c |Get_flee|t_x(me),|
|000018c0| 20 47 65 74 5f 66 6c 65 | 65 74 5f 79 28 6d 65 29 | Get_fle|et_y(me)|
|000018d0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000018e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018f0| 20 20 20 20 47 65 74 5f | 66 6c 65 65 74 5f 78 28 | Get_|fleet_x(|
|00001900| 74 5f 66 6c 65 65 74 29 | 2c 20 47 65 74 5f 66 6c |t_fleet)|, Get_fl|
|00001910| 65 65 74 5f 79 28 74 5f | 66 6c 65 65 74 29 29 3b |eet_y(t_|fleet));|
|00001920| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001930| 69 66 20 28 74 5f 64 69 | 73 74 20 3d 20 31 29 20 |if (t_di|st = 1) |
|00001940| 74 68 65 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|00001950| 20 20 20 20 20 20 20 62 | 65 67 69 6e 0d 20 20 20 | b|egin. |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001970| 20 20 2f 2f 20 41 74 74 | 61 63 6b 20 65 6e 65 6d | // Att|ack enem|
|00001980| 79 20 66 6c 65 65 74 0d | 20 20 20 20 20 20 20 20 |y fleet.| |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 75 63 | | suc|
|000019a0| 63 65 73 73 20 3a 3d 20 | 41 74 74 61 63 6b 5f 66 |cess := |Attack_f|
|000019b0| 6c 65 65 74 28 61 6e 67 | 6c 65 29 3b 0d 20 20 20 |leet(ang|le);. |
|000019c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019d0| 20 20 69 66 20 28 6e 6f | 74 20 73 75 63 63 65 73 | if (no|t succes|
|000019e0| 73 29 20 74 68 65 6e 0d | 20 20 20 20 20 20 20 20 |s) then.| |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a00| 53 6b 69 70 28 29 3b 0d | 20 20 20 20 20 20 20 20 |Skip();.| |
|00001a10| 20 20 20 20 20 20 20 20 | 20 20 65 6e 64 3b 0d 20 | | end;. |
|00001a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el|
|00001a30| 73 65 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |se. | |
|00001a40| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00001a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a60| 73 75 63 63 65 73 73 20 | 3a 3d 20 4d 6f 76 65 5f |success |:= Move_|
|00001a70| 66 6c 65 65 74 28 61 6e | 67 6c 65 29 3b 0d 20 20 |fleet(an|gle);. |
|00001a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a90| 20 20 20 69 66 20 28 6e | 6f 74 20 73 75 63 63 65 | if (n|ot succe|
|00001aa0| 73 73 29 20 74 68 65 6e | 0d 20 20 20 20 20 20 20 |ss) then|. |
|00001ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ac0| 20 53 6b 69 70 28 29 3b | 0d 20 20 20 20 20 20 20 | Skip();|. |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 3b 0d | | end;.|
|00001ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6e 64 3b | | end;|
|00001af0| 0d 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 65 |. e|nd;. e|
|00001b00| 6c 73 65 0d 20 20 20 20 | 20 20 62 65 67 69 6e 0d |lse. | begin.|
|00001b10| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 4c 6f 6f 6b | | // Look|
|00001b20| 20 66 6f 72 20 61 6e 20 | 65 6e 65 6d 79 20 70 6c | for an |enemy pl|
|00001b30| 61 6e 65 74 20 74 6f 20 | 61 74 74 61 63 6b 0d 20 |anet to |attack. |
|00001b40| 20 20 20 20 20 20 20 20 | 74 5f 70 6c 61 6e 65 74 | |t_planet|
|00001b50| 20 3a 3d 20 6e 69 6c 3b | 0d 20 20 20 20 20 20 20 | := nil;|. |
|00001b60| 20 20 66 5f 70 6c 61 6e | 65 74 20 3a 3d 20 46 69 | f_plan|et := Fi|
|00001b70| 72 73 74 5f 70 6c 61 6e | 65 74 28 2d 31 29 3b 0d |rst_plan|et(-1);.|
|00001b80| 20 20 20 20 20 20 20 20 | 20 77 68 69 6c 65 20 28 | | while (|
|00001b90| 66 5f 70 6c 61 6e 65 74 | 20 3c 3e 20 6e 69 6c 29 |f_planet| <> nil)|
|00001ba0| 20 64 6f 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | do. | |
|00001bb0| 62 65 67 69 6e 0d 20 20 | 20 20 20 20 20 20 20 20 |begin. | |
|00001bc0| 20 20 20 20 20 70 5f 72 | 61 63 65 20 3a 3d 20 50 | p_r|ace := P|
|00001bd0| 6c 61 6e 65 74 5f 72 61 | 63 65 28 66 5f 70 6c 61 |lanet_ra|ce(f_pla|
|00001be0| 6e 65 74 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |net);. | |
|00001bf0| 20 20 20 20 20 69 66 20 | 28 70 5f 72 61 63 65 20 | if |(p_race |
|00001c00| 3d 20 2d 31 29 20 74 68 | 65 6e 0d 20 20 20 20 20 |= -1) th|en. |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 65 67 | | beg|
|00001c20| 69 6e 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |in. | |
|00001c30| 20 20 20 20 20 20 20 20 | 2f 2f 20 54 68 69 73 20 | |// This |
|00001c40| 70 6c 61 6e 65 74 20 68 | 61 73 20 6e 6f 74 20 79 |planet h|as not y|
|00001c50| 65 74 20 62 65 65 6e 20 | 65 78 70 6c 6f 72 65 64 |et been |explored|
|00001c60| 2c 20 68 65 61 64 20 74 | 6f 77 61 72 64 20 69 74 |, head t|oward it|
|00001c70| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001c80| 20 20 20 20 20 20 74 5f | 70 6c 61 6e 65 74 20 3a | t_|planet :|
|00001c90| 3d 20 66 5f 70 6c 61 6e | 65 74 3b 0d 20 20 20 20 |= f_plan|et;. |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6e | | en|
|00001cb0| 64 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d;. | |
|00001cc0| 20 20 65 6c 73 65 20 69 | 66 20 28 28 70 5f 72 61 | else i|f ((p_ra|
|00001cd0| 63 65 20 3c 3e 20 47 65 | 74 5f 66 6c 65 65 74 5f |ce <> Ge|t_fleet_|
|00001ce0| 72 61 63 65 28 6d 65 29 | 29 20 61 6e 64 0d 20 20 |race(me)|) and. |
|00001cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d00| 20 20 20 20 20 20 28 70 | 5f 72 61 63 65 20 3c 3e | (p|_race <>|
|00001d10| 20 31 30 30 29 29 20 74 | 68 65 6e 0d 20 20 20 20 | 100)) t|hen. |
|00001d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 | | be|
|00001d30| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |gin. | |
|00001d40| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 74 5f 70 | | if (t_p|
|00001d50| 6c 61 6e 65 74 20 3d 20 | 6e 69 6c 29 20 74 68 65 |lanet = |nil) the|
|00001d60| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00001d70| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 4f 6e 6c | | // Onl|
|00001d80| 79 20 6d 61 6b 65 20 74 | 68 65 20 74 61 72 67 65 |y make t|he targe|
|00001d90| 74 20 77 6f 72 6c 64 20 | 61 6e 20 65 6e 65 6d 79 |t world |an enemy|
|00001da0| 20 77 6f 72 6c 64 20 69 | 66 20 79 6f 75 20 68 61 | world i|f you ha|
|00001db0| 76 65 20 6e 6f 20 77 6f | 72 6c 64 20 73 65 6c 65 |ve no wo|rld sele|
|00001dc0| 74 65 64 20 79 65 74 0d | 20 20 20 20 20 20 20 20 |ted yet.| |
|00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001de0| 74 5f 70 6c 61 6e 65 74 | 20 3a 3d 20 66 5f 70 6c |t_planet| := f_pl|
|00001df0| 61 6e 65 74 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |anet;. | |
|00001e00| 20 20 20 20 20 20 20 20 | 65 6e 64 3b 0d 20 20 20 | |end;. |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 5f 70 6c | | f_pl|
|00001e20| 61 6e 65 74 20 3a 3d 20 | 4e 65 78 74 5f 70 6c 61 |anet := |Next_pla|
|00001e30| 6e 65 74 28 66 5f 70 6c | 61 6e 65 74 2c 20 2d 31 |net(f_pl|anet, -1|
|00001e40| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |);. | e|
|00001e50| 6e 64 3b 0d 20 20 20 20 | 20 20 20 20 20 69 66 20 |nd;. | if |
|00001e60| 28 74 5f 70 6c 61 6e 65 | 74 20 3c 3e 20 6e 69 6c |(t_plane|t <> nil|
|00001e70| 29 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |) then. | |
|00001e80| 20 20 20 62 65 67 69 6e | 0d 20 20 20 20 20 20 20 | begin|. |
|00001e90| 20 20 20 20 20 20 20 20 | 2f 2f 20 48 65 61 64 20 | |// Head |
|00001ea0| 74 6f 77 61 72 64 20 74 | 61 72 67 65 74 20 70 6c |toward t|arget pl|
|00001eb0| 61 6e 65 74 0d 20 20 20 | 20 20 20 20 20 20 20 20 |anet. | |
|00001ec0| 20 20 20 20 77 68 69 6c | 65 20 28 46 6c 65 65 74 | whil|e (Fleet|
|00001ed0| 5f 6d 70 28 6d 65 29 20 | 3e 20 30 29 20 64 6f 0d |_mp(me) |> 0) do.|
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ef0| 20 20 62 65 67 69 6e 0d | 20 20 20 20 20 20 20 20 | begin.| |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 61 6e 67 | | ang|
|00001f10| 6c 65 20 3a 3d 20 54 61 | 72 67 65 74 5f 74 6f 5f |le := Ta|rget_to_|
|00001f20| 61 6e 67 6c 65 28 47 65 | 74 5f 66 6c 65 65 74 5f |angle(Ge|t_fleet_|
|00001f30| 78 28 6d 65 29 2c 20 47 | 65 74 5f 66 6c 65 65 74 |x(me), G|et_fleet|
|00001f40| 5f 79 28 6d 65 29 2c 0d | 20 20 20 20 20 20 20 20 |_y(me),.| |
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f70| 20 20 20 20 20 20 50 6c | 61 6e 65 74 5f 78 28 74 | Pl|anet_x(t|
|00001f80| 5f 70 6c 61 6e 65 74 29 | 2c 20 50 6c 61 6e 65 74 |_planet)|, Planet|
|00001f90| 5f 79 28 74 5f 70 6c 61 | 6e 65 74 29 29 3b 0d 20 |_y(t_pla|net));. |
|00001fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fb0| 20 20 20 20 74 5f 64 69 | 73 74 20 3a 3d 20 44 69 | t_di|st := Di|
|00001fc0| 73 74 61 6e 63 65 28 47 | 65 74 5f 66 6c 65 65 74 |stance(G|et_fleet|
|00001fd0| 5f 78 28 6d 65 29 2c 20 | 47 65 74 5f 66 6c 65 65 |_x(me), |Get_flee|
|00001fe0| 74 5f 79 28 6d 65 29 2c | 0d 20 20 20 20 20 20 20 |t_y(me),|. |
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002010| 20 50 6c 61 6e 65 74 5f | 78 28 74 5f 70 6c 61 6e | Planet_|x(t_plan|
|00002020| 65 74 29 2c 20 50 6c 61 | 6e 65 74 5f 79 28 74 5f |et), Pla|net_y(t_|
|00002030| 70 6c 61 6e 65 74 29 29 | 3b 0d 20 20 20 20 20 20 |planet))|;. |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00002050| 66 20 28 74 5f 64 69 73 | 74 20 3d 20 31 29 20 74 |f (t_dis|t = 1) t|
|00002060| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |hen. | |
|00002070| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 67 69 | | begi|
|00002080| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00002090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|000020a0| 41 74 74 61 63 6b 20 65 | 6e 65 6d 79 20 70 6c 61 |Attack e|nemy pla|
|000020b0| 6e 65 74 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |net. | |
|000020c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|000020d0| 66 20 28 28 50 6c 61 6e | 65 74 5f 72 61 63 65 28 |f ((Plan|et_race(|
|000020e0| 74 5f 70 6c 61 6e 65 74 | 29 20 3c 3e 20 47 65 74 |t_planet|) <> Get|
|000020f0| 5f 66 6c 65 65 74 5f 72 | 61 63 65 28 6d 65 29 29 |_fleet_r|ace(me))|
|00002100| 20 61 6e 64 0d 20 20 20 | 20 20 20 20 20 20 20 20 | and. | |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 20 20 20 20 28 50 6c 61 | 6e 65 74 5f 72 61 63 65 | (Pla|net_race|
|00002130| 28 74 5f 70 6c 61 6e 65 | 74 29 20 3c 3e 20 31 30 |(t_plane|t) <> 10|
|00002140| 30 29 29 20 74 68 65 6e | 0d 20 20 20 20 20 20 20 |0)) then|. |
|00002150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002160| 20 20 20 20 20 20 20 62 | 65 67 69 6e 0d 20 20 20 | b|egin. |
|00002170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 75 | | su|
|00002190| 63 63 65 73 73 20 3a 3d | 20 41 74 74 61 63 6b 5f |ccess :=| Attack_|
|000021a0| 66 6c 65 65 74 28 61 6e | 67 6c 65 29 3b 0d 20 20 |fleet(an|gle);. |
|000021b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|000021d0| 66 20 28 6e 6f 74 20 73 | 75 63 63 65 73 73 29 20 |f (not s|uccess) |
|000021e0| 74 68 65 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002200| 20 20 20 20 20 20 20 20 | 20 53 6b 69 70 28 29 3b | | Skip();|
|00002210| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00002230| 6e 64 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd;. | |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00002250| 6c 73 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |lse. | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 53 6b 69 70 28 29 | 3b 0d 20 20 20 20 20 20 | Skip()|;. |
|00002280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002290| 20 20 65 6e 64 3b 0d 20 | 20 20 20 20 20 20 20 20 | end;. | |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|000022b0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000022c0| 20 20 20 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 | | begin. |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 73 75 63 63 65 73 | | succes|
|000022f0| 73 20 3a 3d 20 4d 6f 76 | 65 5f 66 6c 65 65 74 28 |s := Mov|e_fleet(|
|00002300| 61 6e 67 6c 65 29 3b 0d | 20 20 20 20 20 20 20 20 |angle);.| |
|00002310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002320| 20 20 20 69 66 20 28 6e | 6f 74 20 73 75 63 63 65 | if (n|ot succe|
|00002330| 73 73 29 20 74 68 65 6e | 0d 20 20 20 20 20 20 20 |ss) then|. |
|00002340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002350| 20 20 20 20 20 20 20 53 | 6b 69 70 28 29 3b 0d 20 | S|kip();. |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 20 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 20 | e|nd;. |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6e | | en|
|00002390| 64 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |d;. | e|
|000023a0| 6e 64 3b 0d 20 20 20 20 | 20 20 20 20 20 65 6c 73 |nd;. | els|
|000023b0| 65 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 |e. | be|
|000023c0| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |gin. | |
|000023d0| 20 20 20 2f 2f 20 4e 6f | 20 74 61 72 67 65 74 20 | // No| target |
|000023e0| 70 6c 61 6e 65 74 20 61 | 6e 64 20 6e 6f 20 74 61 |planet a|nd no ta|
|000023f0| 72 67 65 74 20 66 6c 65 | 65 74 2c 20 68 65 61 64 |rget fle|et, head|
|00002400| 20 74 6f 77 61 72 64 20 | 61 20 72 61 6e 64 6f 6d | toward |a random|
|00002410| 20 70 6f 69 6e 74 0d 20 | 20 20 20 20 20 20 20 20 | point. | |
|00002420| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 46 6c 65 | wh|ile (Fle|
|00002430| 65 74 5f 6d 70 28 6d 65 | 29 20 3e 20 30 29 20 64 |et_mp(me|) > 0) d|
|00002440| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o. | |
|00002450| 20 20 20 20 62 65 67 69 | 6e 0d 20 20 20 20 20 20 | begi|n. |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|00002470| 6e 67 6c 65 20 3a 3d 20 | 52 61 6e 64 6f 6d 28 36 |ngle := |Random(6|
|00002480| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00002490| 20 20 20 20 20 20 20 20 | 73 75 63 63 65 73 73 20 | |success |
|000024a0| 3a 3d 20 4d 6f 76 65 5f | 66 6c 65 65 74 28 61 6e |:= Move_|fleet(an|
|000024b0| 67 6c 65 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |gle);. | |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 6e | | if (n|
|000024d0| 6f 74 20 73 75 63 63 65 | 73 73 29 20 74 68 65 6e |ot succe|ss) then|
|000024e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000024f0| 20 20 20 20 20 20 20 20 | 20 53 6b 69 70 28 29 3b | | Skip();|
|00002500| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002510| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 20 20 20 20 | end;.| |
|00002520| 20 20 20 20 65 6e 64 3b | 0d 20 20 20 20 20 20 65 | end;|. e|
|00002530| 6e 64 3b 0d 65 6e 64 3b | 0d 0d 0d 00 00 06 e8 00 |nd;.end;|........|
|00002540| 01 00 00 00 00 00 01 00 | 03 00 00 00 00 00 54 00 |........|......T.|
|00002550| 06 00 10 00 00 74 00 00 | 00 00 65 00 00 00 00 00 |.....t..|..e.....|
|00002560| 06 00 10 00 02 6b f4 00 | 00 00 06 ff ff ff ff 00 |.....k..|........|
|00002570| 03 00 00 00 00 00 31 00 | 06 00 10 00 01 4e 1c 00 |......1.|.....N..|
|00002580| 05 00 10 00 01 fb 40 00 | 00 00 65 00 00 00 00 00 |......@.|..e.....|
|00002590| 03 00 00 00 00 00 05 00 | 08 00 00 00 00 00 34 00 |........|......4.|
|000025a0| 05 00 10 00 01 f5 80 00 | 03 00 00 00 00 00 36 00 |........|......6.|
|000025b0| 05 00 10 00 00 f5 80 00 | 03 00 00 00 00 00 36 00 |........|......6.|
|000025c0| 03 00 00 00 00 00 05 00 | 08 00 00 00 00 00 2f 00 |........|....../.|
|000025d0| 05 00 10 00 02 6b f8 00 | 00 00 65 00 00 00 00 00 |.....k..|..e.....|
|000025e0| 03 00 00 00 00 00 02 00 | 08 00 00 00 00 00 19 00 |........|........|
|000025f0| 05 00 10 00 01 00 72 00 | 06 00 10 00 02 43 80 00 |......r.|.....C..|
|00002600| 01 00 00 00 00 00 2f 00 | 05 00 10 00 00 00 00 00 |....../.|........|
|00002610| 03 00 00 00 00 00 34 00 | 05 00 10 00 00 3a 14 00 |......4.|.....:..|
|00002620| 03 00 00 00 00 00 35 00 | 05 00 10 00 01 ef 1c 00 |......5.|........|
|00002630| 03 00 00 00 00 00 34 00 | 05 00 10 00 01 c2 b0 00 |......4.|........|
|00002640| 03 00 00 00 00 00 35 00 | 03 00 00 00 00 00 78 00 |......5.|......x.|
|00002650| 05 00 10 00 00 0b a8 00 | 03 00 00 00 00 00 34 00 |........|......4.|
|00002660| 05 00 10 00 00 fb 40 00 | 03 00 00 00 00 00 35 00 |......@.|......5.|
|00002670| 05 00 10 00 02 6b f8 00 | 03 00 00 00 00 00 34 00 |.....k..|......4.|
|00002680| 05 00 10 00 02 c2 b0 00 | 03 00 00 00 00 00 35 00 |........|......5.|
|00002690| 03 00 00 00 00 00 78 00 | 03 00 00 00 00 00 01 00 |......x.|........|
|000026a0| 08 00 00 00 00 00 2f 00 | 05 00 10 00 01 00 05 00 |....../.|........|
|000026b0| 06 00 10 00 02 93 60 00 | 05 00 10 00 01 0c e0 00 |......`.|........|
|000026c0| 00 00 06 ff ff ff ff 00 | 03 00 00 00 00 00 32 00 |........|......2.|
|000026d0| 06 00 10 00 01 00 10 00 | 01 00 00 00 00 00 08 00 |........|........|
|000026e0| 05 00 10 00 02 6b f8 00 | 00 00 65 00 00 00 00 00 |.....k..|..e.....|
|000026f0| 03 00 00 00 00 00 05 00 | 08 00 00 00 00 00 66 00 |........|......f.|
|00002700| 05 00 10 00 00 82 a4 00 | 03 00 00 00 00 00 37 00 |........|......7.|
|00002710| 00 00 06 00 00 00 00 00 | 03 00 00 00 00 00 00 00 |........|........|
|00002720| 08 00 00 00 00 00 65 00 | 05 00 10 00 00 de 48 00 |......e.|......H.|
|00002730| 03 00 00 00 00 00 34 00 | 05 00 10 00 00 fb 40 00 |......4.|......@.|
|00002740| 03 00 00 00 00 00 35 00 | 05 00 10 00 02 fb 40 00 |......5.|......@.|
|00002750| 03 00 00 00 00 00 34 00 | 05 00 10 00 02 79 00 00 |......4.|.....y..|
|00002760| 03 00 00 00 00 00 35 00 | 03 00 00 00 00 00 79 00 |......5.|......y.|
|00002770| 06 00 d0 00 03 00 00 00 | 05 00 10 00 00 fb 40 00 |........|......@.|
|00002780| 03 00 00 00 00 00 34 00 | 05 00 10 00 00 fb 40 00 |......4.|......@.|
|00002790| 03 00 00 00 00 00 35 00 | 05 00 10 00 02 6b f8 00 |......5.|.....k..|
|000027a0| 03 00 00 00 00 00 34 00 | 05 00 10 00 02 6b f8 00 |......4.|.....k..|
|000027b0| 03 00 00 00 00 00 35 00 | 03 00 00 00 00 00 78 00 |......5.|......x.|
|000027c0| 06 00 d0 00 04 00 79 00 | 05 00 d0 00 04 0b a8 00 |......y.|........|
|000027d0| 00 00 06 00 00 00 01 00 | 03 00 00 00 00 00 02 00 |........|........|
|000027e0| 08 00 00 00 00 00 5d 00 | 05 00 d0 00 03 de 48 00 |......].|......H.|
|000027f0| 03 00 00 00 00 00 56 00 | 06 01 10 00 05 00 10 00 |......V.|........|
|00002800| 05 01 10 00 05 de 48 00 | 03 00 00 00 00 00 0e 00 |......H.|........|
|00002810| 08 00 00 00 00 00 5c 00 | 03 00 00 00 00 00 59 00 |......\.|......Y.|
|00002820| 01 00 00 00 00 00 64 00 | 05 00 d0 00 03 de 48 00 |......d.|......H.|
|00002830| 03 00 00 00 00 00 55 00 | 06 01 10 00 05 00 10 00 |......U.|........|
|00002840| 05 01 10 00 05 de 48 00 | 03 00 00 00 00 00 0e 00 |......H.|........|
|00002850| 08 00 00 00 00 00 64 00 | 03 00 00 00 00 00 59 00 |......d.|......Y.|
|00002860| 01 00 00 00 00 00 38 00 | 01 00 00 00 00 00 dc 00 |......8.|........|
|00002870| 00 00 65 00 00 00 00 00 | 06 00 30 00 07 00 38 00 |..e.....|..0...8.|
|00002880| 00 00 06 ff ff ff ff 00 | 03 00 00 00 00 00 d6 00 |........|........|
|00002890| 06 00 30 00 06 03 cd 00 | 05 00 30 00 06 fb 40 00 |..0.....|..0...@.|
|000028a0| 00 00 65 00 00 00 00 00 | 03 00 00 00 00 00 05 00 |..e.....|........|
|000028b0| 08 00 00 00 00 00 8d 00 | 05 00 30 00 06 07 7b 00 |........|..0...{.|
|000028c0| 03 00 00 00 00 00 d9 00 | 06 00 d0 00 08 6b f4 00 |........|.....k..|
|000028d0| 05 00 d0 00 08 6b f8 00 | 00 00 06 ff ff ff ff 00 |.....k..|........|
|000028e0| 03 00 00 00 00 00 02 00 | 08 00 00 00 00 00 79 00 |........|......y.|
|000028f0| 05 00 30 00 06 07 7b 00 | 06 00 30 00 07 fb 40 00 |..0...{.|..0...@.|
|00002900| 01 00 00 00 00 00 88 00 | 05 00 d0 00 08 0b a8 00 |........|........|
|00002910| 05 00 10 00 00 ef 1c 00 | 03 00 00 00 00 00 36 00 |........|......6.|
|00002920| 03 00 00 00 00 00 05 00 | 05 00 d0 00 08 6b f8 00 |........|.....k..|
|00002930| 00 00 06 00 00 00 64 00 | 03 00 00 00 00 00 05 00 |......d.|........|
|00002940| 03 00 00 00 00 00 0c 00 | 08 00 00 00 00 00 88 00 |........|........|
|00002950| 05 00 30 00 07 00 36 00 | 00 00 65 00 00 00 00 00 |..0...6.|..e.....|
|00002960| 03 00 00 00 00 00 02 00 | 08 00 00 00 00 00 88 00 |........|........|
|00002970| 05 00 30 00 06 f1 d8 00 | 06 00 30 00 07 0c e0 00 |..0.....|..0.....|
|00002980| 05 00 30 00 06 0c e0 00 | 00 00 06 ff ff ff ff 00 |..0.....|........|
|00002990| 03 00 00 00 00 00 d7 00 | 06 00 30 00 06 00 00 00 |........|..0.....|
|000029a0| 01 00 00 00 00 00 6b 00 | 05 00 30 00 07 ff ff 00 |......k.|..0.....|
|000029b0| 00 00 65 00 00 00 00 00 | 03 00 00 00 00 00 05 00 |..e.....|........|
|000029c0| 08 00 00 00 00 00 cc 00 | 05 00 10 00 00 83 90 00 |........|........|
|000029d0| 03 00 00 00 00 00 37 00 | 00 00 06 00 00 00 00 00 |......7.|........|
|000029e0| 03 00 00 00 00 00 00 00 | 08 00 00 00 00 00 cb 00 |........|........|
|000029f0| 05 00 10 00 00 ef 1c 00 | 03 00 00 00 00 00 34 00 |........|......4.|
|00002a00| 05 00 10 00 00 fb 40 00 | 03 00 00 00 00 00 35 00 |......@.|......5.|
|00002a10| 05 00 30 00 07 11 ef 00 | 03 00 00 00 00 00 df 00 |..0.....|........|
|00002a20| 05 00 30 00 07 65 61 00 | 03 00 00 00 00 00 e0 00 |..0..ea.|........|
|00002a30| 03 00 00 00 00 00 79 00 | 06 00 d0 00 03 93 60 00 |......y.|......`.|
|00002a40| 05 00 10 00 00 fb 40 00 | 03 00 00 00 00 00 34 00 |......@.|......4.|
|00002a50| 05 00 10 00 00 fb 40 00 | 03 00 00 00 00 00 35 00 |......@.|......5.|
|00002a60| 05 00 30 00 07 00 01 00 | 03 00 00 00 00 00 df 00 |..0.....|........|
|00002a70| 05 00 30 00 07 00 02 00 | 03 00 00 00 00 00 e0 00 |..0.....|........|
|00002a80| 03 00 00 00 00 00 78 00 | 06 00 d0 00 04 00 00 00 |......x.|........|
|00002a90| 05 00 d0 00 04 0b a8 00 | 00 00 06 00 00 00 01 00 |........|........|
|00002aa0| 03 00 00 00 00 00 02 00 | 08 00 00 00 00 00 c3 00 |........|........|
|00002ab0| 05 00 30 00 07 44 80 00 | 03 00 00 00 00 00 d9 00 |..0..D..|........|
|00002ac0| 05 00 10 00 00 44 80 00 | 03 00 00 00 00 00 36 00 |.....D..|......6.|
|00002ad0| 03 00 00 00 00 00 05 00 | 05 00 30 00 07 6b f8 00 |........|..0..k..|
|00002ae0| 03 00 00 00 00 00 d9 00 | 00 00 06 00 00 00 64 00 |........|......d.|
|00002af0| 03 00 00 00 00 00 05 00 | 03 00 00 00 00 00 0c 00 |........|........|
|00002b00| 08 00 00 00 00 00 c1 00 | 05 00 d0 00 03 00 00 00 |........|........|
|00002b10| 03 00 00 00 00 00 56 00 | 06 01 10 00 05 00 00 00 |......V.|........|
|00002b20| 05 01 10 00 05 00 00 00 | 03 00 00 00 00 00 0e 00 |........|........|
|00002b30| 08 00 00 00 00 00 c0 00 | 03 00 00 00 00 00 59 00 |........|......Y.|
|00002b40| 01 00 00 00 00 00 c2 00 | 03 00 00 00 00 00 59 00 |........|......Y.|
|00002b50| 01 00 00 00 00 00 ca 00 | 05 00 d0 00 03 0e c3 00 |........|........|
|00002b60| 03 00 00 00 00 00 55 00 | 06 01 10 00 05 00 06 00 |......U.|........|
|00002b70| 05 01 10 00 05 0e c3 00 | 03 00 00 00 00 00 0e 00 |........|........|
|00002b80| 08 00 00 00 00 00 ca 00 | 03 00 00 00 00 00 59 00 |........|......Y.|
|00002b90| 01 00 00 00 00 00 91 00 | 01 00 00 00 00 00 dc 00 |........|........|
|00002ba0| 05 00 10 00 00 6b f8 00 | 03 00 00 00 00 00 37 00 |.....k..|......7.|
|00002bb0| 00 00 06 00 00 00 00 00 | 03 00 00 00 00 00 00 00 |........|........|
|00002bc0| 08 00 00 00 00 00 dc 00 | 00 00 06 00 00 00 06 00 |........|........|
|00002bd0| 03 00 00 00 00 00 84 00 | 06 00 d0 00 03 93 60 00 |........|......`.|
|00002be0| 05 00 d0 00 03 ff ff 00 | 03 00 00 00 00 00 55 00 |........|......U.|
|00002bf0| 06 01 10 00 05 00 00 00 | 05 01 10 00 05 ff ff 00 |........|........|
|00002c00| 03 00 00 00 00 00 0e 00 | 08 00 00 00 00 00 db 00 |........|........|
|00002c10| 03 00 00 00 00 00 59 00 | 01 00 00 00 00 00 cc 00 |......Y.|........|
|00002c20| 09 00 00 00 00 00 00 00 | 00 01 ba 00 01 00 0f 00 |........|........|
|00002c30| 0f 00 11 00 11 00 12 00 | 12 00 12 00 13 00 13 00 |........|........|
|00002c40| 13 00 13 00 15 00 15 00 | 15 00 15 00 15 00 15 00 |........|........|
|00002c50| 17 00 17 00 17 00 17 00 | 18 00 18 00 19 00 1a 00 |........|........|
|00002c60| 1a 00 1a 00 1a 00 1b 00 | 1b 00 1b 00 1b 00 1b 00 |........|........|
|00002c70| 1c 00 1c 00 1c 00 1c 00 | 1d 00 1d 00 1d 00 1d 00 |........|........|
|00002c80| 1d 00 1d 00 1d 00 1e 00 | 1e 00 20 00 20 00 20 00 |........|.. . . .|
|00002c90| 20 00 21 00 22 00 22 00 | 22 00 22 00 25 00 25 00 | .!.".".|".".%.%.|
|00002ca0| 25 00 25 00 25 00 27 00 | 27 00 27 00 27 00 28 00 |%.%.%.'.|'.'.'.(.|
|00002cb0| 28 00 28 00 28 00 28 00 | 28 00 29 00 29 00 29 00 |(.(.(.(.|(.).).).|
|00002cc0| 29 00 2a 00 2a 00 2a 00 | 2a 00 2a 00 2a 00 2b 00 |).*.*.*.|*.*.*.+.|
|00002cd0| 2b 00 2b 00 2b 00 2e 00 | 2e 00 2e 00 2f 00 2f 00 |+.+.+...|...././.|
|00002ce0| 2f 00 30 00 32 00 34 00 | 34 00 34 00 35 00 35 00 |/.0.2.4.|4.4.5.5.|
|00002cf0| 35 00 36 00 38 00 3a 00 | 3d 00 3d 00 3e 00 3e 00 |5.6.8.:.|=.=.>.>.|
|00002d00| 3e 00 3f 00 3f 00 3f 00 | 3f 00 41 00 41 00 41 00 |>.?.?.?.|?.A.A.A.|
|00002d10| 42 00 42 00 42 00 42 00 | 45 00 45 00 47 00 47 00 |B.B.B.B.|E.E.G.G.|
|00002d20| 47 00 47 00 47 00 48 00 | 48 00 48 00 48 00 48 00 |G.G.G.H.|H.H.H.H.|
|00002d30| 4a 00 4a 00 4a 00 4a 00 | 4c 00 4c 00 4e 00 4e 00 |J.J.J.J.|L.L.N.N.|
|00002d40| 4e 00 4e 00 4f 00 50 00 | 50 00 50 00 50 00 53 00 |N.N.O.P.|P.P.P.S.|
|00002d50| 53 00 53 00 53 00 53 00 | 55 00 55 00 55 00 55 00 |S.S.S.S.|U.U.U.U.|
|00002d60| 56 00 56 00 56 00 56 00 | 56 00 56 00 57 00 57 00 |V.V.V.V.|V.V.W.W.|
|00002d70| 57 00 57 00 58 00 58 00 | 58 00 58 00 58 00 58 00 |W.W.X.X.|X.X.X.X.|
|00002d80| 59 00 59 00 59 00 59 00 | 5c 00 5c 00 5c 00 5c 00 |Y.Y.Y.Y.|\.\.\.\.|
|00002d90| 5c 00 5d 00 5d 00 5d 00 | 5d 00 5d 00 5d 00 5f 00 |\.].].].|].].]._.|
|00002da0| 5f 00 5f 00 60 00 60 00 | 60 00 61 00 63 00 64 00 |_._.`.`.|`.a.c.d.|
|00002db0| 66 00 68 00 68 00 68 00 | 69 00 69 00 69 00 6a 00 |f.h.h.h.|i.i.i.j.|
|00002dc0| 6c 00 6e 00 71 00 71 00 | 71 00 71 00 71 00 73 00 |l.n.q.q.|q.q.q.s.|
|00002dd0| 73 00 73 00 74 00 74 00 | 74 00 75 00 75 00 75 00 |s.s.t.t.|t.u.u.u.|
|00002de0| 76 00 77 00 7a 00 00 03 | cf 73 69 74 75 61 74 69 |v.w.z...|.situati|
|00002df0| 6f 6e 20 6f 72 62 69 74 | 61 6c 5f 64 65 70 6c 6f |on orbit|al_deplo|
|00002e00| 79 6d 65 6e 74 0d 76 61 | 72 73 0d 20 20 20 73 65 |yment.va|rs. se|
|00002e10| 6e 64 20 3a 20 69 6e 74 | 65 67 65 72 3b 0d 20 20 |nd : int|eger;. |
|00002e20| 20 74 61 72 67 65 74 20 | 3a 20 69 6e 74 65 67 65 | target |: intege|
|00002e30| 72 3b 0d 20 20 20 73 75 | 63 63 65 73 73 20 3a 20 |r;. su|ccess : |
|00002e40| 62 6f 6f 6c 65 61 6e 3b | 0d 0d 66 75 6e 63 74 69 |boolean;|..functi|
|00002e50| 6f 6e 20 6d 61 78 5f 73 | 65 6e 64 5f 64 6f 77 6e |on max_s|end_down|
|00002e60| 28 29 20 3a 20 69 6e 74 | 65 67 65 72 3b 0d 76 61 |() : int|eger;.va|
|00002e70| 72 73 0d 20 20 20 74 6f | 74 61 6c 20 3a 20 69 6e |rs. to|tal : in|
|00002e80| 74 65 67 65 72 3b 0d 20 | 20 20 69 20 3a 20 69 6e |teger;. | i : in|
|00002e90| 74 65 67 65 72 3b 0d 20 | 20 20 0d 62 65 67 69 6e |teger;. | .begin|
|00002ea0| 0d 20 20 20 74 6f 74 61 | 6c 20 3a 3d 20 30 3b 0d |. tota|l := 0;.|
|00002eb0| 20 20 20 69 20 3a 3d 20 | 31 3b 20 20 20 20 20 20 | i := |1; |
|00002ec0| 20 20 20 20 20 20 20 20 | 2f 2f 20 74 72 6f 6f 70 | |// troop|
|00002ed0| 20 74 79 70 65 20 30 20 | 69 73 20 63 6f 6c 6f 6e | type 0 |is colon|
|00002ee0| 69 73 74 20 28 77 68 69 | 63 68 20 63 61 6e 27 74 |ist (whi|ch can't|
|00002ef0| 20 62 65 20 73 65 6e 74 | 20 64 6f 77 6e 29 0d 20 | be sent| down). |
|00002f00| 20 20 77 68 69 6c 65 20 | 28 69 20 3c 20 38 29 20 | while |(i < 8) |
|00002f10| 64 6f 0d 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 |do. | begin. |
|00002f20| 20 20 20 20 20 20 20 20 | 74 6f 74 61 6c 20 3a 3d | |total :=|
|00002f30| 20 74 6f 74 61 6c 20 2b | 20 4e 75 6d 5f 75 6e 69 | total +| Num_uni|
|00002f40| 74 5f 74 79 70 65 5f 66 | 6c 65 65 74 28 69 29 3b |t_type_f|leet(i);|
|00002f50| 0d 20 20 20 20 20 20 20 | 20 20 69 20 3a 3d 20 69 |. | i := i|
|00002f60| 20 2b 20 31 3b 0d 20 20 | 20 20 20 20 65 6e 64 3b | + 1;. | end;|
|00002f70| 0d 20 20 20 69 66 20 28 | 74 6f 74 61 6c 20 3e 20 |. if (|total > |
|00002f80| 38 29 20 74 68 65 6e 0d | 20 20 20 20 20 20 74 6f |8) then.| to|
|00002f90| 74 61 6c 20 3a 3d 20 38 | 3b 0d 20 20 20 72 65 74 |tal := 8|;. ret|
|00002fa0| 75 72 6e 20 74 6f 74 61 | 6c 3b 0d 65 6e 64 3b 0d |urn tota|l;.end;.|
|00002fb0| 0d 66 75 6e 63 74 69 6f | 6e 20 64 65 70 6c 6f 79 |.functio|n deploy|
|00002fc0| 5f 72 61 6e 64 6f 6d 5f | 73 71 75 61 64 28 6e 75 |_random_|squad(nu|
|00002fd0| 6d 62 65 72 20 3a 20 69 | 6e 74 65 67 65 72 29 20 |mber : i|nteger) |
|00002fe0| 3a 20 6e 6f 6e 65 3b 0d | 76 61 72 73 0d 20 20 20 |: none;.|vars. |
|00002ff0| 73 75 63 63 65 73 73 20 | 3a 20 62 6f 6f 6c 65 61 |success |: boolea|
|00003000| 6e 3b 0d 20 20 20 74 79 | 70 65 20 3a 20 69 6e 74 |n;. ty|pe : int|
|00003010| 65 67 65 72 3b 0d 20 20 | 20 0d 62 65 67 69 6e 0d |eger;. | .begin.|
|00003020| 20 20 20 77 68 69 6c 65 | 20 28 6e 75 6d 62 65 72 | while| (number|
|00003030| 20 3e 20 30 29 20 64 6f | 0d 20 20 20 20 20 20 62 | > 0) do|. b|
|00003040| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 20 74 79 |egin. | ty|
|00003050| 70 65 20 3a 3d 20 52 61 | 6e 64 6f 6d 28 37 29 20 |pe := Ra|ndom(7) |
|00003060| 2b 20 31 3b 0d 20 20 20 | 20 20 20 20 20 20 73 75 |+ 1;. | su|
|00003070| 63 63 65 73 73 20 3a 3d | 20 41 64 64 5f 75 6e 69 |ccess :=| Add_uni|
|00003080| 74 5f 74 6f 5f 64 72 6f | 70 5f 73 68 69 70 28 74 |t_to_dro|p_ship(t|
|00003090| 79 70 65 29 3b 0d 20 20 | 20 20 20 20 20 20 20 69 |ype);. | i|
|000030a0| 66 20 73 75 63 63 65 73 | 73 20 74 68 65 6e 0d 20 |f succes|s then. |
|000030b0| 20 20 20 20 20 20 20 20 | 20 20 20 6e 75 6d 62 65 | | numbe|
|000030c0| 72 20 3a 3d 20 6e 75 6d | 62 65 72 20 2d 20 31 3b |r := num|ber - 1;|
|000030d0| 0d 20 20 20 20 20 20 65 | 6e 64 3b 0d 65 6e 64 3b |. e|nd;.end;|
|000030e0| 0d 0d 62 65 67 69 6e 0d | 20 20 20 2f 2f 20 66 69 |..begin.| // fi|
|000030f0| 72 73 74 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 |rst dete|rmine th|
|00003100| 65 20 74 6f 74 61 6c 20 | 6e 75 6d 62 65 72 20 6f |e total |number o|
|00003110| 66 20 74 72 6f 6f 70 73 | 20 6f 6e 20 62 6f 61 72 |f troops| on boar|
|00003120| 64 20 74 68 65 20 66 6c | 65 65 74 0d 20 20 20 73 |d the fl|eet. s|
|00003130| 65 6e 64 20 3a 3d 20 52 | 61 6e 64 6f 6d 28 6d 61 |end := R|andom(ma|
|00003140| 78 5f 73 65 6e 64 5f 64 | 6f 77 6e 28 29 29 20 2b |x_send_d|own()) +|
|00003150| 20 31 3b 0d 20 20 20 64 | 65 70 6c 6f 79 5f 72 61 | 1;. d|eploy_ra|
|00003160| 6e 64 6f 6d 5f 73 71 75 | 61 64 28 73 65 6e 64 29 |ndom_squ|ad(send)|
|00003170| 3b 0d 20 20 20 74 61 72 | 67 65 74 20 3a 3d 20 52 |;. tar|get := R|
|00003180| 61 6e 64 6f 6d 28 31 32 | 37 29 3b 0d 20 20 20 73 |andom(12|7);. s|
|00003190| 75 63 63 65 73 73 20 3a | 3d 20 44 65 70 6c 6f 79 |uccess :|= Deploy|
|000031a0| 5f 64 72 6f 70 5f 73 68 | 69 70 28 74 61 72 67 65 |_drop_sh|ip(targe|
|000031b0| 74 29 3b 0d 65 6e 64 3b | 00 00 01 e8 00 01 00 00 |t);.end;|........|
|000031c0| 00 00 00 2f 00 00 00 06 | 00 00 00 00 00 06 00 df |.../....|........|
|000031d0| 00 00 ff ff 00 00 00 06 | 00 00 00 01 00 06 00 df |........|........|
|000031e0| 00 01 6b f4 00 05 00 df | 00 01 6e 64 00 00 00 06 |..k.....|..nd....|
|000031f0| 00 00 00 08 00 03 00 00 | 00 00 00 01 00 08 00 00 |........|........|
|00003200| 00 00 00 13 00 05 00 df | 00 00 0b a8 00 05 00 df |........|........|
|00003210| 00 01 00 06 00 03 00 00 | 00 00 00 9e 00 03 00 00 |........|........|
|00003220| 00 00 00 06 00 06 00 df | 00 00 b6 ac 00 05 00 df |........|........|
|00003230| 00 01 01 dc 00 00 00 06 | 00 00 00 01 00 03 00 00 |........|........|
|00003240| 00 00 00 06 00 06 00 df | 00 01 a4 3c 00 01 00 00 |........|...<....|
|00003250| 00 00 00 05 00 05 00 df | 00 00 00 06 00 00 00 06 |........|........|
|00003260| 00 00 00 08 00 03 00 00 | 00 00 00 00 00 08 00 00 |........|........|
|00003270| 00 00 00 19 00 00 00 06 | 00 00 00 08 00 06 00 df |........|........|
|00003280| 00 00 02 42 00 05 00 df | 00 00 ce 80 00 04 00 06 |...B....|........|
|00003290| 00 00 00 00 00 05 00 df | ff fd 6f 74 00 00 00 06 |........|..ot....|
|000032a0| 00 00 00 00 00 03 00 00 | 00 00 00 00 00 08 00 00 |........|........|
|000032b0| 00 00 00 2e 00 00 00 06 | 00 00 00 07 00 03 00 00 |........|........|
|000032c0| 00 00 00 84 00 00 00 06 | 00 00 00 01 00 03 00 00 |........|........|
|000032d0| 00 00 00 06 00 06 00 df | 00 01 01 25 00 05 00 df |........|...%....|
|000032e0| 00 01 0b a8 00 03 00 00 | 00 00 00 a1 00 06 01 1f |........|........|
|000032f0| 00 00 00 11 00 05 01 1f | 00 00 00 a1 00 08 00 00 |........|........|
|00003300| 00 00 00 2d 00 05 00 df | ff fd 00 00 00 00 00 06 |...-....|........|
|00003310| 00 00 00 01 00 03 00 00 | 00 00 00 07 00 06 00 df |........|........|
|00003320| ff fd 00 21 00 01 00 00 | 00 00 00 1b 00 04 00 64 |...!....|.......d|
|00003330| 00 00 00 01 00 02 00 02 | 00 00 00 01 00 03 00 00 |........|........|
|00003340| 00 00 00 84 00 00 00 06 | 00 00 00 01 00 03 00 00 |........|........|
|00003350| 00 00 00 06 00 06 00 c6 | 00 00 e0 80 00 05 00 c6 |........|........|
|00003360| 00 00 00 f8 00 02 00 02 | 00 00 00 1b 00 00 00 06 |........|........|
|00003370| 00 00 00 7f 00 03 00 00 | 00 00 00 84 00 06 00 c6 |........|........|
|00003380| 00 01 97 a0 00 05 00 c6 | 00 01 e1 6c 00 03 00 00 |........|...l....|
|00003390| 00 00 00 a2 00 06 01 06 | 00 02 02 4c 00 09 00 00 |........|...L....|
|000033a0| 00 00 00 00 00 00 00 7a | 00 01 00 0d 00 0d 00 0e |.......z|........|
|000033b0| 00 0e 00 0f 00 0f 00 0f | 00 0f 00 11 00 11 00 11 |........|........|
|000033c0| 00 11 00 11 00 12 00 12 | 00 12 00 12 00 13 00 14 |........|........|
|000033d0| 00 14 00 14 00 14 00 15 | 00 15 00 16 00 16 00 1f |........|........|
|000033e0| 00 1f 00 1f 00 1f 00 21 | 00 21 00 21 00 21 00 21 |.......!|.!.!.!.!|
|000033f0| 00 22 00 22 00 22 00 23 | 00 23 00 24 00 24 00 24 |.".".".#|.#.$.$.$|
|00003400| 00 24 00 25 00 26 00 2a | 00 2a 00 2a 00 2a 00 2a |.$.%.&.*|.*.*.*.*|
|00003410| 00 2b 00 2b 00 2c 00 2c | 00 2c 00 2d 00 2d 00 2d |.+.+.,.,|.,.-.-.-|
|00003420| 00 2e 00 00 03 01 73 69 | 74 75 61 74 69 6f 6e 20 |......si|tuation |
|00003430| 67 72 6f 75 6e 64 5f 75 | 6e 69 74 0d 76 61 72 73 |ground_u|nit.vars|
|00003440| 0d 20 20 20 6d 65 20 3a | 20 67 72 6f 75 6e 64 3b |. me :| ground;|
|00003450| 0d 20 20 20 6e 75 6d 20 | 3a 20 69 6e 74 65 67 65 |. num |: intege|
|00003460| 72 3b 0d 20 20 20 65 6e | 65 6d 79 20 3a 20 67 72 |r;. en|emy : gr|
|00003470| 6f 75 6e 64 3b 0d 20 20 | 20 74 61 72 67 65 74 20 |ound;. | target |
|00003480| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 20 20 20 73 75 |: intege|r;. su|
|00003490| 63 63 65 73 73 20 3a 20 | 62 6f 6f 6c 65 61 6e 3b |ccess : |boolean;|
|000034a0| 0d 20 20 20 0d 62 65 67 | 69 6e 0d 20 20 20 2f 2f |. .beg|in. //|
|000034b0| 20 4a 75 73 74 20 70 69 | 63 6b 20 61 20 72 61 6e | Just pi|ck a ran|
|000034c0| 64 6f 6d 20 65 6e 65 6d | 79 20 75 6e 69 74 20 61 |dom enem|y unit a|
|000034d0| 6e 64 20 61 74 74 61 63 | 6b 0d 20 20 20 6d 65 20 |nd attac|k. me |
|000034e0| 3a 3d 20 54 68 69 73 5f | 67 72 6f 75 6e 64 28 29 |:= This_|ground()|
|000034f0| 3b 0d 20 20 20 2f 2f 20 | 43 61 6c 63 75 6c 61 74 |;. // |Calculat|
|00003500| 65 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e the nu|mber of |
|00003510| 67 72 6f 75 6e 64 20 75 | 6e 69 74 73 0d 20 20 20 |ground u|nits. |
|00003520| 6e 75 6d 20 3a 3d 20 30 | 3b 0d 20 20 20 65 6e 65 |num := 0|;. ene|
|00003530| 6d 79 20 3a 3d 20 46 69 | 72 73 74 5f 67 72 6f 75 |my := Fi|rst_grou|
|00003540| 6e 64 28 66 61 6c 73 65 | 29 3b 0d 20 20 20 77 68 |nd(false|);. wh|
|00003550| 69 6c 65 20 28 65 6e 65 | 6d 79 20 3c 3e 20 6e 69 |ile (ene|my <> ni|
|00003560| 6c 29 20 64 6f 0d 20 20 | 20 20 20 20 62 65 67 69 |l) do. | begi|
|00003570| 6e 0d 20 20 20 20 20 20 | 20 20 20 6e 75 6d 20 3a |n. | num :|
|00003580| 3d 20 6e 75 6d 20 2b 20 | 31 3b 0d 20 20 20 20 20 |= num + |1;. |
|00003590| 20 20 20 20 65 6e 65 6d | 79 20 3a 3d 20 4e 65 78 | enem|y := Nex|
|000035a0| 74 5f 67 72 6f 75 6e 64 | 28 65 6e 65 6d 79 29 3b |t_ground|(enemy);|
|000035b0| 0d 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 69 |. e|nd;. i|
|000035c0| 66 20 6e 75 6d 20 3e 20 | 30 20 74 68 65 6e 20 20 |f num > |0 then |
|000035d0| 20 20 20 20 20 20 20 2f | 2f 20 4f 6e 6c 79 20 70 | /|/ Only p|
|000035e0| 69 63 6b 20 61 20 74 61 | 72 67 65 74 20 69 66 20 |ick a ta|rget if |
|000035f0| 74 68 65 72 65 20 61 72 | 65 20 61 6e 79 0d 20 20 |there ar|e any. |
|00003600| 20 20 20 20 62 65 67 69 | 6e 0d 20 20 20 20 20 20 | begi|n. |
|00003610| 20 20 20 74 61 72 67 65 | 74 20 3a 3d 20 52 61 6e | targe|t := Ran|
|00003620| 64 6f 6d 28 6e 75 6d 29 | 3b 0d 20 20 20 20 20 20 |dom(num)|;. |
|00003630| 20 20 20 65 6e 65 6d 79 | 20 3a 3d 20 46 69 72 73 | enemy| := Firs|
|00003640| 74 5f 67 72 6f 75 6e 64 | 28 66 61 6c 73 65 29 3b |t_ground|(false);|
|00003650| 0d 20 20 20 20 20 20 20 | 20 20 77 68 69 6c 65 20 |. | while |
|00003660| 28 74 61 72 67 65 74 20 | 3c 3e 20 30 29 20 64 6f |(target |<> 0) do|
|00003670| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 62 65 67 |. | beg|
|00003680| 69 6e 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |in. | |
|00003690| 20 20 74 61 72 67 65 74 | 20 3a 3d 20 74 61 72 67 | target| := targ|
|000036a0| 65 74 20 2d 20 31 3b 0d | 20 20 20 20 20 20 20 20 |et - 1;.| |
|000036b0| 20 20 20 20 20 20 20 65 | 6e 65 6d 79 20 3a 3d 20 | e|nemy := |
|000036c0| 4e 65 78 74 5f 67 72 6f | 75 6e 64 28 65 6e 65 6d |Next_gro|und(enem|
|000036d0| 79 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |y);. | |
|000036e0| 65 6e 64 3b 0d 20 20 20 | 20 20 20 20 20 20 73 75 |end;. | su|
|000036f0| 63 63 65 73 73 20 3a 3d | 20 53 65 74 5f 67 72 6f |ccess :=| Set_gro|
|00003700| 75 6e 64 5f 74 61 72 67 | 65 74 28 6d 65 2c 20 65 |und_targ|et(me, e|
|00003710| 6e 65 6d 79 29 3b 0d 20 | 20 20 20 20 20 65 6e 64 |nemy);. | end|
|00003720| 3b 0d 65 6e 64 3b 0d 00 | 00 01 78 00 01 00 00 00 |;.end;..|..x.....|
|00003730| 00 00 01 00 03 00 00 00 | 00 00 c7 00 06 00 ae 00 |........|........|
|00003740| 00 61 74 00 00 00 06 00 | 00 00 00 00 06 00 ce 00 |.at.....|........|
|00003750| 01 6b f4 00 00 00 08 00 | 00 00 00 00 03 00 00 00 |.k......|........|
|00003760| 00 00 c8 00 06 00 ae 00 | 02 4e 1c 00 05 00 ae 00 |........|.N......|
|00003770| 02 f5 80 00 00 00 65 00 | 00 00 00 00 03 00 00 00 |......e.|........|
|00003780| 00 00 05 00 08 00 00 00 | 00 00 14 00 05 00 ce 00 |........|........|
|00003790| 01 6b f8 00 00 00 06 00 | 00 00 01 00 03 00 00 00 |.k......|........|
|000037a0| 00 00 06 00 06 00 ce 00 | 01 a4 3c 00 05 00 ae 00 |........|..<.....|
|000037b0| 02 6b f8 00 03 00 00 00 | 00 00 c9 00 06 00 ae 00 |.k......|........|
|000037c0| 02 00 10 00 01 00 00 00 | 00 00 08 00 05 00 ce 00 |........|........|
|000037d0| 01 00 05 00 00 00 06 00 | 00 00 00 00 03 00 00 00 |........|........|
|000037e0| 00 00 00 00 08 00 00 00 | 00 00 2e 00 05 00 ce 00 |........|........|
|000037f0| 01 00 05 00 03 00 00 00 | 00 00 84 00 06 00 ce 00 |........|........|
|00003800| 03 00 00 00 00 00 08 00 | 00 00 00 00 03 00 00 00 |........|........|
|00003810| 00 00 c8 00 06 00 ae 00 | 02 b6 ac 00 05 00 ce 00 |........|........|
|00003820| 03 f5 80 00 00 00 06 00 | 00 00 00 00 03 00 00 00 |........|........|
|00003830| 00 00 05 00 08 00 00 00 | 00 00 2a 00 05 00 ce 00 |........|..*.....|
|00003840| 03 6b f8 00 00 00 06 00 | 00 00 01 00 03 00 00 00 |.k......|........|
|00003850| 00 00 07 00 06 00 ce 00 | 03 00 00 00 05 00 ae 00 |........|........|
|00003860| 02 e7 30 00 03 00 00 00 | 00 00 c9 00 06 00 ae 00 |..0.....|........|
|00003870| 02 6b f4 00 01 00 00 00 | 00 00 1e 00 05 00 ae 00 |.k......|........|
|00003880| 00 00 00 00 05 00 ae 00 | 02 00 00 00 03 00 00 00 |........|........|
|00003890| 00 00 cb 00 06 01 0e 00 | 04 00 10 00 09 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 5e 00 | 01 00 0b 00 0b 00 0d 00 |......^.|........|
|000038b0| 0d 00 0e 00 0e 00 0e 00 | 0f 00 0f 00 0f 00 0f 00 |........|........|
|000038c0| 11 00 11 00 11 00 11 00 | 12 00 12 00 12 00 13 00 |........|........|
|000038d0| 14 00 14 00 14 00 14 00 | 16 00 16 00 16 00 17 00 |........|........|
|000038e0| 17 00 17 00 18 00 18 00 | 18 00 18 00 1a 00 1a 00 |........|........|
|000038f0| 1a 00 1a 00 1b 00 1b 00 | 1b 00 1c 00 1d 00 1d 00 |........|........|
|00003900| 1d 00 1d 00 1f 00 00 08 | 99 73 69 74 75 61 74 69 |........|.situati|
|00003910| 6f 6e 20 6f 72 62 69 74 | 61 6c 5f 73 71 75 61 64 |on orbit|al_squad|
|00003920| 0d 76 61 72 73 0d 20 20 | 20 6d 65 20 3a 20 73 71 |.vars. | me : sq|
|00003930| 75 61 64 3b 0d 20 20 20 | 6d 79 5f 72 61 63 65 20 |uad;. |my_race |
|00003940| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 20 20 20 6d 79 |: intege|r;. my|
|00003950| 5f 6c 6f 63 61 74 69 6f | 6e 20 3a 20 69 6e 74 65 |_locatio|n : inte|
|00003960| 67 65 72 3b 0d 20 20 20 | 74 61 72 67 65 74 20 3a |ger;. |target :|
|00003970| 20 69 6e 74 65 67 65 72 | 3b 0d 20 20 20 66 6f 63 | integer|;. foc|
|00003980| 75 73 20 3a 20 73 71 75 | 61 64 3b 0d 20 20 20 6c |us : squ|ad;. l|
|00003990| 6f 63 20 3a 20 69 6e 74 | 65 67 65 72 3b 0d 20 20 |oc : int|eger;. |
|000039a0| 20 73 75 63 63 65 73 73 | 20 3a 20 62 6f 6f 6c 65 | success| : boole|
|000039b0| 61 6e 3b 0d 20 20 20 70 | 20 3a 20 70 6c 61 6e 65 |an;. p| : plane|
|000039c0| 74 3b 0d 20 20 20 63 5f | 73 74 72 75 63 74 20 3a |t;. c_|struct :|
|000039d0| 20 73 74 72 75 63 74 75 | 72 65 3b 0d 20 20 20 62 | structu|re;. b|
|000039e0| 5f 73 74 72 75 63 74 20 | 3a 20 73 74 72 75 63 74 |_struct |: struct|
|000039f0| 75 72 65 3b 0d 0d 62 65 | 67 69 6e 0d 20 20 20 2f |ure;..be|gin. /|
|00003a00| 2f 20 46 69 6e 64 20 74 | 68 65 20 6e 65 61 72 65 |/ Find t|he neare|
|00003a10| 73 74 20 65 6e 65 6d 79 | 20 73 71 75 61 64 20 61 |st enemy| squad a|
|00003a20| 6e 64 20 6d 6f 76 65 20 | 74 6f 77 61 72 64 20 69 |nd move |toward i|
|00003a30| 74 0d 20 20 20 6d 65 20 | 3a 3d 20 54 68 69 73 5f |t. me |:= This_|
|00003a40| 73 71 75 61 64 28 29 3b | 0d 20 20 20 6d 79 5f 72 |squad();|. my_r|
|00003a50| 61 63 65 20 3a 3d 20 53 | 71 75 61 64 5f 72 61 63 |ace := S|quad_rac|
|00003a60| 65 28 6d 65 29 3b 0d 20 | 20 20 6d 79 5f 6c 6f 63 |e(me);. | my_loc|
|00003a70| 61 74 69 6f 6e 20 3a 3d | 20 53 71 75 61 64 5f 68 |ation :=| Squad_h|
|00003a80| 65 78 28 6d 65 29 3b 0d | 20 20 20 74 61 72 67 65 |ex(me);.| targe|
|00003a90| 74 20 3a 3d 20 2d 31 3b | 0d 20 20 20 66 6f 63 75 |t := -1;|. focu|
|00003aa0| 73 20 3a 3d 20 46 69 72 | 73 74 5f 73 71 75 61 64 |s := Fir|st_squad|
|00003ab0| 28 2d 31 29 3b 0d 20 20 | 20 77 68 69 6c 65 20 28 |(-1);. | while (|
|00003ac0| 66 6f 63 75 73 20 3c 3e | 20 6e 69 6c 29 20 64 6f |focus <>| nil) do|
|00003ad0| 0d 20 20 20 20 20 20 62 | 65 67 69 6e 0d 20 20 20 |. b|egin. |
|00003ae0| 20 20 20 20 20 20 69 66 | 20 28 53 71 75 61 64 5f | if| (Squad_|
|00003af0| 72 61 63 65 28 66 6f 63 | 75 73 29 20 3c 3e 20 6d |race(foc|us) <> m|
|00003b00| 79 5f 72 61 63 65 29 20 | 74 68 65 6e 0d 20 20 20 |y_race) |then. |
|00003b10| 20 20 20 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 | | begin. |
|00003b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 6f | | lo|
|00003b30| 63 20 3a 3d 20 53 71 75 | 61 64 5f 68 65 78 28 66 |c := Squ|ad_hex(f|
|00003b40| 6f 63 75 73 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |ocus);. | |
|00003b50| 20 20 20 20 20 20 69 66 | 20 28 74 61 72 67 65 74 | if| (target|
|00003b60| 20 3d 20 2d 31 29 20 74 | 68 65 6e 0d 20 20 20 20 | = -1) t|hen. |
|00003b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 | | be|
|00003b80| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |gin. | |
|00003b90| 20 20 20 20 20 20 20 20 | 20 74 61 72 67 65 74 20 | | target |
|00003ba0| 3a 3d 20 6c 6f 63 3b 0d | 20 20 20 20 20 20 20 20 |:= loc;.| |
|00003bb0| 20 20 20 20 20 20 20 20 | 20 20 65 6e 64 3b 0d 20 | | end;. |
|00003bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el|
|00003bd0| 73 65 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |se. | |
|00003be0| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00003bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c00| 69 66 20 28 50 6c 61 6e | 65 74 5f 64 69 73 74 61 |if (Plan|et_dista|
|00003c10| 6e 63 65 28 6d 79 5f 6c | 6f 63 61 74 69 6f 6e 2c |nce(my_l|ocation,|
|00003c20| 20 6c 6f 63 29 20 3c 0d | 20 20 20 20 20 20 20 20 | loc) <.| |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c40| 20 50 6c 61 6e 65 74 5f | 64 69 73 74 61 6e 63 65 | Planet_|distance|
|00003c50| 28 6d 79 5f 6c 6f 63 61 | 74 69 6f 6e 2c 20 74 61 |(my_loca|tion, ta|
|00003c60| 72 67 65 74 29 29 20 74 | 68 65 6e 0d 20 20 20 20 |rget)) t|hen. |
|00003c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c80| 20 20 20 20 74 61 72 67 | 65 74 20 3a 3d 20 6c 6f | targ|et := lo|
|00003c90| 63 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c;. | |
|00003ca0| 20 20 20 20 20 65 6e 64 | 3b 0d 20 20 20 20 20 20 | end|;. |
|00003cb0| 20 20 20 20 20 20 65 6e | 64 3b 0d 20 20 20 20 20 | en|d;. |
|00003cc0| 20 20 20 20 66 6f 63 75 | 73 20 3a 3d 20 4e 65 78 | focu|s := Nex|
|00003cd0| 74 5f 73 71 75 61 64 28 | 66 6f 63 75 73 2c 20 2d |t_squad(|focus, -|
|00003ce0| 31 29 3b 0d 20 20 20 20 | 20 20 65 6e 64 3b 0d 20 |1);. | end;. |
|00003cf0| 20 20 69 66 20 28 74 61 | 72 67 65 74 20 3d 20 2d | if (ta|rget = -|
|00003d00| 31 29 20 74 68 65 6e 0d | 20 20 20 20 20 20 62 65 |1) then.| be|
|00003d10| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 2f 2f 20 |gin. | // |
|00003d20| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 73 |if there| is no s|
|00003d30| 71 75 61 64 2c 20 74 68 | 65 6e 20 6d 6f 76 65 20 |quad, th|en move |
|00003d40| 74 6f 77 61 72 64 20 74 | 68 65 20 6e 65 61 72 65 |toward t|he neare|
|00003d50| 73 74 20 73 74 72 75 63 | 74 75 72 65 0d 20 20 20 |st struc|ture. |
|00003d60| 20 20 20 20 20 20 70 20 | 3a 3d 20 54 68 69 73 5f | p |:= This_|
|00003d70| 70 6c 61 6e 65 74 28 29 | 3b 0d 20 20 20 20 20 20 |planet()|;. |
|00003d80| 20 20 20 62 5f 73 74 72 | 75 63 74 20 3a 3d 20 46 | b_str|uct := F|
|00003d90| 69 72 73 74 5f 73 74 72 | 75 63 74 75 72 65 28 70 |irst_str|ucture(p|
|00003da0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 69 66 20 28 |);. | if (|
|00003db0| 62 5f 73 74 72 75 63 74 | 20 3d 20 6e 69 6c 29 20 |b_struct| = nil) |
|00003dc0| 74 68 65 6e 20 20 20 20 | 20 20 20 20 20 20 20 20 |then | |
|00003dd0| 2f 2f 20 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |// If th|ere are |
|00003de0| 6e 6f 20 73 74 72 75 63 | 74 75 72 65 73 20 74 68 |no struc|tures th|
|00003df0| 65 6e 20 61 62 6f 72 74 | 0d 20 20 20 20 20 20 20 |en abort|. |
|00003e00| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00003e10| 20 20 20 20 20 20 20 20 | 20 20 73 75 63 63 65 73 | | succes|
|00003e20| 73 20 3a 3d 20 4d 6f 76 | 65 5f 73 71 75 61 64 28 |s := Mov|e_squad(|
|00003e30| 6d 79 5f 6c 6f 63 61 74 | 69 6f 6e 29 3b 0d 20 20 |my_locat|ion);. |
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 78 69 | | exi|
|00003e50| 74 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |t;. | e|
|00003e60| 6e 64 3b 0d 20 20 20 20 | 20 20 20 20 20 63 5f 73 |nd;. | c_s|
|00003e70| 74 72 75 63 74 20 3a 3d | 20 4e 65 78 74 5f 73 74 |truct :=| Next_st|
|00003e80| 72 75 63 74 75 72 65 28 | 70 2c 20 62 5f 73 74 72 |ructure(|p, b_str|
|00003e90| 75 63 74 29 3b 0d 20 20 | 20 20 20 20 20 20 20 77 |uct);. | w|
|00003ea0| 68 69 6c 65 20 28 63 5f | 73 74 72 75 63 74 20 3c |hile (c_|struct <|
|00003eb0| 3e 20 6e 69 6c 29 20 64 | 6f 0d 20 20 20 20 20 20 |> nil) d|o. |
|00003ec0| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 20 20 20 20 | be|gin. |
|00003ed0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 50 | | if (P|
|00003ee0| 6c 61 6e 65 74 5f 64 69 | 73 74 61 6e 63 65 28 6d |lanet_di|stance(m|
|00003ef0| 79 5f 6c 6f 63 61 74 69 | 6f 6e 2c 20 53 74 72 75 |y_locati|on, Stru|
|00003f00| 63 74 75 72 65 5f 68 65 | 78 28 70 2c 20 63 5f 73 |cture_he|x(p, c_s|
|00003f10| 74 72 75 63 74 29 29 20 | 3c 0d 20 20 20 20 20 20 |truct)) |<. |
|00003f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 6c 61 | | Pla|
|00003f30| 6e 65 74 5f 64 69 73 74 | 61 6e 63 65 28 6d 79 5f |net_dist|ance(my_|
|00003f40| 6c 6f 63 61 74 69 6f 6e | 2c 20 53 74 72 75 63 74 |location|, Struct|
|00003f50| 75 72 65 5f 68 65 78 28 | 70 2c 20 62 5f 73 74 72 |ure_hex(|p, b_str|
|00003f60| 75 63 74 29 29 29 20 74 | 68 65 6e 0d 20 20 20 20 |uct))) t|hen. |
|00003f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 5f | | b_|
|00003f80| 73 74 72 75 63 74 20 3a | 3d 20 63 5f 73 74 72 75 |struct :|= c_stru|
|00003f90| 63 74 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ct;. | |
|00003fa0| 20 20 20 63 5f 73 74 72 | 75 63 74 20 3a 3d 20 4e | c_str|uct := N|
|00003fb0| 65 78 74 5f 73 74 72 75 | 63 74 75 72 65 28 70 2c |ext_stru|cture(p,|
|00003fc0| 20 63 5f 73 74 72 75 63 | 74 29 3b 0d 20 20 20 20 | c_struc|t);. |
|00003fd0| 20 20 20 20 20 20 20 20 | 65 6e 64 3b 0d 20 20 20 | |end;. |
|00003fe0| 20 20 20 20 20 20 69 66 | 20 28 62 5f 73 74 72 75 | if| (b_stru|
|00003ff0| 63 74 20 3c 3e 20 6e 69 | 6c 29 20 74 68 65 6e 0d |ct <> ni|l) then.|
|00004000| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 67 69 | | begi|
|00004010| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00004020| 20 73 75 63 63 65 73 73 | 20 3a 3d 20 4d 6f 76 65 | success| := Move|
|00004030| 5f 73 71 75 61 64 28 53 | 74 72 75 63 74 75 72 65 |_squad(S|tructure|
|00004040| 5f 68 65 78 28 70 2c 20 | 62 5f 73 74 72 75 63 74 |_hex(p, |b_struct|
|00004050| 29 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |));. | |
|00004060| 20 20 20 69 66 20 6e 6f | 74 20 73 75 63 63 65 73 | if no|t succes|
|00004070| 73 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |s then. | |
|00004080| 20 20 20 20 20 20 20 20 | 20 73 75 63 63 65 73 73 | | success|
|00004090| 20 3a 3d 20 4d 6f 76 65 | 5f 73 71 75 61 64 28 6d | := Move|_squad(m|
|000040a0| 79 5f 6c 6f 63 61 74 69 | 6f 6e 29 3b 0d 20 20 20 |y_locati|on);. |
|000040b0| 20 20 20 20 20 20 20 20 | 20 65 6e 64 3b 0d 20 20 | | end;. |
|000040c0| 20 20 20 20 20 20 20 65 | 6c 73 65 0d 20 20 20 20 | e|lse. |
|000040d0| 20 20 20 20 20 20 20 20 | 73 75 63 63 65 73 73 20 | |success |
|000040e0| 3a 3d 20 4d 6f 76 65 5f | 73 71 75 61 64 28 6d 79 |:= Move_|squad(my|
|000040f0| 5f 6c 6f 63 61 74 69 6f | 6e 29 3b 0d 20 20 20 20 |_locatio|n);. |
|00004100| 20 20 65 6e 64 3b 0d 20 | 20 20 65 6c 73 65 0d 20 | end;. | else. |
|00004110| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00004120| 20 20 20 20 73 75 63 63 | 65 73 73 20 3a 3d 20 4d | succ|ess := M|
|00004130| 6f 76 65 5f 73 71 75 61 | 64 28 74 61 72 67 65 74 |ove_squa|d(target|
|00004140| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 69 66 20 28 |);. | if (|
|00004150| 6e 6f 74 20 73 75 63 63 | 65 73 73 29 20 74 68 65 |not succ|ess) the|
|00004160| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 73 75 |n. | su|
|00004170| 63 63 65 73 73 20 3a 3d | 20 4d 6f 76 65 5f 73 71 |ccess :=| Move_sq|
|00004180| 75 61 64 28 6d 79 5f 6c | 6f 63 61 74 69 6f 6e 29 |uad(my_l|ocation)|
|00004190| 3b 0d 20 20 20 20 20 20 | 65 6e 64 3b 0d 65 6e 64 |;. |end;.end|
|000041a0| 3b 0d 00 00 03 d0 00 01 | 00 00 00 00 00 01 00 03 |;.......|........|
|000041b0| 00 00 00 00 00 a7 00 06 | 00 6c 00 00 61 74 00 05 |........|.l..at..|
|000041c0| 00 6c 00 00 6b f8 00 03 | 00 00 00 00 00 a8 00 06 |.l..k...|........|
|000041d0| 00 cc 00 01 6b f4 00 05 | 00 6c 00 00 6b f8 00 03 |....k...|.l..k...|
|000041e0| 00 00 00 00 00 a9 00 06 | 00 cc 00 02 4e 1c 00 00 |........|....N...|
|000041f0| 00 06 ff ff ff ff 00 06 | 00 cc 00 03 00 01 00 00 |........|........|
|00004200| 00 06 ff ff ff ff 00 03 | 00 00 00 00 00 ae 00 06 |........|........|
|00004210| 00 6c 00 04 0b a8 00 05 | 00 6c 00 04 e7 30 00 00 |.l......|.l...0..|
|00004220| 00 65 00 00 00 00 00 03 | 00 00 00 00 00 05 00 08 |.e......|........|
|00004230| 00 00 00 00 00 30 00 05 | 00 6c 00 04 df 50 00 03 |.....0..|.l...P..|
|00004240| 00 00 00 00 00 a8 00 05 | 00 cc 00 01 fe 64 00 03 |........|.....d..|
|00004250| 00 00 00 00 00 05 00 08 | 00 00 00 00 00 2b 00 05 |........|.....+..|
|00004260| 00 6c 00 04 df 50 00 03 | 00 00 00 00 00 a9 00 06 |.l...P..|........|
|00004270| 00 cc 00 05 00 00 00 05 | 00 cc 00 03 6b f8 00 00 |........|....k...|
|00004280| 00 06 ff ff ff ff 00 03 | 00 00 00 00 00 02 00 08 |........|........|
|00004290| 00 00 00 00 00 21 00 05 | 00 cc 00 05 6b f8 00 06 |.....!..|....k...|
|000042a0| 00 cc 00 03 c0 c8 00 01 | 00 00 00 00 00 2b 00 05 |........|.....+..|
|000042b0| 00 cc 00 02 6b f8 00 05 | 00 cc 00 05 00 00 00 03 |....k...|........|
|000042c0| 00 00 00 00 00 ad 00 05 | 00 cc 00 02 6b f8 00 05 |........|....k...|
|000042d0| 00 cc 00 03 00 00 00 03 | 00 00 00 00 00 ad 00 03 |........|........|
|000042e0| 00 00 00 00 00 01 00 08 | 00 00 00 00 00 2b 00 05 |........|.....+..|
|000042f0| 00 cc 00 05 6b f8 00 06 | 00 cc 00 03 00 17 00 05 |....k...|........|
|00004300| 00 6c 00 04 04 72 00 00 | 00 06 ff ff ff ff 00 03 |.l...r..|........|
|00004310| 00 00 00 00 00 af 00 06 | 00 6c 00 04 00 10 00 01 |........|.l......|
|00004320| 00 00 00 00 00 0e 00 05 | 00 cc 00 03 63 00 00 00 |........|....c...|
|00004330| 00 06 ff ff ff ff 00 03 | 00 00 00 00 00 02 00 08 |........|........|
|00004340| 00 00 00 00 00 70 00 03 | 00 00 00 00 00 d8 00 06 |.....p..|........|
|00004350| 00 2c 00 07 6b f4 00 05 | 00 2c 00 07 ff ff 00 03 |.,..k...|.,......|
|00004360| 00 00 00 00 00 88 00 06 | 00 4c 00 09 03 b0 00 05 |........|.L......|
|00004370| 00 4c 00 09 6b f8 00 00 | 00 65 00 00 00 00 00 03 |.L..k...|.e......|
|00004380| 00 00 00 00 00 02 00 08 | 00 00 00 00 00 41 00 05 |........|.....A..|
|00004390| 00 cc 00 02 6b f8 00 03 | 00 00 00 00 00 b0 00 06 |....k...|........|
|000043a0| 01 0c 00 06 03 9f 00 09 | 00 00 00 00 00 00 00 05 |........|........|
|000043b0| 00 2c 00 07 fa fc 00 05 | 00 4c 00 09 12 7c 00 03 |.,......|.L...|..|
|000043c0| 00 00 00 00 00 89 00 06 | 00 4c 00 08 00 00 00 05 |........|.L......|
|000043d0| 00 4c 00 08 e7 30 00 00 | 00 65 00 00 00 00 00 03 |.L...0..|.e......|
|000043e0| 00 00 00 00 00 05 00 08 | 00 00 00 00 00 5c 00 05 |........|.....\..|
|000043f0| 00 cc 00 02 6b f8 00 05 | 00 2c 00 07 00 8c 00 05 |....k...|.,......|
|00004400| 00 4c 00 08 00 00 00 03 | 00 00 00 00 00 8e 00 03 |.L......|........|
|00004410| 00 00 00 00 00 ad 00 05 | 00 cc 00 02 6b f8 00 05 |........|....k...|
|00004420| 00 2c 00 07 6b f8 00 05 | 00 4c 00 09 00 00 00 03 |.,..k...|.L......|
|00004430| 00 00 00 00 00 8e 00 03 | 00 00 00 00 00 ad 00 03 |........|........|
|00004440| 00 00 00 00 00 01 00 08 | 00 00 00 00 00 57 00 05 |........|.....W..|
|00004450| 00 4c 00 08 00 00 00 06 | 00 4c 00 09 f9 80 00 05 |.L......|.L......|
|00004460| 00 2c 00 07 6b f8 00 05 | 00 4c 00 08 00 01 00 03 |.,..k...|.L......|
|00004470| 00 00 00 00 00 89 00 06 | 00 4c 00 08 6b f4 00 01 |........|.L..k...|
|00004480| 00 00 00 00 00 45 00 05 | 00 4c 00 09 00 09 00 00 |.....E..|.L......|
|00004490| 00 65 00 00 00 00 00 03 | 00 00 00 00 00 05 00 08 |.e......|........|
|000044a0| 00 00 00 00 00 6c 00 05 | 00 2c 00 07 74 e0 00 05 |.....l..|.,..t...|
|000044b0| 00 4c 00 09 61 b1 00 03 | 00 00 00 00 00 8e 00 03 |.L..a...|........|
|000044c0| 00 00 00 00 00 b0 00 06 | 01 0c 00 06 73 74 00 05 |........|....st..|
|000044d0| 01 0c 00 06 00 02 00 03 | 00 00 00 00 00 0e 00 08 |........|........|
|000044e0| 00 00 00 00 00 6b 00 05 | 00 cc 00 02 00 01 00 03 |.....k..|........|
|000044f0| 00 00 00 00 00 b0 00 06 | 01 0c 00 06 00 1e 00 01 |........|........|
|00004500| 00 00 00 00 00 6f 00 05 | 00 cc 00 02 06 5c 00 03 |.....o..|.....\..|
|00004510| 00 00 00 00 00 b0 00 06 | 01 0c 00 06 00 31 00 01 |........|.....1..|
|00004520| 00 00 00 00 00 79 00 05 | 00 cc 00 03 6b f8 00 03 |.....y..|....k...|
|00004530| 00 00 00 00 00 b0 00 06 | 01 0c 00 06 6b f4 00 05 |........|....k...|
|00004540| 01 0c 00 06 6b f8 00 03 | 00 00 00 00 00 0e 00 08 |....k...|........|
|00004550| 00 00 00 00 00 79 00 05 | 00 cc 00 02 68 65 00 03 |.....y..|....he..|
|00004560| 00 00 00 00 00 b0 00 06 | 01 0c 00 06 00 38 00 09 |........|.....8..|
|00004570| 00 00 00 00 00 00 00 00 | 00 f4 00 01 00 10 00 10 |........|........|
|00004580| 00 11 00 11 00 11 00 12 | 00 12 00 12 00 13 00 13 |........|........|
|00004590| 00 14 00 14 00 14 00 15 | 00 15 00 15 00 15 00 17 |........|........|
|000045a0| 00 17 00 17 00 17 00 17 | 00 19 00 19 00 19 00 1a |........|........|
|000045b0| 00 1a 00 1a 00 1a 00 1c | 00 1c 00 1e 00 20 00 20 |........|..... . |
|000045c0| 00 20 00 21 00 21 00 21 | 00 21 00 21 00 22 00 22 |. .!.!.!|.!.!."."|
|000045d0| 00 25 00 25 00 25 00 25 | 00 26 00 27 00 27 00 27 |.%.%.%.%|.&.'.'.'|
|000045e0| 00 27 00 2a 00 2a 00 2b | 00 2b 00 2b 00 2c 00 2c |.'.*.*.+|.+.+.,.,|
|000045f0| 00 2c 00 2c 00 2e 00 2e | 00 2e 00 2f 00 31 00 31 |.,.,....|.../.1.1|
|00004600| 00 31 00 31 00 32 00 32 | 00 32 00 32 00 34 00 34 |.1.1.2.2|.2.2.4.4|
|00004610| 00 34 00 34 00 34 00 35 | 00 35 00 35 00 35 00 35 |.4.4.4.5|.5.5.5.5|
|00004620| 00 35 00 35 00 36 00 36 | 00 37 00 37 00 37 00 37 |.5.5.6.6|.7.7.7.7|
|00004630| 00 38 00 39 00 39 00 39 | 00 39 00 3b 00 3b 00 3b |.8.9.9.9|.9.;.;.;|
|00004640| 00 3b 00 3b 00 3c 00 3c | 00 3c 00 3d 00 3d 00 3d |.;.;.<.<|.<.=.=.=|
|00004650| 00 3f 00 40 00 40 00 40 | 00 42 00 44 00 44 00 44 |.?.@.@.@|.B.D.D.D|
|00004660| 00 45 00 45 00 45 00 46 | 00 46 00 46 00 48 00 00 |.E.E.E.F|.F.F.H..|
|00004670| 02 84 73 69 74 75 61 74 | 69 6f 6e 20 70 6c 61 6e |..situat|ion plan|
|00004680| 65 74 61 72 79 5f 64 65 | 66 65 6e 73 65 5f 73 79 |etary_de|fense_sy|
|00004690| 73 74 65 6d 0d 76 61 72 | 73 0d 20 20 20 6e 75 6d |stem.var|s. num|
|000046a0| 20 3a 20 69 6e 74 65 67 | 65 72 3b 0d 20 20 20 69 | : integ|er;. i|
|000046b0| 20 3a 20 69 6e 74 65 67 | 65 72 3b 0d 20 20 20 62 | : integ|er;. b|
|000046c0| 65 73 74 20 3a 20 69 6e | 74 65 67 65 72 3b 0d 20 |est : in|teger;. |
|000046d0| 20 20 73 75 63 63 65 73 | 73 20 3a 20 62 6f 6f 6c | succes|s : bool|
|000046e0| 65 61 6e 3b 0d 0d 62 65 | 67 69 6e 0d 20 20 20 2f |ean;..be|gin. /|
|000046f0| 2f 20 46 69 72 73 74 20 | 73 65 65 20 69 66 20 74 |/ First |see if t|
|00004700| 68 65 20 73 68 69 70 73 | 20 69 6e 20 6f 72 62 69 |he ships| in orbi|
|00004710| 74 20 61 72 65 20 61 6e | 20 65 6e 65 6d 79 20 72 |t are an| enemy r|
|00004720| 61 63 65 0d 20 20 20 69 | 66 20 28 4f 72 62 69 74 |ace. i|f (Orbit|
|00004730| 5f 6f 77 6e 65 72 28 54 | 68 69 73 5f 70 6c 61 6e |_owner(T|his_plan|
|00004740| 65 74 28 29 29 20 3c 3e | 20 50 6c 61 6e 65 74 5f |et()) <>| Planet_|
|00004750| 72 61 63 65 28 54 68 69 | 73 5f 70 6c 61 6e 65 74 |race(Thi|s_planet|
|00004760| 28 29 29 29 20 74 68 65 | 6e 0d 20 20 20 20 20 20 |())) the|n. |
|00004770| 62 65 67 69 6e 0d 20 20 | 20 20 20 20 20 20 20 2f |begin. | /|
|00004780| 2f 20 46 69 6e 64 20 74 | 68 65 20 73 68 69 70 20 |/ Find t|he ship |
|00004790| 77 69 74 68 20 74 68 65 | 20 77 65 61 6b 65 73 74 |with the| weakest|
|000047a0| 20 73 68 69 65 6c 64 73 | 0d 20 20 20 20 20 20 20 | shields|. |
|000047b0| 20 20 6e 75 6d 20 3a 3d | 20 4e 75 6d 5f 62 6f 6d | num :=| Num_bom|
|000047c0| 62 61 72 64 69 6e 67 5f | 73 68 69 70 73 28 29 3b |barding_|ships();|
|000047d0| 0d 20 20 20 20 20 20 20 | 20 20 69 20 3a 3d 20 31 |. | i := 1|
|000047e0| 3b 0d 20 20 20 20 20 20 | 20 20 20 62 65 73 74 20 |;. | best |
|000047f0| 3a 3d 20 30 3b 0d 20 20 | 20 20 20 20 20 20 20 77 |:= 0;. | w|
|00004800| 68 69 6c 65 20 28 69 20 | 3c 20 6e 75 6d 29 20 64 |hile (i |< num) d|
|00004810| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 |o. | be|
|00004820| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |gin. | |
|00004830| 20 20 20 69 66 20 28 42 | 6f 6d 62 61 72 64 69 6e | if (B|ombardin|
|00004840| 67 5f 73 68 69 65 6c 64 | 28 69 29 20 3c 20 42 6f |g_shield|(i) < Bo|
|00004850| 6d 62 61 72 64 69 6e 67 | 5f 73 68 69 65 6c 64 28 |mbarding|_shield(|
|00004860| 62 65 73 74 29 29 20 74 | 68 65 6e 0d 20 20 20 20 |best)) t|hen. |
|00004870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 | | be|
|00004880| 73 74 20 3a 3d 20 69 3b | 0d 20 20 20 20 20 20 20 |st := i;|. |
|00004890| 20 20 20 20 20 20 20 20 | 69 20 3a 3d 20 69 20 2b | |i := i +|
|000048a0| 20 31 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1;. | |
|000048b0| 65 6e 64 3b 0d 20 20 20 | 20 20 20 20 20 20 73 75 |end;. | su|
|000048c0| 63 63 65 73 73 20 3a 3d | 20 46 69 72 65 5f 70 6c |ccess :=| Fire_pl|
|000048d0| 61 6e 65 74 61 72 79 5f | 64 65 66 65 6e 73 65 28 |anetary_|defense(|
|000048e0| 62 65 73 74 29 3b 0d 20 | 20 20 20 20 20 65 6e 64 |best);. | end|
|000048f0| 3b 0d 65 6e 64 3b 00 00 | 05 fc 73 69 74 75 61 74 |;.end;..|..situat|
|00004900| 69 6f 6e 20 73 70 61 63 | 65 5f 75 6e 69 74 0d 20 |ion spac|e_unit. |
|00004910| 20 20 2f 2f 20 41 70 70 | 72 6f 61 63 68 3a 20 53 | // App|roach: S|
|00004920| 65 6e 64 20 61 6c 6c 20 | 73 68 69 70 73 20 61 66 |end all |ships af|
|00004930| 74 65 72 20 74 68 65 20 | 73 68 69 70 20 77 69 74 |ter the |ship wit|
|00004940| 68 20 74 68 65 20 6c 6f | 77 65 73 74 20 73 68 69 |h the lo|west shi|
|00004950| 65 6c 64 73 0d 76 61 72 | 73 0d 20 20 20 6d 65 20 |elds.var|s. me |
|00004960| 3a 20 73 68 69 70 3b 0d | 20 20 20 6d 78 20 3a 20 |: ship;.| mx : |
|00004970| 69 6e 74 65 67 65 72 3b | 0d 20 20 20 6d 79 20 3a |integer;|. my :|
|00004980| 20 69 6e 74 65 67 65 72 | 3b 0d 20 20 20 69 20 3a | integer|;. i :|
|00004990| 20 69 6e 74 65 67 65 72 | 3b 0d 20 20 20 73 20 3a | integer|;. s :|
|000049a0| 20 73 68 69 70 3b 0d 20 | 20 20 6c 6f 77 5f 73 68 | ship;. | low_sh|
|000049b0| 69 70 20 3a 20 73 68 69 | 70 3b 0d 20 20 20 6c 6f |ip : shi|p;. lo|
|000049c0| 77 5f 73 68 69 65 6c 64 | 20 3a 20 69 6e 74 65 67 |w_shield| : integ|
|000049d0| 65 72 3b 0d 20 20 20 73 | 75 63 63 65 73 73 20 3a |er;. s|uccess :|
|000049e0| 20 62 6f 6f 6c 65 61 6e | 3b 0d 20 20 20 74 78 20 | boolean|;. tx |
|000049f0| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 20 20 20 74 79 |: intege|r;. ty|
|00004a00| 20 3a 20 69 6e 74 65 67 | 65 72 3b 0d 20 20 20 64 | : integ|er;. d|
|00004a10| 69 73 74 20 3a 20 69 6e | 74 65 67 65 72 3b 0d 0d |ist : in|teger;..|
|00004a20| 66 75 6e 63 74 69 6f 6e | 20 43 68 65 63 6b 53 68 |function| CheckSh|
|00004a30| 69 70 28 74 61 72 67 65 | 74 20 3a 20 73 68 69 70 |ip(targe|t : ship|
|00004a40| 29 20 3a 20 73 68 69 70 | 3b 0d 76 61 72 73 0d 20 |) : ship|;.vars. |
|00004a50| 20 20 73 75 6d 20 3a 20 | 69 6e 74 65 67 65 72 3b | sum : |integer;|
|00004a60| 0d 62 65 67 69 6e 0d 20 | 20 20 73 75 6d 20 3a 3d |.begin. | sum :=|
|00004a70| 20 53 70 61 63 65 5f 66 | 6f 72 65 5f 73 68 69 65 | Space_f|ore_shie|
|00004a80| 6c 64 28 74 61 72 67 65 | 74 29 20 2b 0d 20 20 20 |ld(targe|t) +. |
|00004a90| 20 20 20 20 20 20 20 53 | 70 61 63 65 5f 61 66 74 | S|pace_aft|
|00004aa0| 5f 73 68 69 65 6c 64 28 | 74 61 72 67 65 74 29 20 |_shield(|target) |
|00004ab0| 2b 0d 20 20 20 20 20 20 | 20 20 20 20 53 70 61 63 |+. | Spac|
|00004ac0| 65 5f 70 6f 72 74 5f 73 | 68 69 65 6c 64 28 74 61 |e_port_s|hield(ta|
|00004ad0| 72 67 65 74 29 20 2b 0d | 20 20 20 20 20 20 20 20 |rget) +.| |
|00004ae0| 20 20 53 70 61 63 65 5f | 73 74 61 72 62 6f 61 72 | Space_|starboar|
|00004af0| 64 5f 73 68 69 65 6c 64 | 28 74 61 72 67 65 74 29 |d_shield|(target)|
|00004b00| 3b 0d 20 20 20 69 66 20 | 6c 6f 77 5f 73 68 69 70 |;. if |low_ship|
|00004b10| 20 3d 20 6e 69 6c 20 74 | 68 65 6e 0d 20 20 20 20 | = nil t|hen. |
|00004b20| 20 20 62 65 67 69 6e 0d | 20 20 20 20 20 20 20 20 | begin.| |
|00004b30| 20 6c 6f 77 5f 73 68 69 | 70 20 3a 3d 20 74 61 72 | low_shi|p := tar|
|00004b40| 67 65 74 3b 0d 20 20 20 | 20 20 20 20 20 20 6c 6f |get;. | lo|
|00004b50| 77 5f 73 68 69 65 6c 64 | 20 3a 3d 20 73 75 6d 3b |w_shield| := sum;|
|00004b60| 0d 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 65 |. e|nd;. e|
|00004b70| 6c 73 65 20 69 66 20 73 | 75 6d 20 3c 20 6c 6f 77 |lse if s|um < low|
|00004b80| 5f 73 68 69 65 6c 64 20 | 74 68 65 6e 0d 20 20 20 |_shield |then. |
|00004b90| 20 20 20 62 65 67 69 6e | 0d 20 20 20 20 20 20 20 | begin|. |
|00004ba0| 20 20 6c 6f 77 5f 73 68 | 69 70 20 3a 3d 20 74 61 | low_sh|ip := ta|
|00004bb0| 72 67 65 74 3b 0d 20 20 | 20 20 20 20 20 20 20 6c |rget;. | l|
|00004bc0| 6f 77 5f 73 68 69 65 6c | 64 20 3a 3d 20 73 75 6d |ow_shiel|d := sum|
|00004bd0| 3b 0d 20 20 20 20 20 20 | 65 6e 64 3b 0d 20 20 20 |;. |end;. |
|00004be0| 72 65 74 75 72 6e 20 4e | 65 78 74 5f 73 68 69 70 |return N|ext_ship|
|00004bf0| 28 74 61 72 67 65 74 29 | 3b 0d 65 6e 64 3b 0d 0d |(target)|;.end;..|
|00004c00| 62 65 67 69 6e 0d 20 20 | 20 2f 2f 20 47 65 74 20 |begin. | // Get |
|00004c10| 79 6f 75 72 73 65 6c 66 | 0d 20 20 20 6d 65 20 3a |yourself|. me :|
|00004c20| 3d 20 54 68 69 73 5f 73 | 68 69 70 28 29 3b 0d 20 |= This_s|hip();. |
|00004c30| 20 20 6d 78 20 3a 3d 20 | 47 65 74 5f 73 70 61 63 | mx := |Get_spac|
|00004c40| 65 5f 78 28 6d 65 29 3b | 0d 20 20 20 6d 79 20 3a |e_x(me);|. my :|
|00004c50| 3d 20 47 65 74 5f 73 70 | 61 63 65 5f 79 28 6d 65 |= Get_sp|ace_y(me|
|00004c60| 29 3b 0d 20 20 20 2f 2f | 20 41 63 74 69 76 61 74 |);. //| Activat|
|00004c70| 65 20 61 6c 6c 20 6f 66 | 20 79 6f 75 72 20 73 79 |e all of| your sy|
|00004c80| 73 74 65 6d 73 0d 20 20 | 20 69 20 3a 3d 20 30 3b |stems. | i := 0;|
|00004c90| 0d 20 20 20 77 68 69 6c | 65 20 28 69 20 3c 20 36 |. whil|e (i < 6|
|00004ca0| 29 20 64 6f 0d 20 20 20 | 20 20 20 62 65 67 69 6e |) do. | begin|
|00004cb0| 0d 20 20 20 20 20 20 20 | 20 20 2f 2f 20 57 65 20 |. | // We |
|00004cc0| 64 6f 6e 27 74 20 77 61 | 6e 74 20 74 6f 20 74 75 |don't wa|nt to tu|
|00004cd0| 72 6e 20 6f 6e 20 74 68 | 65 20 73 65 6c 66 20 64 |rn on th|e self d|
|00004ce0| 65 73 74 72 75 63 74 20 | 73 79 73 74 65 6d 0d 20 |estruct |system. |
|00004cf0| 20 20 20 20 20 20 20 20 | 69 66 20 28 46 69 72 65 | |if (Fire|
|00004d00| 5f 73 79 73 74 65 6d 28 | 4d 79 5f 72 61 63 65 28 |_system(|My_race(|
|00004d10| 29 2c 20 53 70 61 63 65 | 5f 63 6c 61 73 73 28 6d |), Space|_class(m|
|00004d20| 65 29 2c 20 53 70 61 63 | 65 5f 67 65 6e 28 6d 65 |e), Spac|e_gen(me|
|00004d30| 29 2c 20 69 29 20 3c 3e | 20 37 33 29 20 74 68 65 |), i) <>| 73) the|
|00004d40| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 73 75 |n. | su|
|00004d50| 63 63 65 73 73 20 3a 3d | 20 53 65 74 5f 66 69 72 |ccess :=| Set_fir|
|00004d60| 65 5f 73 74 61 74 75 73 | 28 6d 65 2c 20 69 2c 20 |e_status|(me, i, |
|00004d70| 74 72 75 65 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |true);. | |
|00004d80| 69 20 3a 3d 20 69 20 2b | 20 31 3b 0d 20 20 20 20 |i := i +| 1;. |
|00004d90| 20 20 65 6e 64 3b 0d 20 | 20 20 2f 2f 20 44 65 74 | end;. | // Det|
|00004da0| 65 72 6d 69 6e 65 20 77 | 68 69 63 68 20 73 68 69 |ermine w|hich shi|
|00004db0| 70 20 74 6f 20 61 74 74 | 61 63 6b 2c 20 62 61 73 |p to att|ack, bas|
|00004dc0| 65 64 20 6f 6e 20 6c 6f | 77 65 73 74 20 73 68 69 |ed on lo|west shi|
|00004dd0| 65 6c 64 73 0d 20 20 20 | 6c 6f 77 5f 73 68 69 70 |elds. |low_ship|
|00004de0| 20 3a 3d 20 6e 69 6c 3b | 0d 20 20 20 6c 6f 77 5f | := nil;|. low_|
|00004df0| 73 68 69 65 6c 64 20 3a | 3d 20 30 3b 0d 20 20 20 |shield :|= 0;. |
|00004e00| 73 20 3a 3d 20 46 69 72 | 73 74 5f 73 68 69 70 28 |s := Fir|st_ship(|
|00004e10| 66 61 6c 73 65 29 3b 0d | 20 20 20 77 68 69 6c 65 |false);.| while|
|00004e20| 20 28 73 20 3c 3e 20 6e | 69 6c 29 20 64 6f 0d 20 | (s <> n|il) do. |
|00004e30| 20 20 20 20 20 73 20 3a | 3d 20 43 68 65 63 6b 53 | s :|= CheckS|
|00004e40| 68 69 70 28 73 29 3b 0d | 20 20 20 69 66 20 6c 6f |hip(s);.| if lo|
|00004e50| 77 5f 73 68 69 70 20 3c | 3e 20 6e 69 6c 20 74 68 |w_ship <|> nil th|
|00004e60| 65 6e 0d 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 |en. | begin. |
|00004e70| 20 20 20 20 20 20 20 20 | 73 75 63 63 65 73 73 20 | |success |
|00004e80| 3a 3d 20 53 65 74 5f 73 | 70 61 63 65 5f 74 61 72 |:= Set_s|pace_tar|
|00004e90| 67 65 74 28 6d 65 2c 20 | 6c 6f 77 5f 73 68 69 70 |get(me, |low_ship|
|00004ea0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 2f 2f 20 54 |);. | // T|
|00004eb0| 68 65 20 73 68 69 70 20 | 77 69 6c 6c 20 61 75 74 |he ship |will aut|
|00004ec0| 6f 6d 61 74 69 63 61 6c | 6c 79 20 6d 6f 76 65 20 |omatical|ly move |
|00004ed0| 74 6f 77 61 72 64 20 74 | 68 65 20 74 61 72 67 65 |toward t|he targe|
|00004ee0| 74 0d 20 20 20 20 20 20 | 65 6e 64 3b 0d 65 6e 64 |t. |end;.end|
|00004ef0| 3b 0d 0d 0d 0d 0d 77 61 | 72 64 20 74 68 65 20 73 |;.....wa|rd the s|
|00004f00| 68 69 70 20 75 6e 74 69 | 6c 20 77 69 74 68 69 6e |hip unti|l within|
|00004f10| 20 61 20 63 65 72 74 61 | 69 6e 20 64 69 73 74 61 | a certa|in dista|
|00004f20| 6e 63 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |nce. | |
|00004f30| 20 20 20 74 78 20 3a 3d | 20 47 65 74 5f 73 70 61 | tx :=| Get_spa|
|00004f40| 63 65 5f 78 28 6c 6f 77 | 5f 73 68 69 70 29 3b 0d |ce_x(low|_ship);.|
|00004f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|00004f60| 79 20 3a 3d 20 47 65 74 | 5f 73 70 61 63 65 5f 79 |y := Get|_space_y|
|00004f70| 28 6c 6f 77 5f 73 68 69 | 70 29 3b 0d 20 20 20 20 |(low_shi|p);. |
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 64 69 73 74 20 | | dist |
|00004f90| 3a 3d 20 47 65 74 5f 73 | 70 61 63 65 5f 64 69 73 |:= Get_s|pace_dis|
|00004fa0| 74 61 6e 63 65 28 6d 65 | 2c 20 6c 6f 77 5f 73 68 |tance(me|, low_sh|
|00004fb0| 69 70 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ip);. | |
|00004fc0| 20 20 20 20 69 66 20 64 | 69 73 74 20 3e 20 31 35 | if d|ist > 15|
|00004fd0| 30 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |0 then. | |
|00004fe0| 20 20 20 20 20 20 20 20 | 20 73 75 63 63 65 73 73 | | success|
|00004ff0| 20 3a 3d 20 53 65 74 5f | 73 70 61 63 65 5f 64 65 | := Set_|space_de|
|00005000| 73 74 28 6d 65 2c 20 74 | 78 2c 20 74 79 29 3b 0d |st(me, t|x, ty);.|
|00005010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00005020| 6c 73 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |lse. | |
|00005030| 20 20 20 20 20 20 73 75 | 63 63 65 73 73 20 3a 3d | su|ccess :=|
|00005040| 20 43 6c 65 61 72 5f 73 | 70 61 63 65 5f 64 65 73 | Clear_s|pace_des|
|00005050| 74 28 6d 65 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |t(me);. | |
|00005060| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 20 20 65 6e | end;.| en|
|00005070| 64 3b 0d 65 6e 64 3b 0d | 0d 0d 0d 0d 00 00 0f 06 |d;.end;.|........|
|00005080| 73 69 74 75 61 74 69 6f | 6e 20 70 6c 61 6e 65 74 |situatio|n planet|
|00005090| 5f 70 72 6f 64 75 63 74 | 69 6f 6e 0d 76 61 72 73 |_product|ion.vars|
|000050a0| 0d 20 20 20 70 20 3a 20 | 70 6c 61 6e 65 74 3b 0d |. p : |planet;.|
|000050b0| 20 20 20 69 20 3a 20 69 | 6e 74 65 67 65 72 3b 0d | i : i|nteger;.|
|000050c0| 20 20 20 73 74 20 3a 20 | 69 6e 74 65 67 65 72 3b | st : |integer;|
|000050d0| 0d 20 20 20 73 75 63 63 | 65 73 73 20 3a 20 62 6f |. succ|ess : bo|
|000050e0| 6f 6c 65 61 6e 3b 0d 20 | 20 20 68 65 78 20 3a 20 |olean;. | hex : |
|000050f0| 69 6e 74 65 67 65 72 3b | 0d 20 20 20 73 74 72 75 |integer;|. stru|
|00005100| 63 74 20 3a 20 73 74 72 | 75 63 74 75 72 65 3b 0d |ct : str|ucture;.|
|00005110| 0d 66 75 6e 63 74 69 6f | 6e 20 46 69 6e 64 5f 65 |.functio|n Find_e|
|00005120| 6d 70 74 79 5f 68 65 78 | 28 70 20 3a 20 70 6c 61 |mpty_hex|(p : pla|
|00005130| 6e 65 74 29 20 3a 20 69 | 6e 74 65 67 65 72 3b 0d |net) : i|nteger;.|
|00005140| 76 61 72 73 0d 20 20 20 | 74 61 72 67 65 74 20 3a |vars. |target :|
|00005150| 20 69 6e 74 65 67 65 72 | 3b 0d 20 20 20 0d 62 65 | integer|;. .be|
|00005160| 67 69 6e 0d 20 20 20 74 | 61 72 67 65 74 20 3a 3d |gin. t|arget :=|
|00005170| 20 52 61 6e 64 6f 6d 28 | 31 32 37 29 3b 0d 20 20 | Random(|127);. |
|00005180| 20 77 68 69 6c 65 20 28 | 48 65 78 5f 73 74 72 75 | while (|Hex_stru|
|00005190| 63 74 75 72 65 28 70 2c | 20 74 61 72 67 65 74 29 |cture(p,| target)|
|000051a0| 20 3c 3e 20 6e 69 6c 29 | 20 64 6f 0d 20 20 20 20 | <> nil)| do. |
|000051b0| 20 20 74 61 72 67 65 74 | 20 3a 3d 20 52 61 6e 64 | target| := Rand|
|000051c0| 6f 6d 28 31 32 37 29 3b | 0d 20 20 20 72 65 74 75 |om(127);|. retu|
|000051d0| 72 6e 28 74 61 72 67 65 | 74 29 3b 0d 65 6e 64 3b |rn(targe|t);.end;|
|000051e0| 0d 0d 0d 2f 2f 20 4d 61 | 69 6e 20 66 75 6e 63 74 |...// Ma|in funct|
|000051f0| 69 6f 6e 0d 62 65 67 69 | 6e 0d 20 20 20 70 20 3a |ion.begi|n. p :|
|00005200| 3d 20 54 68 69 73 5f 70 | 6c 61 6e 65 74 28 29 3b |= This_p|lanet();|
|00005210| 0d 20 20 20 2f 2f 20 46 | 69 72 73 74 20 73 65 74 |. // F|irst set|
|00005220| 20 74 68 65 20 74 65 63 | 68 20 73 70 65 6e 64 69 | the tec|h spendi|
|00005230| 6e 67 20 6c 65 76 65 6c | 73 0d 20 20 20 53 65 74 |ng level|s. Set|
|00005240| 5f 77 65 61 70 6f 6e 5f | 73 70 65 6e 64 69 6e 67 |_weapon_|spending|
|00005250| 28 70 2c 20 77 5f 73 70 | 65 6e 64 69 6e 67 29 3b |(p, w_sp|ending);|
|00005260| 0d 20 20 20 53 65 74 5f | 73 68 69 65 6c 64 5f 73 |. Set_|shield_s|
|00005270| 70 65 6e 64 69 6e 67 28 | 70 2c 20 73 5f 73 70 65 |pending(|p, s_spe|
|00005280| 6e 64 69 6e 67 29 3b 0d | 20 20 20 53 65 74 5f 6d |nding);.| Set_m|
|00005290| 6f 76 65 5f 73 70 65 6e | 64 69 6e 67 28 70 2c 20 |ove_spen|ding(p, |
|000052a0| 6d 5f 73 70 65 6e 64 69 | 6e 67 29 3b 0d 20 20 20 |m_spendi|ng);. |
|000052b0| 53 65 74 5f 64 65 74 65 | 63 74 5f 73 70 65 6e 64 |Set_dete|ct_spend|
|000052c0| 69 6e 67 28 70 2c 20 64 | 5f 73 70 65 6e 64 69 6e |ing(p, d|_spendin|
|000052d0| 67 29 3b 0d 20 20 20 53 | 65 74 5f 64 65 76 65 6c |g);. S|et_devel|
|000052e0| 6f 70 5f 73 70 65 6e 64 | 69 6e 67 28 70 2c 20 35 |op_spend|ing(p, 5|
|000052f0| 30 29 3b 0d 20 20 20 2f | 2f 20 4e 6f 77 20 73 65 |0);. /|/ Now se|
|00005300| 65 20 69 66 20 77 65 20 | 77 61 6e 74 20 74 6f 20 |e if we |want to |
|00005310| 62 75 69 6c 64 20 61 20 | 73 68 69 70 0d 20 20 20 |build a |ship. |
|00005320| 69 66 20 28 28 50 6c 61 | 6e 65 74 5f 77 65 61 70 |if ((Pla|net_weap|
|00005330| 6f 6e 28 70 29 20 3e 20 | 74 65 63 68 5f 6d 69 6e |on(p) > |tech_min|
|00005340| 29 20 61 6e 64 0d 20 20 | 20 20 20 20 20 28 50 6c |) and. | (Pl|
|00005350| 61 6e 65 74 5f 73 68 69 | 65 6c 64 28 70 29 20 3e |anet_shi|eld(p) >|
|00005360| 20 74 65 63 68 5f 6d 69 | 6e 29 20 61 6e 64 0d 20 | tech_mi|n) and. |
|00005370| 20 20 20 20 20 20 28 50 | 6c 61 6e 65 74 5f 6d 6f | (P|lanet_mo|
|00005380| 76 65 28 70 29 20 3e 20 | 74 65 63 68 5f 6d 69 6e |ve(p) > |tech_min|
|00005390| 29 20 61 6e 64 0d 20 20 | 20 20 20 20 20 28 50 6c |) and. | (Pl|
|000053a0| 61 6e 65 74 5f 64 65 74 | 65 63 74 28 70 29 20 3e |anet_det|ect(p) >|
|000053b0| 20 74 65 63 68 5f 6d 69 | 6e 29 29 20 74 68 65 6e | tech_mi|n)) then|
|000053c0| 0d 20 20 20 20 20 20 53 | 65 74 5f 73 68 69 70 5f |. S|et_ship_|
|000053d0| 73 70 65 6e 64 69 6e 67 | 28 70 2c 20 31 30 30 29 |spending|(p, 100)|
|000053e0| 3b 0d 20 20 20 65 6c 73 | 65 0d 20 20 20 20 20 20 |;. els|e. |
|000053f0| 53 65 74 5f 73 68 69 70 | 5f 73 70 65 6e 64 69 6e |Set_ship|_spendin|
|00005400| 67 28 70 2c 20 30 29 3b | 0d 20 20 20 0d 20 20 20 |g(p, 0);|. . |
|00005410| 2f 2f 20 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |// If th|ere are |
|00005420| 6d 6f 72 65 20 74 68 65 | 6e 20 74 77 6f 20 73 68 |more the|n two sh|
|00005430| 69 70 73 2c 20 74 68 65 | 6e 20 73 65 6e 64 20 6f |ips, the|n send o|
|00005440| 75 74 20 61 20 73 71 75 | 61 64 0d 20 20 20 69 66 |ut a squ|ad. if|
|00005450| 20 28 4f 72 62 69 74 5f | 6e 75 6d 5f 73 68 69 70 | (Orbit_|num_ship|
|00005460| 73 28 70 29 20 3e 3d 20 | 33 29 20 74 68 65 6e 0d |s(p) >= |3) then.|
|00005470| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 20 20 20 20 | be|gin. |
|00005480| 20 20 20 20 20 69 20 3a | 3d 20 31 3b 20 20 20 20 | i :|= 1; |
|00005490| 20 2f 2f 20 44 6f 6e 27 | 74 20 77 61 6e 74 20 74 | // Don'|t want t|
|000054a0| 6f 20 73 65 6e 64 20 73 | 74 61 72 62 61 73 65 0d |o send s|tarbase.|
|000054b0| 20 20 20 20 20 20 20 20 | 20 77 68 69 6c 65 20 28 | | while (|
|000054c0| 69 20 3c 20 4f 72 62 69 | 74 5f 6e 75 6d 5f 73 68 |i < Orbi|t_num_sh|
|000054d0| 69 70 73 28 70 29 29 20 | 64 6f 0d 20 20 20 20 20 |ips(p)) |do. |
|000054e0| 20 20 20 20 20 20 20 62 | 65 67 69 6e 0d 20 20 20 | b|egin. |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 75 63 63 | | succ|
|00005500| 65 73 73 20 3a 3d 20 4f | 72 62 69 74 5f 64 65 70 |ess := O|rbit_dep|
|00005510| 61 72 74 28 70 2c 20 69 | 2c 20 74 72 75 65 29 3b |art(p, i|, true);|
|00005520| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005530| 69 20 3a 3d 20 69 20 2b | 20 31 3b 0d 20 20 20 20 |i := i +| 1;. |
|00005540| 20 20 20 20 20 20 20 20 | 65 6e 64 3b 0d 20 20 20 | |end;. |
|00005550| 20 20 20 65 6e 64 3b 0d | 0d 20 20 20 2f 2f 20 49 | end;.|. // I|
|00005560| 66 20 61 20 6e 65 77 20 | 73 68 69 70 20 68 61 73 |f a new |ship has|
|00005570| 20 62 65 65 6e 20 62 75 | 69 6c 74 20 74 68 65 6e | been bu|ilt then|
|00005580| 20 73 65 74 20 74 68 65 | 20 73 68 69 70 20 74 79 | set the| ship ty|
|00005590| 70 65 0d 20 20 20 69 66 | 20 28 4e 65 77 5f 73 68 |pe. if| (New_sh|
|000055a0| 69 70 28 70 29 29 20 74 | 68 65 6e 0d 20 20 20 20 |ip(p)) t|hen. |
|000055b0| 20 20 62 65 67 69 6e 0d | 20 20 20 20 20 20 20 20 | begin.| |
|000055c0| 20 69 20 3a 3d 20 30 3b | 0d 20 20 20 20 20 20 20 | i := 0;|. |
|000055d0| 20 20 77 68 69 6c 65 20 | 28 43 61 6e 5f 62 75 69 | while |(Can_bui|
|000055e0| 6c 64 5f 73 68 69 70 5f | 74 79 70 65 28 70 2c 20 |ld_ship_|type(p, |
|000055f0| 69 29 29 20 64 6f 0d 20 | 20 20 20 20 20 20 20 20 |i)) do. | |
|00005600| 20 20 20 69 20 3a 3d 20 | 69 20 2b 20 31 3b 0d 20 | i := |i + 1;. |
|00005610| 20 20 20 20 20 20 20 20 | 69 66 20 28 69 20 3e 20 | |if (i > |
|00005620| 30 29 20 74 68 65 6e 0d | 20 20 20 20 20 20 20 20 |0) then.| |
|00005630| 20 20 20 20 62 65 67 69 | 6e 0d 20 20 20 20 20 20 | begi|n. |
|00005640| 20 20 20 20 20 20 20 20 | 20 73 74 20 3a 3d 20 52 | | st := R|
|00005650| 61 6e 64 6f 6d 28 69 29 | 3b 0d 20 20 20 20 20 20 |andom(i)|;. |
|00005660| 20 20 20 20 20 20 20 20 | 20 73 75 63 63 65 73 73 | | success|
|00005670| 20 3a 3d 20 43 6f 6e 73 | 74 72 75 63 74 5f 73 68 | := Cons|truct_sh|
|00005680| 69 70 5f 74 79 70 65 28 | 70 2c 20 73 74 29 3b 0d |ip_type(|p, st);.|
|00005690| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6e 64 3b | | end;|
|000056a0| 0d 20 20 20 20 20 20 20 | 20 20 0d 20 20 20 20 20 |. | . |
|000056b0| 20 20 20 20 2f 2f 20 4e | 6f 77 20 73 65 74 20 74 | // N|ow set t|
|000056c0| 68 65 20 74 72 6f 6f 70 | 73 20 74 6f 20 66 69 6c |he troop|s to fil|
|000056d0| 6c 20 69 74 0d 20 20 20 | 20 20 20 20 20 20 69 20 |l it. | i |
|000056e0| 3a 3d 20 30 3b 0d 20 20 | 20 20 20 20 20 20 20 77 |:= 0;. | w|
|000056f0| 68 69 6c 65 20 28 69 20 | 3c 20 38 29 20 64 6f 0d |hile (i |< 8) do.|
|00005700| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 67 69 | | begi|
|00005710| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00005720| 20 73 75 63 63 65 73 73 | 20 3a 3d 20 53 74 61 72 | success| := Star|
|00005730| 64 6f 63 6b 5f 73 65 74 | 5f 6d 61 6e 69 66 65 73 |dock_set|_manifes|
|00005740| 74 28 70 2c 20 69 2c 20 | 30 29 3b 0d 20 20 20 20 |t(p, i, |0);. |
|00005750| 20 20 20 20 20 20 20 20 | 20 20 20 69 20 3a 3d 20 | | i := |
|00005760| 69 20 2b 20 31 3b 0d 20 | 20 20 20 20 20 20 20 20 |i + 1;. | |
|00005770| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 20 20 20 20 | end;.| |
|00005780| 20 2f 2f 20 4e 6f 77 20 | 72 65 66 69 6c 6c 20 74 | // Now |refill t|
|00005790| 68 65 20 62 61 72 72 61 | 63 6b 73 0d 20 20 20 20 |he barra|cks. |
|000057a0| 20 20 20 20 20 73 75 63 | 63 65 73 73 20 3a 3d 20 | suc|cess := |
|000057b0| 74 72 75 65 3b 0d 20 20 | 20 20 20 20 20 20 20 77 |true;. | w|
|000057c0| 68 69 6c 65 20 28 73 75 | 63 63 65 73 73 29 20 64 |hile (su|ccess) d|
|000057d0| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 62 65 |o. | be|
|000057e0| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |gin. | |
|000057f0| 20 20 20 69 20 3a 3d 20 | 52 61 6e 64 6f 6d 28 37 | i := |Random(7|
|00005800| 29 20 2b 20 31 3b 0d 20 | 20 20 20 20 20 20 20 20 |) + 1;. | |
|00005810| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 6e 6f 74 | wh|ile (not|
|00005820| 20 43 61 6e 5f 62 75 69 | 6c 64 5f 74 72 6f 6f 70 | Can_bui|ld_troop|
|00005830| 28 70 2c 20 69 29 29 20 | 64 6f 0d 20 20 20 20 20 |(p, i)) |do. |
|00005840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 20 3a | | i :|
|00005850| 3d 20 52 61 6e 64 6f 6d | 28 37 29 20 2b 20 31 3b |= Random|(7) + 1;|
|00005860| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005870| 73 75 63 63 65 73 73 20 | 3a 3d 20 53 74 61 72 64 |success |:= Stard|
|00005880| 6f 63 6b 5f 73 65 74 5f | 6d 61 6e 69 66 65 73 74 |ock_set_|manifest|
|00005890| 28 70 2c 20 69 2c 20 53 | 74 61 72 64 6f 63 6b 5f |(p, i, S|tardock_|
|000058a0| 67 65 74 5f 6d 61 6e 69 | 66 65 73 74 28 70 2c 20 |get_mani|fest(p, |
|000058b0| 69 29 2b 31 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |i)+1);. | |
|000058c0| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 20 20 20 65 | end;.| e|
|000058d0| 6e 64 3b 0d 20 20 20 0d | 20 20 20 2f 2f 20 49 66 |nd;. .| // If|
|000058e0| 20 74 68 65 72 65 20 61 | 72 65 20 30 20 70 72 6f | there a|re 0 pro|
|000058f0| 6a 65 63 74 73 2c 20 74 | 68 65 6e 20 62 75 69 6c |jects, t|hen buil|
|00005900| 64 20 61 20 62 61 72 72 | 61 63 6b 73 20 6f 72 20 |d a barr|acks or |
|00005910| 73 70 61 63 65 20 70 6f | 72 74 2e 0d 20 20 20 69 |space po|rt.. i|
|00005920| 66 20 28 4e 75 6d 5f 70 | 72 6f 6a 65 63 74 73 28 |f (Num_p|rojects(|
|00005930| 70 29 20 3d 20 30 29 20 | 74 68 65 6e 0d 20 20 20 |p) = 0) |then. |
|00005940| 20 20 20 62 65 67 69 6e | 0d 20 20 20 20 20 20 20 | begin|. |
|00005950| 20 20 69 66 20 28 4e 75 | 6d 5f 73 74 72 75 63 74 | if (Nu|m_struct|
|00005960| 75 72 65 73 28 70 2c 20 | 31 30 29 20 3c 20 36 29 |ures(p, |10) < 6)|
|00005970| 20 74 68 65 6e 20 20 20 | 20 20 20 20 2f 2f 20 73 | then | // s|
|00005980| 70 61 63 65 20 70 6f 72 | 74 0d 20 20 20 20 20 20 |pace por|t. |
|00005990| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 20 20 20 20 | be|gin. |
|000059a0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 53 65 | | // Se|
|000059b0| 6c 65 63 74 20 61 20 72 | 61 6e 64 6f 6d 20 68 65 |lect a r|andom he|
|000059c0| 78 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x. | |
|000059d0| 20 68 65 78 20 3a 3d 20 | 46 69 6e 64 5f 65 6d 70 | hex := |Find_emp|
|000059e0| 74 79 5f 68 65 78 28 70 | 29 3b 0d 20 20 20 20 20 |ty_hex(p|);. |
|000059f0| 20 20 20 20 20 20 20 20 | 20 20 73 75 63 63 65 73 | | succes|
|00005a00| 73 20 3a 3d 20 43 72 65 | 61 74 65 5f 73 74 72 75 |s := Cre|ate_stru|
|00005a10| 63 74 75 72 65 28 70 2c | 20 68 65 78 2c 20 31 30 |cture(p,| hex, 10|
|00005a20| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |);. | e|
|00005a30| 6e 64 3b 0d 20 20 20 20 | 20 20 20 20 20 69 66 20 |nd;. | if |
|00005a40| 28 4e 75 6d 5f 73 74 72 | 75 63 74 75 72 65 73 28 |(Num_str|uctures(|
|00005a50| 70 2c 20 32 29 20 3c 20 | 36 29 20 74 68 65 6e 20 |p, 2) < |6) then |
|00005a60| 20 20 20 20 20 20 20 2f | 2f 20 62 61 72 72 61 63 | /|/ barrac|
|00005a70| 6b 73 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |ks. | b|
|00005a80| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |egin. | |
|00005a90| 20 20 20 20 2f 2f 20 53 | 65 6c 65 63 74 20 61 20 | // S|elect a |
|00005aa0| 72 61 6e 64 6f 6d 20 68 | 65 78 0d 20 20 20 20 20 |random h|ex. |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 68 65 78 20 3a 3d | | hex :=|
|00005ac0| 20 46 69 6e 64 5f 65 6d | 70 74 79 5f 68 65 78 28 | Find_em|pty_hex(|
|00005ad0| 70 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |p);. | |
|00005ae0| 20 20 20 73 75 63 63 65 | 73 73 20 3a 3d 20 43 72 | succe|ss := Cr|
|00005af0| 65 61 74 65 5f 73 74 72 | 75 63 74 75 72 65 28 70 |eate_str|ucture(p|
|00005b00| 2c 20 68 65 78 2c 20 32 | 29 3b 0d 20 20 20 20 20 |, hex, 2|);. |
|00005b10| 20 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 20 | e|nd;. |
|00005b20| 20 20 65 6e 64 3b 0d 20 | 20 20 20 20 20 0d 20 20 | end;. | . |
|00005b30| 20 2f 2f 20 53 65 65 20 | 69 66 20 77 65 20 6e 65 | // See |if we ne|
|00005b40| 65 64 20 74 6f 20 72 65 | 6f 72 67 61 6e 69 7a 65 |ed to re|organize|
|00005b50| 20 74 68 65 20 62 61 72 | 72 61 63 6b 73 0d 20 20 | the bar|racks. |
|00005b60| 20 69 66 20 28 4e 65 77 | 5f 74 72 6f 6f 70 28 70 | if (New|_troop(p|
|00005b70| 29 29 20 74 68 65 6e 0d | 20 20 20 20 20 20 62 65 |)) then.| be|
|00005b80| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 20 73 74 72 |gin. | str|
|00005b90| 75 63 74 20 3a 3d 20 46 | 69 72 73 74 5f 73 74 72 |uct := F|irst_str|
|00005ba0| 75 63 74 75 72 65 28 70 | 29 3b 0d 20 20 20 20 20 |ucture(p|);. |
|00005bb0| 20 20 20 20 77 68 69 6c | 65 20 28 73 74 72 75 63 | whil|e (struc|
|00005bc0| 74 20 3c 3e 20 6e 69 6c | 29 20 64 6f 0d 20 20 20 |t <> nil|) do. |
|00005bd0| 20 20 20 20 20 20 20 20 | 20 62 65 67 69 6e 0d 20 | | begin. |
|00005be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00005bf0| 20 28 28 53 74 72 75 63 | 74 75 72 65 5f 74 79 70 | ((Struc|ture_typ|
|00005c00| 65 28 70 2c 20 73 74 72 | 75 63 74 29 20 3d 20 32 |e(p, str|uct) = 2|
|00005c10| 29 20 61 6e 64 0d 20 20 | 20 20 20 20 20 20 20 20 |) and. | |
|00005c20| 20 20 20 20 20 20 20 20 | 20 28 53 74 72 75 63 74 | | (Struct|
|00005c30| 75 72 65 5f 6c 65 66 74 | 28 70 2c 20 73 74 72 75 |ure_left|(p, stru|
|00005c40| 63 74 29 20 3d 20 30 29 | 29 20 74 68 65 6e 0d 20 |ct) = 0)|) then. |
|00005c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c60| 20 62 65 67 69 6e 0d 20 | 20 20 20 20 20 20 20 20 | begin. | |
|00005c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 43 | | // C|
|00005c80| 6c 65 61 72 20 74 68 65 | 20 6f 6c 64 20 74 72 6f |lear the| old tro|
|00005c90| 6f 70 73 20 69 6e 20 74 | 68 65 20 62 61 72 72 61 |ops in t|he barra|
|00005ca0| 63 6b 73 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |cks. | |
|00005cb0| 20 20 20 20 20 20 20 20 | 20 69 20 3a 3d 20 31 3b | | i := 1;|
|00005cc0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005cd0| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 69 20 3c | wh|ile (i <|
|00005ce0| 20 38 29 20 64 6f 0d 20 | 20 20 20 20 20 20 20 20 | 8) do. | |
|00005cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00005d00| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |egin. | |
|00005d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d20| 73 75 63 63 65 73 73 20 | 3a 3d 20 53 65 74 5f 62 |success |:= Set_b|
|00005d30| 61 72 72 61 63 6b 73 28 | 70 2c 20 73 74 72 75 63 |arracks(|p, struc|
|00005d40| 74 2c 20 69 2c 20 30 29 | 3b 0d 20 20 20 20 20 20 |t, i, 0)|;. |
|00005d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d60| 20 20 20 20 20 69 20 3a | 3d 20 69 20 2b 20 31 3b | i :|= i + 1;|
|00005d70| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005d80| 20 20 20 20 20 20 20 20 | 20 65 6e 64 3b 0d 20 20 | | end;. |
|00005d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005da0| 20 20 20 2f 2f 20 4e 6f | 77 20 72 65 66 69 6c 6c | // No|w refill|
|00005db0| 20 74 68 65 20 62 61 72 | 72 61 63 6b 73 2c 20 74 | the bar|racks, t|
|00005dc0| 72 79 20 6f 6e 65 20 6f | 66 20 65 61 63 68 0d 20 |ry one o|f each. |
|00005dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005de0| 20 20 20 20 69 20 3a 3d | 20 37 3b 0d 20 20 20 20 | i :=| 7;. |
|00005df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e00| 20 77 68 69 6c 65 20 28 | 69 20 3e 20 31 29 20 64 | while (|i > 1) d|
|00005e10| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o. | |
|00005e20| 20 20 20 20 20 20 20 20 | 20 20 62 65 67 69 6e 0d | | begin.|
|00005e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e40| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 43 | | if (C|
|00005e50| 61 6e 5f 62 75 69 6c 64 | 5f 74 72 6f 6f 70 28 70 |an_build|_troop(p|
|00005e60| 2c 20 69 29 29 20 74 68 | 65 6e 0d 20 20 20 20 20 |, i)) th|en. |
|00005e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e80| 20 20 20 20 20 20 20 20 | 20 73 75 63 63 65 73 73 | | success|
|00005e90| 20 3a 3d 20 53 65 74 5f | 62 61 72 72 61 63 6b 73 | := Set_|barracks|
|00005ea0| 28 70 2c 20 73 74 72 75 | 63 74 2c 20 69 2c 20 47 |(p, stru|ct, i, G|
|00005eb0| 65 74 5f 62 61 72 72 61 | 63 6b 73 28 70 2c 20 73 |et_barra|cks(p, s|
|00005ec0| 74 72 75 63 74 2c 20 69 | 29 2b 31 29 3b 0d 20 20 |truct, i|)+1);. |
|00005ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ee0| 20 20 20 20 20 20 20 20 | 20 69 20 3a 3d 20 69 20 | | i := i |
|00005ef0| 2d 20 31 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |- 1;. | |
|00005f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6e 64 | | end|
|00005f10| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00005f20| 20 20 20 20 65 6e 64 3b | 0d 20 20 20 20 20 20 20 | end;|. |
|00005f30| 20 20 20 20 20 20 20 20 | 73 74 72 75 63 74 20 3a | |struct :|
|00005f40| 3d 20 4e 65 78 74 5f 73 | 74 72 75 63 74 75 72 65 |= Next_s|tructure|
|00005f50| 28 70 2c 20 73 74 72 75 | 63 74 29 3b 0d 20 20 20 |(p, stru|ct);. |
|00005f60| 20 20 20 20 20 20 20 20 | 20 65 6e 64 3b 0d 20 20 | | end;. |
|00005f70| 20 20 20 20 65 6e 64 3b | 0d 65 6e 64 3b 0d 0d 0d | end;|.end;...|
|00005f80| 0d 0d 0d 0d 0d 0d 0d 73 | 74 72 75 63 74 29 3b 0d |.......s|truct);.|
|00005f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6e 64 3b | | end;|
|00005fa0| 0d 20 20 20 20 20 20 65 | 6e 64 3b 0d 65 6e 64 3b |. e|nd;.end;|
|00005fb0| 0d 0d 0d 0d 0d 0d 0d 0d | 0d 00 00 01 f8 00 01 00 |........|........|
|00005fc0| 00 00 00 00 01 00 03 00 | 00 00 00 00 d8 00 03 00 |........|........|
|00005fd0| 00 00 00 01 11 00 03 00 | 00 00 00 00 d8 00 03 00 |........|........|
|00005fe0| 00 00 00 00 d9 00 03 00 | 00 00 00 00 05 00 08 00 |........|........|
|00005ff0| 00 00 00 00 3e 00 03 00 | 00 00 00 00 d8 00 06 00 |....>...|........|
|00006000| 23 00 00 00 00 00 05 00 | 23 00 00 6b f8 00 03 00 |#.......|#..k....|
|00006010| 00 00 00 00 88 00 06 00 | 43 00 03 00 00 00 05 00 |........|C.......|
|00006020| 43 00 03 6b f8 00 00 00 | 65 00 00 00 00 00 03 00 |C..k....|e.......|
|00006030| 00 00 00 00 05 00 08 00 | 00 00 00 00 3e 00 05 00 |........|....>...|
|00006040| 23 00 00 fd bc 00 05 00 | 43 00 03 31 f0 00 03 00 |#.......|C..1....|
|00006050| 00 00 00 00 89 00 06 00 | 43 00 01 00 00 00 05 00 |........|C.......|
|00006060| 43 00 01 c2 b0 00 00 00 | 65 00 00 00 00 00 03 00 |C.......|e.......|
|00006070| 00 00 00 00 05 00 08 00 | 00 00 00 00 37 00 05 00 |........|....7...|
|00006080| 23 00 00 00 14 00 05 00 | 43 00 01 fc 48 00 03 00 |#.......|C...H...|
|00006090| 00 00 00 00 8b 00 05 00 | 23 00 00 6b f8 00 05 00 |........|#..k....|
|000060a0| 43 00 03 fc 48 00 03 00 | 00 00 00 00 8b 00 03 00 |C...H...|........|
|000060b0| 00 00 00 00 01 00 08 00 | 00 00 00 00 23 00 05 00 |........|....#...|
|000060c0| 43 00 01 00 00 00 06 00 | 43 00 03 1a 1b 00 01 00 |C.......|C.......|
|000060d0| 00 00 00 00 32 00 05 00 | 23 00 00 10 3a 00 05 00 |....2...|#...:...|
|000060e0| 43 00 01 49 28 00 03 00 | 00 00 00 00 8b 00 05 00 |C..I(...|........|
|000060f0| 23 00 00 6b f8 00 05 00 | 43 00 03 49 28 00 03 00 |#..k....|C..I(...|
|00006100| 00 00 00 00 8b 00 03 00 | 00 00 00 00 02 00 00 00 |........|........|
|00006110| 06 00 00 00 04 00 03 00 | 00 00 00 00 84 00 00 00 |........|........|
|00006120| 06 00 00 00 00 00 03 00 | 00 00 00 00 02 00 03 00 |........|........|
|00006130| 00 00 00 00 0c 00 08 00 | 00 00 00 00 32 00 05 00 |........|....2...|
|00006140| 43 00 01 0b a8 00 06 00 | 43 00 03 b2 80 00 05 00 |C.......|C.......|
|00006150| 23 00 00 04 44 00 05 00 | 43 00 01 00 98 00 03 00 |#...D...|C.......|
|00006160| 00 00 00 00 89 00 06 00 | 43 00 01 6b f4 00 01 00 |........|C..k....|
|00006170| 00 00 00 00 14 00 05 00 | 23 00 00 00 00 00 05 00 |........|#.......|
|00006180| 43 00 03 00 03 00 03 00 | 00 00 00 00 8e 00 06 00 |C.......|........|
|00006190| c3 00 04 b6 ac 00 05 00 | c3 00 04 c2 b0 00 03 00 |........|........|
|000061a0| 00 00 00 00 85 00 06 01 | 03 00 05 03 c0 00 09 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 7e 00 01 00 0c 00 0c 00 |........|~.......|
|000061c0| 0c 00 0c 00 0c 00 0c 00 | 0f 00 0f 00 10 00 10 00 |........|........|
|000061d0| 10 00 11 00 11 00 11 00 | 11 00 13 00 13 00 13 00 |........|........|
|000061e0| 13 00 14 00 14 00 14 00 | 14 00 16 00 16 00 16 00 |........|........|
|000061f0| 16 00 16 00 16 00 16 00 | 16 00 17 00 17 00 18 00 |........|........|
|00006200| 18 00 18 00 18 00 18 00 | 18 00 18 00 18 00 19 00 |........|........|
|00006210| 19 00 19 00 19 00 19 00 | 19 00 1a 00 1a 00 1b 00 |........|........|
|00006220| 1b 00 1b 00 1b 00 1c 00 | 1d 00 1d 00 1d 00 1d 00 |........|........|
|00006230| 1e 00 1e 00 1e 00 21 00 | 00 01 10 00 01 00 00 00 |......!.|........|
|00006240| 00 00 01 00 03 00 00 00 | 00 00 d8 00 03 00 00 00 |........|........|
|00006250| 00 01 11 00 03 00 00 00 | 00 00 d8 00 03 00 00 00 |........|........|
|00006260| 00 00 d9 00 03 00 00 00 | 00 00 05 00 08 00 00 00 |........|........|
|00006270| 00 00 21 00 03 00 00 00 | 00 00 99 00 06 00 c5 00 |..!.....|........|
|00006280| 00 00 00 00 00 00 06 00 | 00 00 01 00 06 00 c5 00 |........|........|
|00006290| 01 00 00 00 00 00 06 00 | 00 00 00 00 06 00 c5 00 |........|........|
|000062a0| 02 00 00 00 05 00 c5 00 | 01 00 ef 00 05 00 c5 00 |........|........|
|000062b0| 00 00 ef 00 03 00 00 00 | 00 00 01 00 08 00 00 00 |........|........|
|000062c0| 00 00 1e 00 05 00 c5 00 | 01 c2 b0 00 03 00 00 00 |........|........|
|000062d0| 00 00 9a 00 05 00 c5 00 | 02 c2 b0 00 03 00 00 00 |........|........|
|000062e0| 00 00 9a 00 03 00 00 00 | 00 00 01 00 08 00 00 00 |........|........|
|000062f0| 00 00 19 00 05 00 c5 00 | 01 00 85 00 06 00 c5 00 |........|........|
|00006300| 02 fb 60 00 05 00 c5 00 | 01 00 02 00 00 00 06 00 |..`.....|........|
|00006310| 00 00 01 00 03 00 00 00 | 00 00 06 00 06 00 c5 00 |........|........|
|00006320| 01 a4 3c 00 01 00 00 00 | 00 00 0d 00 05 00 c5 00 |..<.....|........|
|00006330| 02 00 8e 00 03 00 00 00 | 00 00 9d 00 06 01 05 00 |........|........|
|00006340| 03 00 00 00 09 00 00 00 | 00 00 00 00 00 00 44 00 |........|......D.|
|00006350| 01 00 0a 00 0a 00 0a 00 | 0a 00 0a 00 0a 00 0d 00 |........|........|
|00006360| 0d 00 0e 00 0e 00 0f 00 | 0f 00 10 00 10 00 10 00 |........|........|
|00006370| 10 00 12 00 12 00 12 00 | 12 00 12 00 12 00 13 00 |........|........|
|00006380| 13 00 14 00 14 00 14 00 | 14 00 15 00 16 00 16 00 |........|........|
|00006390| 16 00 18 00 00 02 d8 00 | 01 00 00 00 00 00 21 00 |........|......!.|
|000063a0| 05 00 9f ff fd 0b a8 00 | 03 00 00 00 00 01 2e 00 |........|........|
|000063b0| 05 00 9f ff fd 00 00 00 | 03 00 00 00 00 01 2f 00 |........|....../.|
|000063c0| 05 00 9f ff fd 00 a0 00 | 03 00 00 00 00 01 31 00 |........|......1.|
|000063d0| 05 00 9f ff fd 11 dc 00 | 03 00 00 00 00 01 30 00 |........|......0.|
|000063e0| 03 00 00 00 00 00 06 00 | 03 00 00 00 00 00 06 00 |........|........|
|000063f0| 03 00 00 00 00 00 06 00 | 06 00 df 00 00 00 11 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.