home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-11-02 | 28.4 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 76 c6 03 2f 2f 3d 3d 3d |........|v..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 47 |========|==..// G|
|00000060| 6f 61 6c 43 6f 6e 74 65 | 78 74 2e 75 63 0d 0a 2f |oalConte|xt.uc../|
|00000070| 2f 20 24 41 75 74 68 6f | 72 3a 20 4d 66 6f 78 20 |/ $Autho|r: Mfox |
|00000080| 24 0d 0a 2f 2f 20 24 44 | 61 74 65 3a 20 31 30 2f |$..// $D|ate: 10/|
|00000090| 32 36 2f 39 39 20 35 3a | 33 38 70 20 24 0d 0a 2f |26/99 5:|38p $../|
|000000a0| 2f 20 24 52 65 76 69 73 | 69 6f 6e 3a 20 31 20 24 |/ $Revis|ion: 1 $|
|000000b0| 0d 0a 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..//====|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 0d 0a 0d 0a 63 6c 61 | 73 73 20 47 6f 61 6c 43 |=....cla|ss GoalC|
|00000110| 6f 6e 74 65 78 74 20 65 | 78 70 61 6e 64 73 20 47 |ontext e|xpands G|
|00000120| 6f 61 6c 43 6f 6e 74 65 | 78 74 49 6e 74 65 72 66 |oalConte|xtInterf|
|00000130| 20 6e 61 74 69 76 65 3b | 0d 0a 0d 0a 76 61 72 20 | native;|....var |
|00000140| 28 29 20 70 72 69 76 61 | 74 65 20 63 6c 61 73 73 |() priva|te class|
|00000150| 3c 43 6f 6e 74 65 78 74 | 53 65 6e 73 69 74 69 76 |<Context|Sensitiv|
|00000160| 65 47 6f 61 6c 3e 20 09 | 4e 61 76 69 67 61 74 69 |eGoal> .|Navigati|
|00000170| 6f 6e 47 6f 61 6c 54 79 | 70 65 3b 0d 0a 76 61 72 |onGoalTy|pe;..var|
|00000180| 20 28 29 20 70 72 69 76 | 61 74 65 20 63 6c 61 73 | () priv|ate clas|
|00000190| 73 3c 47 6f 61 6c 52 65 | 61 63 68 65 64 48 61 6e |s<GoalRe|achedHan|
|000001a0| 64 6c 65 72 3e 20 09 52 | 65 61 63 68 65 64 48 61 |dler> .R|eachedHa|
|000001b0| 6e 64 6c 65 72 43 6c 61 | 73 73 3b 0d 0a 0d 0a 76 |ndlerCla|ss;....v|
|000001c0| 61 72 20 70 72 69 76 61 | 74 65 20 4f 62 6a 65 63 |ar priva|te Objec|
|000001d0| 74 09 09 09 09 09 09 09 | 43 6f 6e 74 65 78 74 4f |t.......|ContextO|
|000001e0| 62 6a 65 63 74 3b 0d 0a | 76 61 72 20 70 72 69 76 |bject;..|var priv|
|000001f0| 61 74 65 20 47 6f 61 6c | 43 61 63 68 65 49 6e 66 |ate Goal|CacheInf|
|00000200| 6f 20 09 09 09 09 09 47 | 6f 61 6c 43 61 63 68 65 |o .....G|oalCache|
|00000210| 3b 0d 0a 76 61 72 20 70 | 72 69 76 61 74 65 20 47 |;..var p|rivate G|
|00000220| 6f 61 6c 41 62 73 74 72 | 61 63 74 65 72 49 6e 74 |oalAbstr|acterInt|
|00000230| 65 72 66 09 09 09 4e 61 | 76 69 67 61 74 69 6f 6e |erf...Na|vigation|
|00000240| 47 6f 61 6c 3b 0d 0a 76 | 61 72 20 70 72 69 76 61 |Goal;..v|ar priva|
|00000250| 74 65 20 47 6f 61 6c 52 | 65 61 63 68 65 64 48 61 |te GoalR|eachedHa|
|00000260| 6e 64 6c 65 72 20 09 09 | 09 09 52 65 61 63 68 65 |ndler ..|..Reache|
|00000270| 64 48 61 6e 64 6c 65 72 | 3b 0d 0a 0d 0a 76 61 72 |dHandler|;....var|
|00000280| 20 70 72 69 76 61 74 65 | 20 52 6f 74 61 74 6f 72 | private| Rotator|
|00000290| 09 09 09 09 09 09 09 41 | 73 73 6f 63 69 61 74 65 |.......A|ssociate|
|000002a0| 64 52 6f 74 61 74 69 6f | 6e 3b 0d 0a 76 61 72 20 |dRotatio|n;..var |
|000002b0| 70 72 69 76 61 74 65 20 | 62 6f 6f 6c 09 09 09 09 |private |bool....|
|000002c0| 09 09 09 62 55 73 65 41 | 73 73 6f 63 69 61 74 65 |...bUseA|ssociate|
|000002d0| 64 52 6f 74 61 74 69 6f | 6e 3b 0d 0a 0d 0a 63 6f |dRotatio|n;....co|
|000002e0| 6e 73 74 20 4e 61 76 69 | 67 61 62 6c 65 41 76 6f |nst Navi|gableAvo|
|000002f0| 69 64 47 6f 61 6c 52 61 | 64 69 75 73 20 3d 20 35 |idGoalRa|dius = 5|
|00000300| 30 30 2e 30 3b 0d 0a 63 | 6f 6e 73 74 20 46 69 6e |00.0;..c|onst Fin|
|00000310| 64 52 65 61 63 68 61 62 | 6c 65 52 61 6e 64 6f 6d |dReachab|leRandom|
|00000320| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 52 |Navigati|onPointR|
|00000330| 61 64 69 75 73 20 3d 20 | 38 30 30 3b 0d 0a 63 6f |adius = |800;..co|
|00000340| 6e 73 74 20 62 55 73 65 | 45 6e 67 69 6e 65 50 61 |nst bUse|EnginePa|
|00000350| 74 68 69 6e 67 20 3d 20 | 74 72 75 65 3b 0d 0a 0d |thing = |true;...|
|00000360| 0a 0d 0a 0d 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.....//=|========|
|00000370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003b0| 3d 3d 3d 3d 0d 0a 2f 2f | 20 70 75 62 6c 69 63 20 |====..//| public |
|000003c0| 69 6e 74 65 72 66 61 63 | 65 0d 0a 2f 2f 3d 3d 3d |interfac|e..//===|
|000003d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000400| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 0d 0a 0d 0a |========|==......|
|00000420| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 65 73 74 72 |..functi|on Destr|
|00000430| 75 63 74 65 64 28 29 0d | 0a 7b 0d 0a 09 47 6f 61 |ucted().|.{...Goa|
|00000440| 6c 43 6f 6e 74 65 78 74 | 49 6e 69 74 28 20 4e 6f |lContext|Init( No|
|00000450| 6e 65 2c 20 4e 6f 6e 65 | 20 29 3b 0d 0a 09 69 66 |ne, None| );...if|
|00000460| 28 20 4e 61 76 69 67 61 | 74 69 6f 6e 47 6f 61 6c |( Naviga|tionGoal|
|00000470| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | != None| )...{..|
|00000480| 09 09 4e 61 76 69 67 61 | 74 69 6f 6e 47 6f 61 6c |..Naviga|tionGoal|
|00000490| 2e 44 65 6c 65 74 65 28 | 29 3b 0d 0a 09 09 4e 61 |.Delete(|);....Na|
|000004a0| 76 69 67 61 74 69 6f 6e | 47 6f 61 6c 20 3d 20 4e |vigation|Goal = N|
|000004b0| 6f 6e 65 3b 0d 0a 09 7d | 0d 0a 09 69 66 28 20 47 |one;...}|...if( G|
|000004c0| 6f 61 6c 43 61 63 68 65 | 20 21 3d 20 4e 6f 6e 65 |oalCache| != None|
|000004d0| 20 29 0d 0a 09 7b 0d 0a | 09 09 47 6f 61 6c 43 61 | )...{..|..GoalCa|
|000004e0| 63 68 65 2e 44 65 6c 65 | 74 65 28 29 3b 0d 0a 09 |che.Dele|te();...|
|000004f0| 09 47 6f 61 6c 43 61 63 | 68 65 20 3d 20 4e 6f 6e |.GoalCac|he = Non|
|00000500| 65 3b 0d 0a 09 7d 0d 0a | 09 69 66 28 20 52 65 61 |e;...}..|.if( Rea|
|00000510| 63 68 65 64 48 61 6e 64 | 6c 65 72 20 21 3d 20 4e |chedHand|ler != N|
|00000520| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 52 65 61 |one )...|{....Rea|
|00000530| 63 68 65 64 48 61 6e 64 | 6c 65 72 2e 44 65 6c 65 |chedHand|ler.Dele|
|00000540| 74 65 28 29 3b 0d 0a 09 | 09 52 65 61 63 68 65 64 |te();...|.Reached|
|00000550| 48 61 6e 64 6c 65 72 20 | 3d 20 4e 6f 6e 65 3b 0d |Handler |= None;.|
|00000560| 0a 09 7d 0d 0a 09 53 75 | 70 65 72 2e 44 65 73 74 |..}...Su|per.Dest|
|00000570| 72 75 63 74 65 64 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |ructed()|;..}....|
|00000580| 0d 0a 0d 0a 73 74 61 74 | 69 63 20 65 76 65 6e 74 |....stat|ic event|
|00000590| 20 43 72 65 61 74 65 47 | 6f 61 6c 43 6f 6e 74 65 | CreateG|oalConte|
|000005a0| 78 74 28 20 6f 75 74 20 | 47 6f 61 6c 43 6f 6e 74 |xt( out |GoalCont|
|000005b0| 65 78 74 49 6e 74 65 72 | 66 20 4e 65 77 43 6f 6e |extInter|f NewCon|
|000005c0| 74 65 78 74 49 6e 74 65 | 72 66 2c 0d 0a 09 09 47 |textInte|rf,....G|
|000005d0| 6f 61 6c 41 62 73 74 72 | 61 63 74 65 72 49 6e 74 |oalAbstr|acterInt|
|000005e0| 65 72 66 20 43 6f 6e 74 | 65 78 74 4f 66 2c 0d 0a |erf Cont|extOf,..|
|000005f0| 09 09 41 63 74 6f 72 20 | 43 6f 6e 74 65 78 74 41 |..Actor |ContextA|
|00000600| 63 74 6f 72 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ctor )..|{...loca|
|00000610| 6c 20 47 6f 61 6c 43 6f | 6e 74 65 78 74 20 4e 65 |l GoalCo|ntext Ne|
|00000620| 77 43 6f 6e 74 65 78 74 | 3b 0d 0a 09 63 6c 61 73 |wContext|;...clas|
|00000630| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00000640| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|00000650| 74 41 63 74 6f 72 2c 20 | 22 43 72 65 61 74 65 47 |tActor, |"CreateG|
|00000660| 6f 61 6c 43 6f 6e 74 65 | 78 74 22 2c 20 64 65 66 |oalConte|xt", def|
|00000670| 61 75 6c 74 2e 44 65 62 | 75 67 43 61 74 65 67 6f |ault.Deb|ugCatego|
|00000680| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 4e 65 77 43 |ryName )|;...NewC|
|00000690| 6f 6e 74 65 78 74 20 3d | 20 4e 65 77 28 20 43 6f |ontext =| New( Co|
|000006a0| 6e 74 65 78 74 4f 66 20 | 29 64 65 66 61 75 6c 74 |ntextOf |)default|
|000006b0| 2e 43 6c 61 73 73 3b 0d | 0a 09 4e 65 77 43 6f 6e |.Class;.|..NewCon|
|000006c0| 74 65 78 74 2e 4e 61 76 | 69 67 61 74 69 6f 6e 47 |text.Nav|igationG|
|000006d0| 6f 61 6c 20 3d 20 6e 65 | 77 28 20 4e 65 77 43 6f |oal = ne|w( NewCo|
|000006e0| 6e 74 65 78 74 20 29 64 | 65 66 61 75 6c 74 2e 4e |ntext )d|efault.N|
|000006f0| 61 76 69 67 61 74 69 6f | 6e 47 6f 61 6c 54 79 70 |avigatio|nGoalTyp|
|00000700| 65 3b 0d 0a 09 63 6c 61 | 73 73 27 47 6f 61 6c 43 |e;...cla|ss'GoalC|
|00000710| 61 63 68 65 49 6e 66 6f | 27 2e 73 74 61 74 69 63 |acheInfo|'.static|
|00000720| 2e 43 72 65 61 74 65 47 | 6f 61 6c 43 61 63 68 65 |.CreateG|oalCache|
|00000730| 28 20 4e 65 77 43 6f 6e | 74 65 78 74 2e 47 6f 61 |( NewCon|text.Goa|
|00000740| 6c 43 61 63 68 65 2c 20 | 4e 65 77 43 6f 6e 74 65 |lCache, |NewConte|
|00000750| 78 74 2c 20 43 6f 6e 74 | 65 78 74 4f 66 2c 20 43 |xt, Cont|extOf, C|
|00000760| 6f 6e 74 65 78 74 41 63 | 74 6f 72 20 29 3b 0d 0a |ontextAc|tor );..|
|00000770| 09 69 66 28 20 28 20 4e | 65 77 43 6f 6e 74 65 78 |.if( ( N|ewContex|
|00000780| 74 2e 52 65 61 63 68 65 | 64 48 61 6e 64 6c 65 72 |t.Reache|dHandler|
|00000790| 43 6c 61 73 73 20 21 3d | 20 4e 6f 6e 65 20 29 20 |Class !=| None ) |
|000007a0| 29 0d 0a 09 7b 0d 0a 09 | 09 4e 65 77 43 6f 6e 74 |)...{...|.NewCont|
|000007b0| 65 78 74 2e 42 69 6e 64 | 52 65 61 63 68 65 64 48 |ext.Bind|ReachedH|
|000007c0| 61 6e 64 6c 65 72 28 20 | 6e 65 77 28 20 4e 65 77 |andler( |new( New|
|000007d0| 43 6f 6e 74 65 78 74 20 | 29 4e 65 77 43 6f 6e 74 |Context |)NewCont|
|000007e0| 65 78 74 2e 52 65 61 63 | 68 65 64 48 61 6e 64 6c |ext.Reac|hedHandl|
|000007f0| 65 72 43 6c 61 73 73 20 | 29 3b 0d 0a 09 7d 0d 0a |erClass |);...}..|
|00000800| 09 4e 65 77 43 6f 6e 74 | 65 78 74 2e 47 6f 61 6c |.NewCont|ext.Goal|
|00000810| 43 6f 6e 74 65 78 74 49 | 6e 69 74 28 20 43 6f 6e |ContextI|nit( Con|
|00000820| 74 65 78 74 4f 66 2c 20 | 43 6f 6e 74 65 78 74 41 |textOf, |ContextA|
|00000830| 63 74 6f 72 20 29 3b 0d | 0a 09 4e 65 77 43 6f 6e |ctor );.|..NewCon|
|00000840| 74 65 78 74 49 6e 74 65 | 72 66 20 3d 20 4e 65 77 |textInte|rf = New|
|00000850| 43 6f 6e 74 65 78 74 3b | 0d 0a 7d 0d 0a 0d 0a 0d |Context;|..}.....|
|00000860| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 42 69 6e 64 |...funct|ion Bind|
|00000870| 52 65 61 63 68 65 64 48 | 61 6e 64 6c 65 72 28 20 |ReachedH|andler( |
|00000880| 47 6f 61 6c 52 65 61 63 | 68 65 64 48 61 6e 64 6c |GoalReac|hedHandl|
|00000890| 65 72 20 4e 65 77 52 65 | 61 63 68 65 64 48 61 6e |er NewRe|achedHan|
|000008a0| 64 6c 65 72 20 29 0d 0a | 7b 0d 0a 09 63 6c 61 73 |dler )..|{...clas|
|000008b0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|000008c0| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|000008d0| 74 4f 62 6a 65 63 74 2c | 20 22 42 69 6e 64 52 65 |tObject,| "BindRe|
|000008e0| 61 63 68 65 64 48 61 6e | 64 6c 65 72 20 4e 65 77 |achedHan|dler New|
|000008f0| 52 65 61 63 68 65 64 48 | 61 6e 64 6c 65 72 20 22 |ReachedH|andler "|
|00000900| 20 24 20 4e 65 77 52 65 | 61 63 68 65 64 48 61 6e | $ NewRe|achedHan|
|00000910| 64 6c 65 72 2c 20 44 65 | 62 75 67 43 61 74 65 67 |dler, De|bugCateg|
|00000920| 6f 72 79 4e 61 6d 65 20 | 29 3b 0d 0a 09 52 65 61 |oryName |);...Rea|
|00000930| 63 68 65 64 48 61 6e 64 | 6c 65 72 20 3d 20 4e 65 |chedHand|ler = Ne|
|00000940| 77 52 65 61 63 68 65 64 | 48 61 6e 64 6c 65 72 3b |wReached|Handler;|
|00000950| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 0d 0a 65 76 65 6e 74 |..}.....|...event|
|00000960| 20 62 6f 6f 6c 20 55 6c | 74 69 6d 61 74 65 47 6f | bool Ul|timateGo|
|00000970| 61 6c 52 65 61 63 68 65 | 64 28 29 0d 0a 7b 0d 0a |alReache|d()..{..|
|00000980| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|00000990| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 43 |atic.Deb|ugLog( C|
|000009a0| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 2c 20 22 55 |ontextOb|ject, "U|
|000009b0| 6c 74 69 6d 61 74 65 47 | 6f 61 6c 52 65 61 63 68 |ltimateG|oalReach|
|000009c0| 65 64 20 4f 75 74 65 72 | 22 20 24 20 4f 75 74 65 |ed Outer|" $ Oute|
|000009d0| 72 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |r, Debug|Category|
|000009e0| 4e 61 6d 65 20 29 3b 0d | 0a 09 63 6c 61 73 73 27 |Name );.|..class'|
|000009f0| 44 65 62 75 67 27 2e 73 | 74 61 74 69 63 2e 44 65 |Debug'.s|tatic.De|
|00000a00| 62 75 67 4c 6f 67 28 20 | 43 6f 6e 74 65 78 74 4f |bugLog( |ContextO|
|00000a10| 62 6a 65 63 74 2c 20 22 | 55 6c 74 69 6d 61 74 65 |bject, "|Ultimate|
|00000a20| 47 6f 61 6c 52 65 61 63 | 68 65 64 20 52 65 61 63 |GoalReac|hed Reac|
|00000a30| 68 65 64 48 61 6e 64 6c | 65 72 20 22 20 24 20 52 |hedHandl|er " $ R|
|00000a40| 65 61 63 68 65 64 48 61 | 6e 64 6c 65 72 2c 20 44 |eachedHa|ndler, D|
|00000a50| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00000a60| 20 29 3b 0d 0a 09 0d 0a | 09 69 66 28 20 52 65 61 | );.....|.if( Rea|
|00000a70| 63 68 65 64 48 61 6e 64 | 6c 65 72 20 21 3d 20 4e |chedHand|ler != N|
|00000a80| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 52 65 61 |one )...|{....Rea|
|00000a90| 63 68 65 64 48 61 6e 64 | 6c 65 72 2e 4f 6e 55 6c |chedHand|ler.OnUl|
|00000aa0| 74 69 6d 61 74 65 47 6f | 61 6c 52 65 61 63 68 65 |timateGo|alReache|
|00000ab0| 64 42 79 28 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 |dBy( Con|textObje|
|00000ac0| 63 74 2c 20 47 6f 61 6c | 41 62 73 74 72 61 63 74 |ct, Goal|Abstract|
|00000ad0| 65 72 49 6e 74 65 72 66 | 28 20 4f 75 74 65 72 20 |erInterf|( Outer |
|00000ae0| 29 20 29 3b 0d 0a 09 7d | 0d 0a 09 72 65 74 75 72 |) );...}|...retur|
|00000af0| 6e 20 74 72 75 65 3b 0d | 0a 7d 0d 0a 0d 0a 0d 0a |n true;.|.}......|
|00000b00| 0d 0a 65 76 65 6e 74 20 | 49 6e 74 65 72 6d 65 64 |..event |Intermed|
|00000b10| 69 61 74 65 47 6f 61 6c | 52 65 61 63 68 65 64 28 |iateGoal|Reached(|
|00000b20| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 4e 61 76 |)..{...l|ocal Nav|
|00000b30| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 43 75 72 |igationP|oint Cur|
|00000b40| 72 65 6e 74 4e 61 76 69 | 67 50 6f 69 6e 74 2c 20 |rentNavi|gPoint, |
|00000b50| 4e 65 78 74 4e 61 76 69 | 67 50 6f 69 6e 74 3b 0d |NextNavi|gPoint;.|
|00000b60| 0a 09 6c 6f 63 61 6c 20 | 41 63 74 6f 72 20 4e 61 |..local |Actor Na|
|00000b70| 76 69 67 61 74 69 6f 6e | 47 6f 61 6c 41 63 74 6f |vigation|GoalActo|
|00000b80| 72 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |r;...loc|al float|
|00000b90| 20 4e 65 78 74 54 72 61 | 76 65 6c 44 69 73 74 61 | NextTra|velDista|
|00000ba0| 6e 63 65 2c 20 43 75 72 | 72 65 6e 74 41 63 74 6f |nce, Cur|rentActo|
|00000bb0| 72 53 70 65 65 64 3b 0d | 0a 0d 0a 09 63 6c 61 73 |rSpeed;.|....clas|
|00000bc0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00000bd0| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|00000be0| 74 4f 62 6a 65 63 74 2c | 20 22 49 6e 74 65 72 6d |tObject,| "Interm|
|00000bf0| 65 64 69 61 74 65 47 6f | 61 6c 52 65 61 63 68 65 |ediateGo|alReache|
|00000c00| 64 20 4f 75 74 65 72 22 | 20 24 20 4f 75 74 65 72 |d Outer"| $ Outer|
|00000c10| 2c 20 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |, DebugC|ategoryN|
|00000c20| 61 6d 65 20 29 3b 0d 0a | 09 63 6c 61 73 73 27 44 |ame );..|.class'D|
|00000c30| 65 62 75 67 27 2e 73 74 | 61 74 69 63 2e 44 65 62 |ebug'.st|atic.Deb|
|00000c40| 75 67 4c 6f 67 28 20 43 | 6f 6e 74 65 78 74 4f 62 |ugLog( C|ontextOb|
|00000c50| 6a 65 63 74 2c 20 22 49 | 6e 74 65 72 6d 65 64 69 |ject, "I|ntermedi|
|00000c60| 61 74 65 47 6f 61 6c 52 | 65 61 63 68 65 64 20 52 |ateGoalR|eached R|
|00000c70| 65 61 63 68 65 64 48 61 | 6e 64 6c 65 72 20 22 20 |eachedHa|ndler " |
|00000c80| 24 20 52 65 61 63 68 65 | 64 48 61 6e 64 6c 65 72 |$ Reache|dHandler|
|00000c90| 2c 20 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |, DebugC|ategoryN|
|00000ca0| 61 6d 65 20 29 3b 0d 0a | 09 0d 0a 09 69 66 28 20 |ame );..|....if( |
|00000cb0| 52 65 61 63 68 65 64 48 | 61 6e 64 6c 65 72 20 21 |ReachedH|andler !|
|00000cc0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 7b 0d 0a 09 09 |= None )|...{....|
|00000cd0| 52 65 61 63 68 65 64 48 | 61 6e 64 6c 65 72 2e 4f |ReachedH|andler.O|
|00000ce0| 6e 49 6e 74 65 72 6d 65 | 64 69 61 74 65 47 6f 61 |nInterme|diateGoa|
|00000cf0| 6c 52 65 61 63 68 65 64 | 42 79 28 20 43 6f 6e 74 |lReached|By( Cont|
|00000d00| 65 78 74 4f 62 6a 65 63 | 74 2c 20 4e 61 76 69 67 |extObjec|t, Navig|
|00000d10| 61 74 69 6f 6e 47 6f 61 | 6c 20 29 3b 0d 0a 09 7d |ationGoa|l );...}|
|00000d20| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 0d 0a 2f 2f 3d 3d 3d |..}.....|...//===|
|00000d30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 70 |========|==..// p|
|00000d80| 61 74 68 20 67 6f 61 6c | 20 69 6e 74 65 72 66 61 |ath goal| interfa|
|00000d90| 63 65 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ce..//==|========|
|00000da0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000db0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000dc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000dd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000de0| 3d 3d 3d 0d 0a 0d 0a 0d | 0a 0d 0a 2f 2f 50 61 77 |===.....|...//Paw|
|00000df0| 6e 20 70 72 6f 76 69 64 | 65 73 20 61 20 46 69 6e |n provid|es a Fin|
|00000e00| 64 52 61 6e 64 6f 6d 44 | 65 73 74 28 29 2c 20 62 |dRandomD|est(), b|
|00000e10| 75 74 20 6d 79 20 74 65 | 73 74 73 20 73 65 65 6d |ut my te|sts seem|
|00000e20| 20 74 6f 20 73 68 6f 77 | 20 74 68 61 74 20 69 74 | to show| that it|
|00000e30| 20 70 69 63 6b 73 0d 0a | 2f 2f 6e 61 76 69 67 61 | picks..|//naviga|
|00000e40| 74 69 6f 6e 20 70 6f 69 | 6e 74 73 20 77 68 69 63 |tion poi|nts whic|
|00000e50| 68 20 74 68 65 20 70 61 | 77 6e 20 63 61 6e 6e 6f |h the pa|wn canno|
|00000e60| 74 20 72 65 61 63 68 20 | 64 69 72 65 63 74 6c 79 |t reach |directly|
|00000e70| 2e 20 20 54 68 69 73 20 | 66 6e 20 61 6c 73 6f 0d |. This |fn also.|
|00000e80| 0a 2f 2f 70 69 63 6b 73 | 20 72 61 6e 64 6f 6d 6c |.//picks| randoml|
|00000e90| 79 2c 20 62 75 74 20 6d | 61 6b 65 73 20 73 75 72 |y, but m|akes sur|
|00000ea0| 65 20 74 68 61 74 20 6f | 6e 6c 79 20 72 65 61 63 |e that o|nly reac|
|00000eb0| 68 61 62 6c 65 20 70 6f | 69 6e 74 73 20 61 72 65 |hable po|ints are|
|00000ec0| 20 70 69 63 6b 65 64 2e | 0d 0a 66 75 6e 63 74 69 | picked.|..functi|
|00000ed0| 6f 6e 20 62 6f 6f 6c 20 | 46 69 6e 64 46 69 72 73 |on bool |FindFirs|
|00000ee0| 74 4e 61 76 69 67 61 62 | 6c 65 50 61 74 68 47 6f |tNavigab|lePathGo|
|00000ef0| 61 6c 28 20 47 6f 61 6c | 41 62 73 74 72 61 63 74 |al( Goal|Abstract|
|00000f00| 65 72 49 6e 74 65 72 66 | 20 50 61 74 68 47 6f 61 |erInterf| PathGoa|
|00000f10| 6c 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 4e |l )..{..|.local N|
|00000f20| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 20 43 |avigatio|nPoint C|
|00000f30| 75 72 72 65 6e 74 4e 61 | 76 69 67 50 74 3b 0d 0a |urrentNa|vigPt;..|
|00000f40| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 46 6f 75 |.local b|ool bFou|
|00000f50| 6e 64 50 61 74 68 47 6f | 61 6c 3b 0d 0a 09 6c 6f |ndPathGo|al;...lo|
|00000f60| 63 61 6c 20 41 63 74 6f | 72 20 43 6f 6e 74 65 78 |cal Acto|r Contex|
|00000f70| 74 41 63 74 6f 72 3b 0d | 0a 09 0d 0a 09 63 6c 61 |tActor;.|.....cla|
|00000f80| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|00000f90| 2e 44 65 62 75 67 4c 6f | 67 28 20 43 6f 6e 74 65 |.DebugLo|g( Conte|
|00000fa0| 78 74 4f 62 6a 65 63 74 | 2c 20 22 46 69 6e 64 46 |xtObject|, "FindF|
|00000fb0| 69 72 73 74 4e 61 76 69 | 67 61 62 6c 65 50 61 74 |irstNavi|gablePat|
|00000fc0| 68 47 6f 61 6c 22 2c 20 | 44 65 62 75 67 43 61 74 |hGoal", |DebugCat|
|00000fd0| 65 67 6f 72 79 4e 61 6d | 65 20 29 3b 0d 0a 09 43 |egoryNam|e );...C|
|00000fe0| 6f 6e 74 65 78 74 41 63 | 74 6f 72 20 3d 20 41 63 |ontextAc|tor = Ac|
|00000ff0| 74 6f 72 28 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 |tor( Con|textObje|
|00001000| 63 74 20 29 3b 0d 0a 09 | 69 66 28 20 43 6f 6e 74 |ct );...|if( Cont|
|00001010| 65 78 74 41 63 74 6f 72 | 20 21 3d 20 4e 6f 6e 65 |extActor| != None|
|00001020| 20 29 0d 0a 09 7b 0d 0a | 09 09 66 6f 72 65 61 63 | )...{..|..foreac|
|00001030| 68 20 43 6f 6e 74 65 78 | 74 41 63 74 6f 72 2e 52 |h Contex|tActor.R|
|00001040| 61 64 69 75 73 41 63 74 | 6f 72 73 28 20 63 6c 61 |adiusAct|ors( cla|
|00001050| 73 73 27 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |ss'Navig|ationPoi|
|00001060| 6e 74 27 2c 20 43 75 72 | 72 65 6e 74 4e 61 76 69 |nt', Cur|rentNavi|
|00001070| 67 50 74 2c 0d 0a 09 09 | 09 09 46 69 6e 64 52 65 |gPt,....|..FindRe|
|00001080| 61 63 68 61 62 6c 65 52 | 61 6e 64 6f 6d 4e 61 76 |achableR|andomNav|
|00001090| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 52 61 64 69 |igationP|ointRadi|
|000010a0| 75 73 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 63 6c |us )....|{.....cl|
|000010b0| 61 73 73 27 44 65 62 75 | 67 27 2e 73 74 61 74 69 |ass'Debu|g'.stati|
|000010c0| 63 2e 44 65 62 75 67 4c | 6f 67 28 20 43 6f 6e 74 |c.DebugL|og( Cont|
|000010d0| 65 78 74 4f 62 6a 65 63 | 74 2c 20 22 46 69 6e 64 |extObjec|t, "Find|
|000010e0| 46 69 72 73 74 4e 61 76 | 69 67 61 62 6c 65 50 61 |FirstNav|igablePa|
|000010f0| 74 68 47 6f 61 6c 20 43 | 75 72 72 65 6e 74 4e 61 |thGoal C|urrentNa|
|00001100| 76 69 67 50 74 3a 20 22 | 20 24 20 43 75 72 72 65 |vigPt: "| $ Curre|
|00001110| 6e 74 4e 61 76 69 67 50 | 74 2c 20 44 65 62 75 67 |ntNavigP|t, Debug|
|00001120| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00001130| 0a 09 09 09 50 61 74 68 | 47 6f 61 6c 2e 41 73 73 |....Path|Goal.Ass|
|00001140| 69 67 6e 4f 62 6a 65 63 | 74 28 20 43 6f 6e 74 65 |ignObjec|t( Conte|
|00001150| 78 74 4f 62 6a 65 63 74 | 2c 20 43 75 72 72 65 6e |xtObject|, Curren|
|00001160| 74 4e 61 76 69 67 50 74 | 20 29 3b 0d 0a 09 09 09 |tNavigPt| );.....|
|00001170| 69 66 28 20 50 61 74 68 | 47 6f 61 6c 2e 49 73 47 |if( Path|Goal.IsG|
|00001180| 6f 61 6c 4e 61 76 69 67 | 61 62 6c 65 28 20 43 6f |oalNavig|able( Co|
|00001190| 6e 74 65 78 74 4f 62 6a | 65 63 74 20 29 20 26 26 |ntextObj|ect ) &&|
|000011a0| 20 21 50 61 74 68 47 6f | 61 6c 2e 49 73 47 6f 61 | !PathGo|al.IsGoa|
|000011b0| 6c 52 65 61 63 68 65 64 | 28 20 43 6f 6e 74 65 78 |lReached|( Contex|
|000011c0| 74 4f 62 6a 65 63 74 20 | 29 20 29 0d 0a 09 09 09 |tObject |) ).....|
|000011d0| 7b 0d 0a 09 09 20 20 20 | 09 20 20 20 09 2f 2f 74 |{.... |. .//t|
|000011e0| 68 65 20 70 61 74 68 20 | 67 6f 61 6c 20 69 73 20 |he path |goal is |
|000011f0| 6e 6f 74 20 74 6f 6f 20 | 63 6c 6f 73 65 20 74 6f |not too |close to|
|00001200| 20 74 68 65 20 73 65 61 | 72 63 68 69 6e 67 20 70 | the sea|rching p|
|00001210| 61 77 6e 0d 0a 09 09 09 | 09 2f 2f 74 68 65 20 70 |awn.....|.//the p|
|00001220| 61 74 68 20 67 6f 61 6c | 20 69 73 20 6e 61 76 69 |ath goal| is navi|
|00001230| 67 61 62 6c 65 20 62 79 | 20 74 68 65 20 73 65 61 |gable by| the sea|
|00001240| 72 63 68 69 6e 67 20 70 | 61 77 6e 0d 0a 09 09 09 |rching p|awn.....|
|00001250| 09 62 46 6f 75 6e 64 50 | 61 74 68 47 6f 61 6c 20 |.bFoundP|athGoal |
|00001260| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 62 72 65 |= true;.|.....bre|
|00001270| 61 6b 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |ak;.....|}....}..|
|00001280| 09 7d 0d 0a 09 0d 0a 09 | 63 6c 61 73 73 27 44 65 |.}......|class'De|
|00001290| 62 75 67 27 2e 73 74 61 | 74 69 63 2e 44 65 62 75 |bug'.sta|tic.Debu|
|000012a0| 67 4c 6f 67 28 20 43 6f | 6e 74 65 78 74 4f 62 6a |gLog( Co|ntextObj|
|000012b0| 65 63 74 2c 20 22 46 69 | 6e 64 46 69 72 73 74 4e |ect, "Fi|ndFirstN|
|000012c0| 61 76 69 67 61 62 6c 65 | 50 61 74 68 47 6f 61 6c |avigable|PathGoal|
|000012d0| 20 72 65 74 75 72 6e 69 | 6e 67 20 22 20 24 20 62 | returni|ng " $ b|
|000012e0| 46 6f 75 6e 64 50 61 74 | 68 47 6f 61 6c 2c 20 44 |FoundPat|hGoal, D|
|000012f0| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00001300| 20 29 3b 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 | );.. | return |
|00001310| 62 46 6f 75 6e 64 50 61 | 74 68 47 6f 61 6c 3b 0d |bFoundPa|thGoal;.|
|00001320| 0a 7d 0d 0a 0d 0a 0d 0a | 0d 0a 2f 2f 54 68 65 20 |.}......|..//The |
|00001330| 55 6e 72 65 61 6c 20 65 | 6e 67 69 6e 65 20 70 72 |Unreal e|ngine pr|
|00001340| 6f 76 69 64 65 73 20 6e | 69 66 74 79 20 66 75 6e |ovides n|ifty fun|
|00001350| 63 74 69 6f 6e 73 20 66 | 6f 72 20 66 69 6e 64 69 |ctions f|or findi|
|00001360| 6e 67 20 74 68 65 20 62 | 65 73 74 20 70 61 74 68 |ng the b|est path|
|00001370| 20 0d 0a 2f 2f 73 6f 6d | 65 77 68 65 72 65 2c 20 | ..//som|ewhere, |
|00001380| 62 75 74 20 6e 6f 74 68 | 69 6e 67 20 66 6f 72 20 |but noth|ing for |
|00001390| 77 68 65 6e 20 77 65 20 | 77 61 6e 74 20 74 6f 20 |when we |want to |
|000013a0| 75 73 65 20 70 61 74 68 | 73 20 74 6f 20 67 65 74 |use path|s to get|
|000013b0| 20 2a 61 77 61 79 2a 20 | 66 72 6f 6d 0d 0a 2f 2f | *away* |from..//|
|000013c0| 73 6f 6d 65 74 68 69 6e | 67 20 69 6e 73 74 65 61 |somethin|g instea|
|000013d0| 64 20 6f 66 20 74 6f 77 | 61 72 64 73 20 69 74 2e |d of tow|ards it.|
|000013e0| 20 20 53 6f 2c 20 74 68 | 69 73 20 66 75 6e 63 74 | So, th|is funct|
|000013f0| 69 6f 6e 20 64 6f 65 73 | 20 74 68 61 74 2e 0d 0a |ion does| that...|
|00001400| 2f 2f 52 45 54 55 52 4e | 53 3a 20 55 6c 74 69 6d |//RETURN|S: Ultim|
|00001410| 61 74 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |ate dest|ination |
|00001420| 70 61 74 68 2e 20 20 41 | 63 74 6f 72 52 65 61 63 |path. A|ctorReac|
|00001430| 68 61 62 6c 65 28 52 65 | 74 56 61 6c 29 20 69 73 |hable(Re|tVal) is|
|00001440| 20 6e 6f 74 0d 0a 2f 2f | 6e 65 63 65 73 73 61 72 | not..//|necessar|
|00001450| 69 6c 79 20 74 72 75 65 | 20 2d 2d 20 70 61 77 6e |ily true| -- pawn|
|00001460| 20 6d 69 67 68 74 20 68 | 61 76 65 20 74 6f 20 74 | might h|ave to t|
|00001470| 72 61 76 65 72 73 65 20 | 69 6e 74 65 72 6d 65 64 |raverse |intermed|
|00001480| 69 61 74 65 20 70 61 74 | 68 20 6e 6f 64 65 73 20 |iate pat|h nodes |
|00001490| 66 69 72 73 74 2e 0d 0a | 2f 2f 66 69 6e 64 20 61 |first...|//find a|
|000014a0| 20 72 65 61 63 68 61 62 | 6c 65 20 72 61 6e 64 6f | reachab|le rando|
|000014b0| 6d 20 70 61 74 68 20 6e | 6f 64 65 20 6e 6f 74 20 |m path n|ode not |
|000014c0| 69 6e 20 74 68 65 20 6c | 69 6e 65 20 6f 66 20 73 |in the l|ine of s|
|000014d0| 69 67 68 74 20 6f 66 20 | 74 68 65 20 67 6f 61 6c |ight of |the goal|
|000014e0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|000014f0| 46 69 6e 64 46 69 72 73 | 74 4e 61 76 69 67 61 62 |FindFirs|tNavigab|
|00001500| 6c 65 41 76 6f 69 64 47 | 6f 61 6c 50 61 74 68 47 |leAvoidG|oalPathG|
|00001510| 6f 61 6c 28 20 47 6f 61 | 6c 41 62 73 74 72 61 63 |oal( Goa|lAbstrac|
|00001520| 74 65 72 49 6e 74 65 72 | 66 20 50 61 74 68 47 6f |terInter|f PathGo|
|00001530| 61 6c 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |al )..{.|..local |
|00001540| 62 6f 6f 6c 20 62 46 6f | 75 6e 64 50 61 74 68 47 |bool bFo|undPathG|
|00001550| 6f 61 6c 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |oal;...l|ocal int|
|00001560| 20 43 75 72 72 65 6e 74 | 49 74 65 6d 49 64 78 3b | Current|ItemIdx;|
|00001570| 0d 0a 09 6c 6f 63 61 6c | 20 56 65 63 74 6f 72 20 |...local| Vector |
|00001580| 47 6f 61 6c 4c 6f 63 61 | 74 69 6f 6e 3b 0d 0a 09 |GoalLoca|tion;...|
|00001590| 6c 6f 63 61 6c 20 41 63 | 74 6f 72 20 43 6f 6e 74 |local Ac|tor Cont|
|000015a0| 65 78 74 41 63 74 6f 72 | 3b 0d 0a 09 6c 6f 63 61 |extActor|;...loca|
|000015b0| 6c 20 49 74 65 6d 53 6f | 72 74 65 72 20 4e 61 76 |l ItemSo|rter Nav|
|000015c0| 69 67 50 6f 69 6e 74 53 | 6f 72 74 65 72 3b 0d 0a |igPointS|orter;..|
|000015d0| 09 0d 0a 09 63 6c 61 73 | 73 27 44 65 62 75 67 27 |....clas|s'Debug'|
|000015e0| 2e 73 74 61 74 69 63 2e | 44 65 62 75 67 4c 6f 67 |.static.|DebugLog|
|000015f0| 28 20 43 6f 6e 74 65 78 | 74 4f 62 6a 65 63 74 2c |( Contex|tObject,|
|00001600| 20 22 46 69 6e 64 46 69 | 72 73 74 4e 61 76 69 67 | "FindFi|rstNavig|
|00001610| 61 62 6c 65 41 76 6f 69 | 64 47 6f 61 6c 50 61 74 |ableAvoi|dGoalPat|
|00001620| 68 47 6f 61 6c 22 2c 20 | 44 65 62 75 67 43 61 74 |hGoal", |DebugCat|
|00001630| 65 67 6f 72 79 4e 61 6d | 65 20 29 3b 0d 0a 0d 0a |egoryNam|e );....|
|00001640| 09 43 6f 6e 74 65 78 74 | 41 63 74 6f 72 20 3d 20 |.Context|Actor = |
|00001650| 41 63 74 6f 72 28 20 43 | 6f 6e 74 65 78 74 4f 62 |Actor( C|ontextOb|
|00001660| 6a 65 63 74 20 29 3b 0d | 0a 09 69 66 28 20 28 20 |ject );.|..if( ( |
|00001670| 43 6f 6e 74 65 78 74 41 | 63 74 6f 72 20 21 3d 20 |ContextA|ctor != |
|00001680| 4e 6f 6e 65 20 29 20 26 | 26 20 47 6f 61 6c 41 62 |None ) &|& GoalAb|
|00001690| 73 74 72 61 63 74 65 72 | 49 6e 74 65 72 66 28 20 |stracter|Interf( |
|000016a0| 4f 75 74 65 72 20 29 2e | 47 65 74 47 6f 61 6c 4c |Outer ).|GetGoalL|
|000016b0| 6f 63 61 74 69 6f 6e 28 | 20 43 6f 6e 74 65 78 74 |ocation(| Context|
|000016c0| 4f 62 6a 65 63 74 2c 20 | 47 6f 61 6c 4c 6f 63 61 |Object, |GoalLoca|
|000016d0| 74 69 6f 6e 20 29 20 29 | 0d 0a 20 20 20 20 7b 0d |tion ) )|.. {.|
|000016e0| 0a 09 20 20 20 20 4e 61 | 76 69 67 50 6f 69 6e 74 |.. Na|vigPoint|
|000016f0| 53 6f 72 74 65 72 20 3d | 20 49 74 65 6d 53 6f 72 |Sorter =| ItemSor|
|00001700| 74 65 72 28 20 63 6c 61 | 73 73 27 53 69 6e 67 6c |ter( cla|ss'Singl|
|00001710| 65 74 6f 6e 27 2e 73 74 | 61 74 69 63 2e 47 65 74 |eton'.st|atic.Get|
|00001720| 49 6e 73 74 61 6e 63 65 | 28 20 43 6f 6e 74 65 78 |Instance|( Contex|
|00001730| 74 41 63 74 6f 72 2e 58 | 4c 65 76 65 6c 2c 20 63 |tActor.X|Level, c|
|00001740| 6c 61 73 73 27 49 74 65 | 6d 53 6f 72 74 65 72 27 |lass'Ite|mSorter'|
|00001750| 20 29 20 29 3b 0d 0a 09 | 09 4e 61 76 69 67 50 6f | ) );...|.NavigPo|
|00001760| 69 6e 74 53 6f 72 74 65 | 72 2e 43 6f 6c 6c 65 63 |intSorte|r.Collec|
|00001770| 74 52 61 64 69 75 73 49 | 74 65 6d 73 28 20 43 6f |tRadiusI|tems( Co|
|00001780| 6e 74 65 78 74 41 63 74 | 6f 72 2c 20 63 6c 61 73 |ntextAct|or, clas|
|00001790| 73 27 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |s'Naviga|tionPoin|
|000017a0| 74 27 2c 20 4e 61 76 69 | 67 61 62 6c 65 41 76 6f |t', Navi|gableAvo|
|000017b0| 69 64 47 6f 61 6c 52 61 | 64 69 75 73 20 29 3b 0d |idGoalRa|dius );.|
|000017c0| 0a 0d 0a 09 09 4e 61 76 | 69 67 50 6f 69 6e 74 53 |.....Nav|igPointS|
|000017d0| 6f 72 74 65 72 2e 53 6f | 72 74 52 65 71 2e 49 52 |orter.So|rtReq.IR|
|000017e0| 5f 4f 72 69 67 69 6e 20 | 3d 20 47 6f 61 6c 4c 6f |_Origin |= GoalLo|
|000017f0| 63 61 74 69 6f 6e 3b 0d | 0a 09 09 4e 61 76 69 67 |cation;.|...Navig|
|00001800| 50 6f 69 6e 74 53 6f 72 | 74 65 72 2e 53 6f 72 74 |PointSor|ter.Sort|
|00001810| 52 65 71 2e 49 52 5f 4d | 61 78 44 69 73 74 61 6e |Req.IR_M|axDistan|
|00001820| 63 65 20 3d 20 20 30 3b | 0d 0a 09 09 4e 61 76 69 |ce = 0;|....Navi|
|00001830| 67 50 6f 69 6e 74 53 6f | 72 74 65 72 2e 53 6f 72 |gPointSo|rter.Sor|
|00001840| 74 52 65 71 2e 49 52 5f | 4d 61 78 44 69 73 74 61 |tReq.IR_|MaxDista|
|00001850| 6e 63 65 52 65 71 20 3d | 20 52 5f 49 72 72 65 6c |nceReq =| R_Irrel|
|00001860| 65 76 61 6e 74 3b 0d 0a | 09 09 4e 61 76 69 67 50 |evant;..|..NavigP|
|00001870| 6f 69 6e 74 53 6f 72 74 | 65 72 2e 53 6f 72 74 52 |ointSort|er.SortR|
|00001880| 65 71 2e 49 52 5f 4d 69 | 6e 44 69 73 74 61 6e 63 |eq.IR_Mi|nDistanc|
|00001890| 65 20 3d 20 30 3b 0d 0a | 09 09 4e 61 76 69 67 50 |e = 0;..|..NavigP|
|000018a0| 6f 69 6e 74 53 6f 72 74 | 65 72 2e 53 6f 72 74 52 |ointSort|er.SortR|
|000018b0| 65 71 2e 49 52 5f 4d 69 | 6e 44 69 73 74 61 6e 63 |eq.IR_Mi|nDistanc|
|000018c0| 65 52 65 71 20 3d 20 52 | 5f 49 72 72 65 6c 65 76 |eReq = R|_Irrelev|
|000018d0| 61 6e 74 3b 0d 0a 09 09 | 4e 61 76 69 67 50 6f 69 |ant;....|NavigPoi|
|000018e0| 6e 74 53 6f 72 74 65 72 | 2e 53 6f 72 74 52 65 71 |ntSorter|.SortReq|
|000018f0| 2e 49 52 5f 54 72 61 63 | 65 49 6e 66 6f 20 3d 20 |.IR_Trac|eInfo = |
|00001900| 54 52 41 43 45 5f 55 6e | 6f 62 73 74 72 75 63 65 |TRACE_Un|obstruce|
|00001910| 64 3b 0d 0a 09 09 4e 61 | 76 69 67 50 6f 69 6e 74 |d;....Na|vigPoint|
|00001920| 53 6f 72 74 65 72 2e 53 | 6f 72 74 52 65 71 2e 49 |Sorter.S|ortReq.I|
|00001930| 52 5f 54 72 61 63 65 49 | 6e 66 6f 52 65 71 20 3d |R_TraceI|nfoReq =|
|00001940| 20 52 5f 49 72 72 65 6c | 65 76 61 6e 74 3b 0d 0a | R_Irrel|evant;..|
|00001950| 09 09 0d 0a 09 09 4e 61 | 76 69 67 50 6f 69 6e 74 |......Na|vigPoint|
|00001960| 53 6f 72 74 65 72 2e 53 | 6f 72 74 49 74 65 6d 73 |Sorter.S|ortItems|
|00001970| 28 29 3b 0d 0a 0d 0a 09 | 09 4e 61 76 69 67 50 6f |();.....|.NavigPo|
|00001980| 69 6e 74 53 6f 72 74 65 | 72 2e 44 65 62 75 67 4c |intSorte|r.DebugL|
|00001990| 6f 67 28 20 43 6f 6e 74 | 65 78 74 41 63 74 6f 72 |og( Cont|extActor|
|000019a0| 20 29 3b 0d 0a 09 09 0d | 0a 09 09 2f 2f 61 74 74 | );.....|...//att|
|000019b0| 65 6d 70 74 20 74 6f 20 | 66 69 6e 64 20 61 6e 20 |empt to |find an |
|000019c0| 69 74 65 6d 20 74 68 61 | 74 20 69 73 20 66 61 72 |item tha|t is far|
|000019d0| 20 61 77 61 79 20 61 6e | 64 20 62 6c 6f 63 6b 65 | away an|d blocke|
|000019e0| 64 20 62 79 20 67 65 6f | 6d 65 74 72 79 0d 0a 09 |d by geo|metry...|
|000019f0| 09 69 66 28 20 4e 61 76 | 69 67 50 6f 69 6e 74 53 |.if( Nav|igPointS|
|00001a00| 6f 72 74 65 72 2e 47 65 | 74 49 74 65 6d 43 6f 75 |orter.Ge|tItemCou|
|00001a10| 6e 74 28 20 43 75 72 72 | 65 6e 74 49 74 65 6d 49 |nt( Curr|entItemI|
|00001a20| 64 78 20 29 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |dx ) )..|..{.....|
|00001a30| 66 6f 72 28 20 43 75 72 | 72 65 6e 74 49 74 65 6d |for( Cur|rentItem|
|00001a40| 49 64 78 20 3d 20 43 75 | 72 72 65 6e 74 49 74 65 |Idx = Cu|rrentIte|
|00001a50| 6d 49 64 78 20 2d 20 31 | 3b 20 43 75 72 72 65 6e |mIdx - 1|; Curren|
|00001a60| 74 49 74 65 6d 49 64 78 | 20 3e 3d 20 30 3b 20 43 |tItemIdx| >= 0; C|
|00001a70| 75 72 72 65 6e 74 49 74 | 65 6d 49 64 78 2d 2d 20 |urrentIt|emIdx-- |
|00001a80| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 69 66 28 |).....{.|.....if(|
|00001a90| 20 4e 61 76 69 67 50 6f | 69 6e 74 53 6f 72 74 65 | NavigPo|intSorte|
|00001aa0| 72 2e 47 65 74 49 74 65 | 6d 54 72 61 63 65 49 6e |r.GetIte|mTraceIn|
|00001ab0| 66 6f 28 20 43 75 72 72 | 65 6e 74 49 74 65 6d 49 |fo( Curr|entItemI|
|00001ac0| 64 78 20 29 20 3d 3d 20 | 54 52 41 43 45 5f 47 65 |dx ) == |TRACE_Ge|
|00001ad0| 6f 6d 65 74 72 79 4f 62 | 73 74 72 75 63 65 64 20 |ometryOb|struced |
|00001ae0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 20 20 20 20 |)......{|.... |
|00001af0| 20 20 20 20 09 50 61 74 | 68 47 6f 61 6c 2e 41 73 | .Pat|hGoal.As|
|00001b00| 73 69 67 6e 4f 62 6a 65 | 63 74 28 20 43 6f 6e 74 |signObje|ct( Cont|
|00001b10| 65 78 74 4f 62 6a 65 63 | 74 2c 20 4e 61 76 69 67 |extObjec|t, Navig|
|00001b20| 50 6f 69 6e 74 53 6f 72 | 74 65 72 2e 47 65 74 49 |PointSor|ter.GetI|
|00001b30| 74 65 6d 28 20 43 75 72 | 72 65 6e 74 49 74 65 6d |tem( Cur|rentItem|
|00001b40| 49 64 78 20 29 20 29 3b | 0d 0a 09 09 20 20 20 20 |Idx ) );|.... |
|00001b50| 20 20 20 20 09 69 66 28 | 20 50 61 74 68 47 6f 61 | .if(| PathGoa|
|00001b60| 6c 2e 49 73 47 6f 61 6c | 4e 61 76 69 67 61 62 6c |l.IsGoal|Navigabl|
|00001b70| 65 28 20 43 6f 6e 74 65 | 78 74 4f 62 6a 65 63 74 |e( Conte|xtObject|
|00001b80| 20 29 20 26 26 20 21 50 | 61 74 68 47 6f 61 6c 2e | ) && !P|athGoal.|
|00001b90| 49 73 47 6f 61 6c 52 65 | 61 63 68 65 64 28 20 43 |IsGoalRe|ached( C|
|00001ba0| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 20 29 20 29 |ontextOb|ject ) )|
|00001bb0| 0d 0a 09 20 20 20 20 20 | 20 20 20 09 09 7b 0d 0a |... | ..{..|
|00001bc0| 09 09 09 09 20 20 20 20 | 09 2f 2f 74 68 65 20 70 |.... |.//the p|
|00001bd0| 61 74 68 20 67 6f 61 6c | 20 69 73 20 6e 6f 74 20 |ath goal| is not |
|00001be0| 76 69 73 69 62 6c 65 20 | 62 79 20 74 68 65 20 67 |visible |by the g|
|00001bf0| 6f 61 6c 0d 0a 09 09 20 | 20 20 20 09 20 20 20 20 |oal.... | . |
|00001c00| 09 2f 2f 74 68 65 20 70 | 61 74 68 20 67 6f 61 6c |.//the p|ath goal|
|00001c10| 20 69 73 20 6e 6f 74 20 | 74 6f 6f 20 63 6c 6f 73 | is not |too clos|
|00001c20| 65 20 74 6f 20 74 68 65 | 20 43 6f 6e 74 65 78 74 |e to the| Context|
|00001c30| 4f 62 6a 65 63 74 0d 0a | 09 09 09 09 20 20 20 20 |Object..|.... |
|00001c40| 09 2f 2f 74 68 65 20 70 | 61 74 68 20 67 6f 61 6c |.//the p|ath goal|
|00001c50| 20 69 73 20 6e 61 76 69 | 67 61 62 6c 65 20 62 79 | is navi|gable by|
|00001c60| 20 74 68 65 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 | the Con|textObje|
|00001c70| 63 74 0d 0a 09 09 09 09 | 09 09 63 6c 61 73 73 27 |ct......|..class'|
|00001c80| 44 65 62 75 67 27 2e 73 | 74 61 74 69 63 2e 44 65 |Debug'.s|tatic.De|
|00001c90| 62 75 67 4c 6f 67 28 20 | 43 6f 6e 74 65 78 74 4f |bugLog( |ContextO|
|00001ca0| 62 6a 65 63 74 2c 20 22 | 46 69 6e 64 46 69 72 73 |bject, "|FindFirs|
|00001cb0| 74 4e 61 76 69 67 61 62 | 6c 65 41 76 6f 69 64 47 |tNavigab|leAvoidG|
|00001cc0| 6f 61 6c 50 61 74 68 47 | 6f 61 6c 20 53 65 6c 65 |oalPathG|oal Sele|
|00001cd0| 63 74 65 64 49 74 65 6d | 3a 20 22 20 24 20 4e 61 |ctedItem|: " $ Na|
|00001ce0| 76 69 67 50 6f 69 6e 74 | 53 6f 72 74 65 72 2e 47 |vigPoint|Sorter.G|
|00001cf0| 65 74 49 74 65 6d 28 20 | 43 75 72 72 65 6e 74 49 |etItem( |CurrentI|
|00001d00| 74 65 6d 49 64 78 20 29 | 2c 20 44 65 62 75 67 43 |temIdx )|, DebugC|
|00001d10| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00001d20| 09 09 09 09 09 09 62 46 | 6f 75 6e 64 50 61 74 68 |......bF|oundPath|
|00001d30| 47 6f 61 6c 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |Goal = t|rue;....|
|00001d40| 09 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 20 20 |....brea|k;.... |
|00001d50| 20 20 20 20 20 20 09 7d | 0d 0a 09 09 09 09 7d 0d | .}|......}.|
|00001d60| 0a 09 09 09 7d 0d 0a 09 | 09 7d 0d 0a 09 09 0d 0a |....}...|.}......|
|00001d70| 09 09 69 66 28 20 21 62 | 46 6f 75 6e 64 50 61 74 |..if( !b|FoundPat|
|00001d80| 68 47 6f 61 6c 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |hGoal ).|...{....|
|00001d90| 09 2f 2f 61 74 74 65 6d | 70 74 20 74 6f 20 66 69 |.//attem|pt to fi|
|00001da0| 6e 64 20 61 6e 20 69 74 | 65 6d 20 74 68 61 74 20 |nd an it|em that |
|00001db0| 69 73 20 66 61 72 20 61 | 77 61 79 0d 0a 09 09 09 |is far a|way.....|
|00001dc0| 69 66 28 20 4e 61 76 69 | 67 50 6f 69 6e 74 53 6f |if( Navi|gPointSo|
|00001dd0| 72 74 65 72 2e 47 65 74 | 49 74 65 6d 43 6f 75 6e |rter.Get|ItemCoun|
|00001de0| 74 28 20 43 75 72 72 65 | 6e 74 49 74 65 6d 49 64 |t( Curre|ntItemId|
|00001df0| 78 20 29 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |x ) )...|..{.....|
|00001e00| 09 66 6f 72 28 20 43 75 | 72 72 65 6e 74 49 74 65 |.for( Cu|rrentIte|
|00001e10| 6d 49 64 78 20 3d 20 43 | 75 72 72 65 6e 74 49 74 |mIdx = C|urrentIt|
|00001e20| 65 6d 49 64 78 20 2d 20 | 31 3b 20 43 75 72 72 65 |emIdx - |1; Curre|
|00001e30| 6e 74 49 74 65 6d 49 64 | 78 20 3e 3d 20 30 3b 20 |ntItemId|x >= 0; |
|00001e40| 43 75 72 72 65 6e 74 49 | 74 65 6d 49 64 78 2d 2d |CurrentI|temIdx--|
|00001e50| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|00001e60| 69 66 28 20 28 20 4e 61 | 76 69 67 50 6f 69 6e 74 |if( ( Na|vigPoint|
|00001e70| 53 6f 72 74 65 72 2e 47 | 65 74 49 74 65 6d 54 72 |Sorter.G|etItemTr|
|00001e80| 61 63 65 49 6e 66 6f 28 | 20 43 75 72 72 65 6e 74 |aceInfo(| Current|
|00001e90| 49 74 65 6d 49 64 78 20 | 29 20 21 3d 20 54 52 41 |ItemIdx |) != TRA|
|00001ea0| 43 45 5f 47 65 6f 6d 65 | 74 72 79 4f 62 73 74 72 |CE_Geome|tryObstr|
|00001eb0| 75 63 65 64 20 29 20 26 | 26 0d 0a 09 09 09 09 09 |uced ) &|&.......|
|00001ec0| 09 28 20 4e 61 76 69 67 | 50 6f 69 6e 74 53 6f 72 |.( Navig|PointSor|
|00001ed0| 74 65 72 2e 47 65 74 49 | 74 65 6d 54 72 61 63 65 |ter.GetI|temTrace|
|00001ee0| 49 6e 66 6f 28 20 43 75 | 72 72 65 6e 74 49 74 65 |Info( Cu|rrentIte|
|00001ef0| 6d 49 64 78 20 29 20 21 | 3d 20 54 52 41 43 45 5f |mIdx ) !|= TRACE_|
|00001f00| 55 6e 74 65 73 74 65 64 | 20 29 20 29 0d 0a 09 09 |Untested| ) )....|
|00001f10| 09 09 09 7b 0d 0a 09 09 | 20 20 20 20 20 20 20 20 |...{....| |
|00001f20| 09 09 50 61 74 68 47 6f | 61 6c 2e 41 73 73 69 67 |..PathGo|al.Assig|
|00001f30| 6e 4f 62 6a 65 63 74 28 | 20 43 6f 6e 74 65 78 74 |nObject(| Context|
|00001f40| 4f 62 6a 65 63 74 2c 20 | 4e 61 76 69 67 50 6f 69 |Object, |NavigPoi|
|00001f50| 6e 74 53 6f 72 74 65 72 | 2e 47 65 74 49 74 65 6d |ntSorter|.GetItem|
|00001f60| 28 20 43 75 72 72 65 6e | 74 49 74 65 6d 49 64 78 |( Curren|tItemIdx|
|00001f70| 20 29 20 29 3b 0d 0a 09 | 20 20 20 20 09 20 20 20 | ) );...| . |
|00001f80| 20 09 09 69 66 28 20 50 | 61 74 68 47 6f 61 6c 2e | ..if( P|athGoal.|
|00001f90| 49 73 47 6f 61 6c 4e 61 | 76 69 67 61 62 6c 65 28 |IsGoalNa|vigable(|
|00001fa0| 20 43 6f 6e 74 65 78 74 | 4f 62 6a 65 63 74 20 29 | Context|Object )|
|00001fb0| 20 26 26 20 21 50 61 74 | 68 47 6f 61 6c 2e 49 73 | && !Pat|hGoal.Is|
|00001fc0| 47 6f 61 6c 52 65 61 63 | 68 65 64 28 20 43 6f 6e |GoalReac|hed( Con|
|00001fd0| 74 65 78 74 4f 62 6a 65 | 63 74 20 29 20 29 0d 0a |textObje|ct ) )..|
|00001fe0| 09 20 20 20 20 20 20 20 | 20 09 09 09 7b 0d 0a 09 |. | ...{...|
|00001ff0| 09 09 09 20 20 20 20 09 | 09 2f 2f 74 68 65 20 70 |... .|.//the p|
|00002000| 61 74 68 20 67 6f 61 6c | 20 69 73 20 6e 6f 74 20 |ath goal| is not |
|00002010| 76 69 73 69 62 6c 65 20 | 62 79 20 74 68 65 20 67 |visible |by the g|
|00002020| 6f 61 6c 0d 0a 09 09 20 | 20 20 20 09 20 20 20 20 |oal.... | . |
|00002030| 09 09 2f 2f 74 68 65 20 | 70 61 74 68 20 67 6f 61 |..//the |path goa|
|00002040| 6c 20 69 73 20 6e 6f 74 | 20 74 6f 6f 20 63 6c 6f |l is not| too clo|
|00002050| 73 65 20 74 6f 20 74 68 | 65 20 43 6f 6e 74 65 78 |se to th|e Contex|
|00002060| 74 4f 62 6a 65 63 74 0d | 0a 09 09 09 09 20 20 20 |tObject.|..... |
|00002070| 20 09 09 2f 2f 74 68 65 | 20 70 61 74 68 20 67 6f | ..//the| path go|
|00002080| 61 6c 20 69 73 20 6e 61 | 76 69 67 61 62 6c 65 20 |al is na|vigable |
|00002090| 62 79 20 74 68 65 20 43 | 6f 6e 74 65 78 74 4f 62 |by the C|ontextOb|
|000020a0| 6a 65 63 74 0d 0a 09 09 | 09 09 09 09 09 63 6c 61 |ject....|.....cla|
|000020b0| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|000020c0| 2e 44 65 62 75 67 4c 6f | 67 28 20 43 6f 6e 74 65 |.DebugLo|g( Conte|
|000020d0| 78 74 4f 62 6a 65 63 74 | 2c 20 22 46 69 6e 64 46 |xtObject|, "FindF|
|000020e0| 69 72 73 74 4e 61 76 69 | 67 61 62 6c 65 41 76 6f |irstNavi|gableAvo|
|000020f0| 69 64 47 6f 61 6c 50 61 | 74 68 47 6f 61 6c 20 53 |idGoalPa|thGoal S|
|00002100| 65 6c 65 63 74 65 64 49 | 74 65 6d 3a 20 22 20 24 |electedI|tem: " $|
|00002110| 20 4e 61 76 69 67 50 6f | 69 6e 74 53 6f 72 74 65 | NavigPo|intSorte|
|00002120| 72 2e 47 65 74 49 74 65 | 6d 28 20 43 75 72 72 65 |r.GetIte|m( Curre|
|00002130| 6e 74 49 74 65 6d 49 64 | 78 20 29 2c 20 44 65 62 |ntItemId|x ), Deb|
|00002140| 75 67 43 61 74 65 67 6f | 72 79 4e 61 6d 65 20 29 |ugCatego|ryName )|
|00002150| 3b 0d 0a 09 09 09 09 09 | 09 09 62 46 6f 75 6e 64 |;.......|..bFound|
|00002160| 50 61 74 68 47 6f 61 6c | 20 3d 20 74 72 75 65 3b |PathGoal| = true;|
|00002170| 0d 0a 09 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |........|.break;.|
|00002180| 0a 09 09 20 20 20 20 20 | 20 20 20 09 09 7d 0d 0a |... | ..}..|
|00002190| 09 09 09 09 09 7d 0d 0a | 09 09 09 09 7d 0d 0a 09 |.....}..|....}...|
|000021a0| 09 09 7d 0d 0a 09 09 7d | 0d 0a 09 7d 09 0d 0a 0d |..}....}|...}....|
|000021b0| 0a 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|000021c0| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|000021d0| 43 6f 6e 74 65 78 74 4f | 62 6a 65 63 74 2c 20 22 |ContextO|bject, "|
|000021e0| 46 69 6e 64 46 69 72 73 | 74 4e 61 76 69 67 61 62 |FindFirs|tNavigab|
|000021f0| 6c 65 41 76 6f 69 64 47 | 6f 61 6c 50 61 74 68 47 |leAvoidG|oalPathG|
|00002200| 6f 61 6c 20 72 65 74 75 | 72 6e 69 6e 67 20 22 20 |oal retu|rning " |
|00002210| 24 20 62 46 6f 75 6e 64 | 50 61 74 68 47 6f 61 6c |$ bFound|PathGoal|
|00002220| 2c 20 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |, DebugC|ategoryN|
|00002230| 61 6d 65 20 29 3b 0d 0a | 20 20 20 09 72 65 74 75 |ame );..| .retu|
|00002240| 72 6e 20 62 46 6f 75 6e | 64 50 61 74 68 47 6f 61 |rn bFoun|dPathGoa|
|00002250| 6c 3b 0d 0a 7d 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |l;..}...|........|
|00002260| 0a 0d 0a 2f 2f 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |...//===|========|
|00002270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022b0| 3d 3d 0d 0a 2f 2f 20 70 | 75 62 6c 69 63 20 73 74 |==..// p|ublic st|
|000022c0| 61 74 69 63 20 69 6e 74 | 65 72 66 61 63 65 20 66 |atic int|erface f|
|000022d0| 72 6f 6d 20 67 6f 61 6c | 20 63 6f 6e 74 65 78 74 |rom goal| context|
|000022e0| 69 6e 74 65 72 66 0d 0a | 2f 2f 3d 3d 3d 3d 3d 3d |interf..|//======|
|000022f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002300| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002320| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002330| 3d 3d 3d 3d 3d 3d 3d 0d | 0a 0d 0a 0d 0a 0d 0a 2f |=======.|......./|
|00002340| 2a 0d 0a 73 74 61 74 69 | 63 20 66 75 6e 63 74 69 |*..stati|c functi|
|00002350| 6f 6e 20 62 6f 6f 6c 20 | 49 73 47 6f 61 6c 52 65 |on bool |IsGoalRe|
|00002360| 61 63 68 65 64 42 79 4f | 62 6a 65 63 74 28 20 4f |achedByO|bject( O|
|00002370| 62 6a 65 63 74 20 43 6f | 6e 74 65 78 74 4f 62 6a |bject Co|ntextObj|
|00002380| 65 63 74 2c 20 47 6f 61 | 6c 41 62 73 74 72 61 63 |ect, Goa|lAbstrac|
|00002390| 74 65 72 49 6e 74 65 72 | 66 20 47 6f 61 6c 20 29 |terInter|f Goal )|
|000023a0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |..{...lo|cal floa|
|000023b0| 74 20 47 6f 61 6c 44 69 | 73 74 61 6e 63 65 3b 0d |t GoalDi|stance;.|
|000023c0| 0a 09 72 65 74 75 72 6e | 20 28 20 47 6f 61 6c 2e |..return| ( Goal.|
|000023d0| 49 73 56 61 6c 69 64 28 | 20 43 6f 6e 74 65 78 74 |IsValid(| Context|
|000023e0| 4f 62 6a 65 63 74 20 29 | 20 26 26 0d 0a 09 09 09 |Object )| &&.....|
|000023f0| 47 6f 61 6c 2e 47 65 74 | 47 6f 61 6c 44 69 73 74 |Goal.Get|GoalDist|
|00002400| 61 6e 63 65 28 20 43 6f | 6e 74 65 78 74 4f 62 6a |ance( Co|ntextObj|
|00002410| 65 63 74 2c 20 47 6f 61 | 6c 44 69 73 74 61 6e 63 |ect, Goa|lDistanc|
|00002420| 65 2c 20 43 6f 6e 74 65 | 78 74 4f 62 6a 65 63 74 |e, Conte|xtObject|
|00002430| 20 29 20 26 26 0d 0a 09 | 09 09 49 73 43 6c 6f 73 | ) &&...|..IsClos|
|00002440| 65 45 6e 6f 75 67 68 28 | 20 47 6f 61 6c 44 69 73 |eEnough(| GoalDis|
|00002450| 74 61 6e 63 65 20 29 20 | 29 3b 0d 0a 7d 0d 0a 2a |tance ) |);..}..*|
|00002460| 2f 0d 0a 0d 0a 0d 0a 2f | 2a 0d 0a 73 74 61 74 69 |/....../|*..stati|
|00002470| 63 20 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |c functi|on bool |
|00002480| 49 73 47 6f 61 6c 56 69 | 73 69 62 6c 65 42 79 4f |IsGoalVi|sibleByO|
|00002490| 62 6a 65 63 74 28 20 4f | 62 6a 65 63 74 20 43 6f |bject( O|bject Co|
|000024a0| 6e 74 65 78 74 4f 62 6a | 65 63 74 2c 20 47 6f 61 |ntextObj|ect, Goa|
|000024b0| 6c 41 62 73 74 72 61 63 | 74 65 72 49 6e 74 65 72 |lAbstrac|terInter|
|000024c0| 66 20 47 6f 61 6c 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |f Goal )|..{...lo|
|000024d0| 63 61 6c 20 50 61 77 6e | 20 43 6f 6e 74 65 78 74 |cal Pawn| Context|
|000024e0| 50 61 77 6e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 41 63 |Pawn;...|local Ac|
|000024f0| 74 6f 72 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 41 |tor Curr|entGoalA|
|00002500| 63 74 6f 72 2c 20 54 72 | 61 63 65 48 69 74 41 63 |ctor, Tr|aceHitAc|
|00002510| 74 6f 72 3b 0d 0a 09 6c | 6f 63 61 6c 20 56 65 63 |tor;...l|ocal Vec|
|00002520| 74 6f 72 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 4c |tor Curr|entGoalL|
|00002530| 6f 63 61 74 69 6f 6e 2c | 20 54 72 61 63 65 48 69 |ocation,| TraceHi|
|00002540| 74 4c 6f 63 61 74 69 6f | 6e 2c 20 54 72 61 63 65 |tLocatio|n, Trace|
|00002550| 48 69 74 4e 6f 72 6d 61 | 6c 3b 0d 0a 09 6c 6f 63 |HitNorma|l;...loc|
|00002560| 61 6c 20 62 6f 6f 6c 20 | 62 47 6f 61 6c 49 73 56 |al bool |bGoalIsV|
|00002570| 69 73 69 62 6c 65 3b 0d | 0a 09 0d 0a 09 63 6c 61 |isible;.|.....cla|
|00002580| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|00002590| 2e 44 65 62 75 67 4c 6f | 67 28 20 43 6f 6e 74 65 |.DebugLo|g( Conte|
|000025a0| 78 74 4f 62 6a 65 63 74 | 2c 20 22 49 73 47 6f 61 |xtObject|, "IsGoa|
|000025b0| 6c 56 69 73 69 62 6c 65 | 42 79 4f 62 6a 65 63 74 |lVisible|ByObject|
|000025c0| 22 2c 20 64 65 66 61 75 | 6c 74 2e 44 65 62 75 67 |", defau|lt.Debug|
|000025d0| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|000025e0| 0a 09 0d 0a 09 43 6f 6e | 74 65 78 74 50 61 77 6e |.....Con|textPawn|
|000025f0| 20 3d 20 50 61 77 6e 28 | 20 43 6f 6e 74 65 78 74 | = Pawn(| Context|
|00002600| 4f 62 6a 65 63 74 20 29 | 3b 0d 0a 09 69 66 28 20 |Object )|;...if( |
|00002610| 43 6f 6e 74 65 78 74 50 | 61 77 6e 20 21 3d 20 4e |ContextP|awn != N|
|00002620| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 28 |one )...|{....if(|
|00002630| 20 47 6f 61 6c 2e 47 65 | 74 47 6f 61 6c 41 63 74 | Goal.Ge|tGoalAct|
|00002640| 6f 72 28 20 43 6f 6e 74 | 65 78 74 50 61 77 6e 2c |or( Cont|extPawn,|
|00002650| 20 43 75 72 72 65 6e 74 | 47 6f 61 6c 41 63 74 6f | Current|GoalActo|
|00002660| 72 20 29 20 29 0d 0a 09 | 09 7b 0d 0a 2f 2f 78 78 |r ) )...|.{..//xx|
|00002670| 78 72 6c 6f 09 62 47 6f | 61 6c 49 73 56 69 73 69 |xrlo.bGo|alIsVisi|
|00002680| 62 6c 65 20 3d 20 43 6f | 6e 74 65 78 74 50 61 77 |ble = Co|ntextPaw|
|00002690| 6e 2e 43 61 6e 53 65 65 | 28 20 43 75 72 72 65 6e |n.CanSee|( Curren|
|000026a0| 74 47 6f 61 6c 41 63 74 | 6f 72 20 29 3b 0d 0a 09 |tGoalAct|or );...|
|000026b0| 09 09 62 47 6f 61 6c 49 | 73 56 69 73 69 62 6c 65 |..bGoalI|sVisible|
|000026c0| 20 3d 20 43 6f 6e 74 65 | 78 74 50 61 77 6e 2e 4c | = Conte|xtPawn.L|
|000026d0| 69 6e 65 4f 66 53 69 67 | 68 74 54 6f 28 20 43 75 |ineOfSig|htTo( Cu|
|000026e0| 72 72 65 6e 74 47 6f 61 | 6c 41 63 74 6f 72 20 29 |rrentGoa|lActor )|
|000026f0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 20 69 |;....}..|..else i|
|00002700| 66 28 20 47 6f 61 6c 2e | 47 65 74 47 6f 61 6c 4c |f( Goal.|GetGoalL|
|00002710| 6f 63 61 74 69 6f 6e 28 | 20 43 6f 6e 74 65 78 74 |ocation(| Context|
|00002720| 50 61 77 6e 2c 20 43 75 | 72 72 65 6e 74 47 6f 61 |Pawn, Cu|rrentGoa|
|00002730| 6c 4c 6f 63 61 74 69 6f | 6e 20 29 20 29 0d 0a 09 |lLocatio|n ) )...|
|00002740| 09 7b 0d 0a 09 09 09 54 | 72 61 63 65 48 69 74 41 |.{.....T|raceHitA|
|00002750| 63 74 6f 72 20 3d 20 43 | 6f 6e 74 65 78 74 50 61 |ctor = C|ontextPa|
|00002760| 77 6e 2e 54 72 61 63 65 | 28 20 54 72 61 63 65 48 |wn.Trace|( TraceH|
|00002770| 69 74 4c 6f 63 61 74 69 | 6f 6e 2c 20 54 72 61 63 |itLocati|on, Trac|
|00002780| 65 48 69 74 4e 6f 72 6d | 61 6c 2c 20 43 75 72 72 |eHitNorm|al, Curr|
|00002790| 65 6e 74 47 6f 61 6c 4c | 6f 63 61 74 69 6f 6e 20 |entGoalL|ocation |
|000027a0| 29 3b 0d 0a 09 09 09 62 | 47 6f 61 6c 49 73 56 69 |);.....b|GoalIsVi|
|000027b0| 73 69 62 6c 65 20 3d 20 | 28 20 54 72 61 63 65 48 |sible = |( TraceH|
|000027c0| 69 74 41 63 74 6f 72 20 | 3d 3d 20 4e 6f 6e 65 20 |itActor |== None |
|000027d0| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 0d 0a |);....}.|..}.....|
|000027e0| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|000027f0| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 43 |atic.Deb|ugLog( C|
|00002800| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 2c 20 22 49 |ontextOb|ject, "I|
|00002810| 73 47 6f 61 6c 56 69 73 | 69 62 6c 65 42 79 4f 62 |sGoalVis|ibleByOb|
|00002820| 6a 65 63 74 20 43 75 72 | 72 65 6e 74 47 6f 61 6c |ject Cur|rentGoal|
|00002830| 41 63 74 6f 72 20 22 20 | 24 20 43 75 72 72 65 6e |Actor " |$ Curren|
|00002840| 74 47 6f 61 6c 41 63 74 | 6f 72 2c 20 64 65 66 61 |tGoalAct|or, defa|
|00002850| 75 6c 74 2e 44 65 62 75 | 67 43 61 74 65 67 6f 72 |ult.Debu|gCategor|
|00002860| 79 4e 61 6d 65 20 29 3b | 0d 0a 09 63 6c 61 73 73 |yName );|...class|
|00002870| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00002880| 65 62 75 67 4c 6f 67 28 | 20 43 6f 6e 74 65 78 74 |ebugLog(| Context|
|00002890| 4f 62 6a 65 63 74 2c 20 | 22 49 73 47 6f 61 6c 56 |Object, |"IsGoalV|
|000028a0| 69 73 69 62 6c 65 42 79 | 4f 62 6a 65 63 74 20 72 |isibleBy|Object r|
|000028b0| 65 74 75 72 6e 69 6e 67 | 20 22 20 24 20 62 47 6f |eturning| " $ bGo|
|000028c0| 61 6c 49 73 56 69 73 69 | 62 6c 65 20 2c 20 64 65 |alIsVisi|ble , de|
|000028d0| 66 61 75 6c 74 2e 44 65 | 62 75 67 43 61 74 65 67 |fault.De|bugCateg|
|000028e0| 6f 72 79 4e 61 6d 65 20 | 29 3b 0d 0a 09 72 65 74 |oryName |);...ret|
|000028f0| 75 72 6e 20 62 47 6f 61 | 6c 49 73 56 69 73 69 62 |urn bGoa|lIsVisib|
|00002900| 6c 65 3b 0d 0a 7d 0d 0a | 2a 2f 0d 0a 0d 0a 0d 0a |le;..}..|*/......|
|00002910| 2f 2a 0d 0a 73 74 61 74 | 69 63 20 66 75 6e 63 74 |/*..stat|ic funct|
|00002920| 69 6f 6e 20 62 6f 6f 6c | 20 49 73 47 6f 61 6c 52 |ion bool| IsGoalR|
|00002930| 65 61 63 68 61 62 6c 65 | 42 79 4f 62 6a 65 63 74 |eachable|ByObject|
|00002940| 28 20 4f 62 6a 65 63 74 | 20 43 6f 6e 74 65 78 74 |( Object| Context|
|00002950| 4f 62 6a 65 63 74 2c 20 | 47 6f 61 6c 41 62 73 74 |Object, |GoalAbst|
|00002960| 72 61 63 74 65 72 49 6e | 74 65 72 66 20 47 6f 61 |racterIn|terf Goa|
|00002970| 6c 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |l )..{..|.local P|
|00002980| 61 77 6e 20 43 6f 6e 74 | 65 78 74 50 61 77 6e 3b |awn Cont|extPawn;|
|00002990| 0d 0a 09 6c 6f 63 61 6c | 20 41 63 74 6f 72 20 43 |...local| Actor C|
|000029a0| 75 72 72 65 6e 74 47 6f | 61 6c 41 63 74 6f 72 3b |urrentGo|alActor;|
|000029b0| 0d 0a 09 6c 6f 63 61 6c | 20 56 65 63 74 6f 72 20 |...local| Vector |
|000029c0| 43 75 72 72 65 6e 74 47 | 6f 61 6c 4c 6f 63 61 74 |CurrentG|oalLocat|
|000029d0| 69 6f 6e 2c 20 54 72 61 | 63 65 48 69 74 4e 6f 72 |ion, Tra|ceHitNor|
|000029e0| 6d 61 6c 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |mal;...l|ocal boo|
|000029f0| 6c 20 62 47 6f 61 6c 49 | 73 52 65 61 63 68 61 62 |l bGoalI|sReachab|
|00002a00| 6c 65 2c 20 62 52 65 73 | 74 6f 72 65 46 61 6c 6c |le, bRes|toreFall|
|00002a10| 69 6e 67 50 68 79 73 69 | 63 73 3b 0d 0a 09 0d 0a |ingPhysi|cs;.....|
|00002a20| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|00002a30| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 43 |atic.Deb|ugLog( C|
|00002a40| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 2c 20 22 49 |ontextOb|ject, "I|
|00002a50| 73 47 6f 61 6c 52 65 61 | 63 68 61 62 6c 65 42 79 |sGoalRea|chableBy|
|00002a60| 4f 62 6a 65 63 74 22 2c | 20 64 65 66 61 75 6c 74 |Object",| default|
|00002a70| 2e 44 65 62 75 67 43 61 | 74 65 67 6f 72 79 4e 61 |.DebugCa|tegoryNa|
|00002a80| 6d 65 20 29 3b 0d 0a 09 | 43 6f 6e 74 65 78 74 50 |me );...|ContextP|
|00002a90| 61 77 6e 20 3d 20 50 61 | 77 6e 28 20 43 6f 6e 74 |awn = Pa|wn( Cont|
|00002aa0| 65 78 74 4f 62 6a 65 63 | 74 20 29 3b 0d 0a 09 69 |extObjec|t );...i|
|00002ab0| 66 28 20 43 6f 6e 74 65 | 78 74 50 61 77 6e 20 21 |f( Conte|xtPawn !|
|00002ac0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 7b 0d 0a 0d 0a |= None )|...{....|
|00002ad0| 2f 2f 78 78 78 72 6c 6f | 20 68 61 63 6b 21 0d 0a |//xxxrlo| hack!..|
|00002ae0| 09 09 69 66 28 20 43 6f | 6e 74 65 78 74 50 61 77 |..if( Co|ntextPaw|
|00002af0| 6e 2e 50 68 79 73 69 63 | 73 20 3d 3d 20 50 48 59 |n.Physic|s == PHY|
|00002b00| 53 5f 46 61 6c 6c 69 6e | 67 20 29 0d 0a 09 09 7b |S_Fallin|g )....{|
|00002b10| 0d 0a 09 09 09 62 52 65 | 73 74 6f 72 65 46 61 6c |.....bRe|storeFal|
|00002b20| 6c 69 6e 67 50 68 79 73 | 69 63 73 20 3d 20 74 72 |lingPhys|ics = tr|
|00002b30| 75 65 3b 0d 0a 09 09 09 | 43 6f 6e 74 65 78 74 50 |ue;.....|ContextP|
|00002b40| 61 77 6e 2e 53 65 74 50 | 68 79 73 69 63 73 28 20 |awn.SetP|hysics( |
|00002b50| 50 48 59 53 5f 57 61 6c | 6b 69 6e 67 20 29 3b 0d |PHYS_Wal|king );.|
|00002b60| 0a 09 09 7d 0d 0a 2f 2f | 78 78 78 72 6c 6f 20 68 |...}..//|xxxrlo h|
|00002b70| 61 63 6b 21 0d 0a 0d 0a | 09 09 69 66 28 20 47 6f |ack!....|..if( Go|
|00002b80| 61 6c 2e 47 65 74 47 6f | 61 6c 41 63 74 6f 72 28 |al.GetGo|alActor(|
|00002b90| 20 43 6f 6e 74 65 78 74 | 50 61 77 6e 2c 20 43 75 | Context|Pawn, Cu|
|00002ba0| 72 72 65 6e 74 47 6f 61 | 6c 41 63 74 6f 72 20 29 |rrentGoa|lActor )|
|00002bb0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 63 6c 61 73 | )....{.|....clas|
|00002bc0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00002bd0| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|00002be0| 74 50 61 77 6e 2c 20 22 | 49 73 47 6f 61 6c 52 65 |tPawn, "|IsGoalRe|
|00002bf0| 61 63 68 61 62 6c 65 42 | 79 4f 62 6a 65 63 74 20 |achableB|yObject |
|00002c00| 43 75 72 72 65 6e 74 47 | 6f 61 6c 41 63 74 6f 72 |CurrentG|oalActor|
|00002c10| 20 22 20 24 20 43 75 72 | 72 65 6e 74 47 6f 61 6c | " $ Cur|rentGoal|
|00002c20| 41 63 74 6f 72 2c 20 64 | 65 66 61 75 6c 74 2e 44 |Actor, d|efault.D|
|00002c30| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00002c40| 20 29 3b 0d 0a 09 09 09 | 69 66 28 20 43 75 72 72 | );.....|if( Curr|
|00002c50| 65 6e 74 47 6f 61 6c 41 | 63 74 6f 72 2e 50 68 79 |entGoalA|ctor.Phy|
|00002c60| 73 69 63 73 20 3d 3d 20 | 50 48 59 53 5f 46 61 6c |sics == |PHYS_Fal|
|00002c70| 6c 69 6e 67 20 29 0d 0a | 09 09 09 7b 0d 0a 2f 2a |ling )..|...{../*|
|00002c80| 0d 0a 2f 2f 78 78 78 72 | 6c 6f 0d 0a 74 68 65 20 |..//xxxr|lo..the |
|00002c90| 72 61 6d 69 66 69 63 61 | 74 69 6f 6e 73 20 6f 66 |ramifica|tions of|
|00002ca0| 20 74 68 69 73 20 68 61 | 63 6b 20 61 72 65 20 73 | this ha|ck are s|
|00002cb0| 69 67 6e 69 66 69 63 61 | 6e 74 21 0d 0a 74 68 65 |ignifica|nt!..the|
|00002cc0| 20 72 65 61 63 68 61 62 | 6c 65 20 73 75 63 63 65 | reachab|le succe|
|00002cd0| 73 73 66 75 6c 20 63 61 | 63 68 65 20 69 73 20 67 |ssful ca|che is g|
|00002ce0| 6f 69 6e 67 20 74 6f 20 | 65 6e 64 20 75 70 20 77 |oing to |end up w|
|00002cf0| 69 74 68 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |ith the |location|
|00002d00| 20 6f 66 20 74 68 65 20 | 67 6f 61 6c 20 69 6e 20 | of the |goal in |
|00002d10| 73 70 61 63 65 0d 0a 74 | 68 65 20 6e 61 76 69 67 |space..t|he navig|
|00002d20| 61 74 69 6f 6e 20 67 6f | 61 6c 20 77 69 6c 6c 20 |ation go|al will |
|00002d30| 6a 75 73 74 20 62 65 20 | 69 6e 69 74 69 61 6c 69 |just be |initiali|
|00002d40| 7a 65 64 20 77 69 74 68 | 20 74 68 65 20 67 6f 61 |zed with| the goa|
|00002d50| 6c 0d 0a 61 73 20 6f 70 | 70 6f 73 65 64 20 74 6f |l..as op|posed to|
|00002d60| 20 74 68 65 20 67 6f 61 | 6c 27 73 20 6c 6f 63 61 | the goa|l's loca|
|00002d70| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 20 66 6c 6f 6f |tion on |the floo|
|00002d80| 72 20 0d 0a 2a 2f 0d 0a | 09 09 09 09 63 6c 61 73 |r ..*/..|....clas|
|00002d90| 73 27 55 74 69 6c 27 2e | 73 74 61 74 69 63 2e 54 |s'Util'.|static.T|
|00002da0| 72 61 63 65 52 65 63 75 | 72 73 69 76 65 28 20 43 |raceRecu|rsive( C|
|00002db0| 6f 6e 74 65 78 74 50 61 | 77 6e 2c 20 43 75 72 72 |ontextPa|wn, Curr|
|00002dc0| 65 6e 74 47 6f 61 6c 4c | 6f 63 61 74 69 6f 6e 2c |entGoalL|ocation,|
|00002dd0| 20 54 72 61 63 65 48 69 | 74 4e 6f 72 6d 61 6c 2c | TraceHi|tNormal,|
|00002de0| 20 43 75 72 72 65 6e 74 | 47 6f 61 6c 41 63 74 6f | Current|GoalActo|
|00002df0| 72 2e 4c 6f 63 61 74 69 | 6f 6e 2c 20 66 61 6c 73 |r.Locati|on, fals|
|00002e00| 65 2c 20 43 75 72 72 65 | 6e 74 47 6f 61 6c 41 63 |e, Curre|ntGoalAc|
|00002e10| 74 6f 72 2e 43 6f 6c 6c | 69 73 69 6f 6e 48 65 69 |tor.Coll|isionHei|
|00002e20| 67 68 74 20 29 3b 0d 0a | 09 09 09 09 43 75 72 72 |ght );..|....Curr|
|00002e30| 65 6e 74 47 6f 61 6c 4c | 6f 63 61 74 69 6f 6e 2e |entGoalL|ocation.|
|00002e40| 7a 20 2b 3d 20 43 75 72 | 72 65 6e 74 47 6f 61 6c |z += Cur|rentGoal|
|00002e50| 41 63 74 6f 72 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |Actor.Co|llisionH|
|00002e60| 65 69 67 68 74 3b 0d 0a | 09 09 09 09 62 47 6f 61 |eight;..|....bGoa|
|00002e70| 6c 49 73 52 65 61 63 68 | 61 62 6c 65 20 3d 20 43 |lIsReach|able = C|
|00002e80| 6f 6e 74 65 78 74 50 61 | 77 6e 2e 50 6f 69 6e 74 |ontextPa|wn.Point|
|00002e90| 52 65 61 63 68 61 62 6c | 65 28 20 43 75 72 72 65 |Reachabl|e( Curre|
|00002ea0| 6e 74 47 6f 61 6c 4c 6f | 63 61 74 69 6f 6e 20 29 |ntGoalLo|cation )|
|00002eb0| 3b 0d 0a 09 09 0d 0a 09 | 09 09 09 63 6c 61 73 73 |;.......|...class|
|00002ec0| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00002ed0| 65 62 75 67 4c 6f 67 28 | 20 43 6f 6e 74 65 78 74 |ebugLog(| Context|
|00002ee0| 4f 62 6a 65 63 74 2c 20 | 22 49 73 47 6f 61 6c 52 |Object, |"IsGoalR|
|00002ef0| 65 61 63 68 61 62 6c 65 | 42 79 4f 62 6a 65 63 74 |eachable|ByObject|
|00002f00| 20 43 75 72 72 65 6e 74 | 47 6f 61 6c 41 63 74 6f | Current|GoalActo|
|00002f10| 72 2e 4c 6f 63 61 74 69 | 6f 6e 20 22 20 24 20 43 |r.Locati|on " $ C|
|00002f20| 75 72 72 65 6e 74 47 6f | 61 6c 41 63 74 6f 72 2e |urrentGo|alActor.|
|00002f30| 4c 6f 63 61 74 69 6f 6e | 2c 20 64 65 66 61 75 6c |Location|, defaul|
|00002f40| 74 2e 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |t.DebugC|ategoryN|
|00002f50| 61 6d 65 20 29 3b 0d 0a | 09 09 09 09 63 6c 61 73 |ame );..|....clas|
|00002f60| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00002f70| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|00002f80| 74 4f 62 6a 65 63 74 2c | 20 22 49 73 47 6f 61 6c |tObject,| "IsGoal|
|00002f90| 52 65 61 63 68 61 62 6c | 65 42 79 4f 62 6a 65 63 |Reachabl|eByObjec|
|00002fa0| 74 20 43 75 72 72 65 6e | 74 47 6f 61 6c 4c 6f 63 |t Curren|tGoalLoc|
|00002fb0| 61 74 69 6f 6e 20 22 20 | 24 20 43 75 72 72 65 6e |ation " |$ Curren|
|00002fc0| 74 47 6f 61 6c 4c 6f 63 | 61 74 69 6f 6e 2c 20 64 |tGoalLoc|ation, d|
|00002fd0| 65 66 61 75 6c 74 2e 44 | 65 62 75 67 43 61 74 65 |efault.D|ebugCate|
|00002fe0| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 09 09 09 |goryName| );.....|
|00002ff0| 7d 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 7b |}.....el|se.....{|
|00003000| 0d 0a 09 09 09 09 62 47 | 6f 61 6c 49 73 52 65 61 |......bG|oalIsRea|
|00003010| 63 68 61 62 6c 65 20 3d | 20 43 6f 6e 74 65 78 74 |chable =| Context|
|00003020| 50 61 77 6e 2e 41 63 74 | 6f 72 52 65 61 63 68 61 |Pawn.Act|orReacha|
|00003030| 62 6c 65 28 20 43 75 72 | 72 65 6e 74 47 6f 61 6c |ble( Cur|rentGoal|
|00003040| 41 63 74 6f 72 20 29 3b | 0d 0a 09 09 09 7d 0d 0a |Actor );|.....}..|
|00003050| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 20 69 66 28 20 |..}....e|lse if( |
|00003060| 47 6f 61 6c 2e 47 65 74 | 47 6f 61 6c 4c 6f 63 61 |Goal.Get|GoalLoca|
|00003070| 74 69 6f 6e 28 20 43 6f | 6e 74 65 78 74 50 61 77 |tion( Co|ntextPaw|
|00003080| 6e 2c 20 43 75 72 72 65 | 6e 74 47 6f 61 6c 4c 6f |n, Curre|ntGoalLo|
|00003090| 63 61 74 69 6f 6e 20 29 | 20 29 0d 0a 09 09 7b 0d |cation )| )....{.|
|000030a0| 0a 09 09 09 62 47 6f 61 | 6c 49 73 52 65 61 63 68 |....bGoa|lIsReach|
|000030b0| 61 62 6c 65 20 3d 20 43 | 6f 6e 74 65 78 74 50 61 |able = C|ontextPa|
|000030c0| 77 6e 2e 50 6f 69 6e 74 | 52 65 61 63 68 61 62 6c |wn.Point|Reachabl|
|000030d0| 65 28 20 43 75 72 72 65 | 6e 74 47 6f 61 6c 4c 6f |e( Curre|ntGoalLo|
|000030e0| 63 61 74 69 6f 6e 20 29 | 3b 0d 0a 09 09 7d 0d 0a |cation )|;....}..|
|000030f0| 0d 0a 2f 2f 78 78 78 72 | 6c 6f 20 68 61 63 6b 21 |..//xxxr|lo hack!|
|00003100| 0d 0a 09 09 69 66 28 20 | 62 52 65 73 74 6f 72 65 |....if( |bRestore|
|00003110| 46 61 6c 6c 69 6e 67 50 | 68 79 73 69 63 73 20 29 |FallingP|hysics )|
|00003120| 0d 0a 09 09 7b 0d 0a 09 | 09 09 43 6f 6e 74 65 78 |....{...|..Contex|
|00003130| 74 50 61 77 6e 2e 53 65 | 74 50 68 79 73 69 63 73 |tPawn.Se|tPhysics|
|00003140| 28 20 50 48 59 53 5f 46 | 61 6c 6c 69 6e 67 20 29 |( PHYS_F|alling )|
|00003150| 3b 0d 0a 09 09 7d 0d 0a | 2f 2f 78 78 78 72 6c 6f |;....}..|//xxxrlo|
|00003160| 20 68 61 63 6b 21 0d 0a | 0d 0a 09 7d 0d 0a 09 63 | hack!..|...}...c|
|00003170| 6c 61 73 73 27 44 65 62 | 75 67 27 2e 73 74 61 74 |lass'Deb|ug'.stat|
|00003180| 69 63 2e 44 65 62 75 67 | 4c 6f 67 28 20 43 6f 6e |ic.Debug|Log( Con|
|00003190| 74 65 78 74 4f 62 6a 65 | 63 74 2c 20 22 49 73 47 |textObje|ct, "IsG|
|000031a0| 6f 61 6c 52 65 61 63 68 | 61 62 6c 65 42 79 4f 62 |oalReach|ableByOb|
|000031b0| 6a 65 63 74 20 72 65 74 | 75 72 6e 69 6e 67 20 22 |ject ret|urning "|
|000031c0| 20 24 20 62 47 6f 61 6c | 49 73 52 65 61 63 68 61 | $ bGoal|IsReacha|
|000031d0| 62 6c 65 2c 20 64 65 66 | 61 75 6c 74 2e 44 65 62 |ble, def|ault.Deb|
|000031e0| 75 67 43 61 74 65 67 6f | 72 79 4e 61 6d 65 20 29 |ugCatego|ryName )|
|000031f0| 3b 0d 0a 09 72 65 74 75 | 72 6e 20 62 47 6f 61 6c |;...retu|rn bGoal|
|00003200| 49 73 52 65 61 63 68 61 | 62 6c 65 3b 0d 0a 7d 0d |IsReacha|ble;..}.|
|00003210| 0a 2a 2f 0d 0a 0d 0a 0d | 0a 2f 2a 0d 0a 73 74 61 |.*/.....|./*..sta|
|00003220| 74 69 63 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |tic func|tion boo|
|00003230| 6c 20 49 73 47 6f 61 6c | 50 61 74 68 61 62 6c 65 |l IsGoal|Pathable|
|00003240| 42 79 4f 62 6a 65 63 74 | 28 20 4f 62 6a 65 63 74 |ByObject|( Object|
|00003250| 20 43 6f 6e 74 65 78 74 | 4f 62 6a 65 63 74 2c 20 | Context|Object, |
|00003260| 47 6f 61 6c 41 62 73 74 | 72 61 63 74 65 72 49 6e |GoalAbst|racterIn|
|00003270| 74 65 72 66 20 47 6f 61 | 6c 20 29 0d 0a 7b 0d 0a |terf Goa|l )..{..|
|00003280| 09 6c 6f 63 61 6c 20 4e | 61 76 69 67 61 74 69 6f |.local N|avigatio|
|00003290| 6e 50 6f 69 6e 74 20 4e | 61 76 69 67 50 6f 69 6e |nPoint N|avigPoin|
|000032a0| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 62 6f 6f 6c 20 |t;...loc|al bool |
|000032b0| 62 4e 61 76 69 67 50 74 | 46 6f 75 6e 64 3b 0d 0a |bNavigPt|Found;..|
|000032c0| 09 6c 6f 63 61 6c 20 41 | 63 74 6f 72 20 43 6f 6e |.local A|ctor Con|
|000032d0| 74 65 78 74 41 63 74 6f | 72 3b 0d 0a 09 0d 0a 09 |textActo|r;......|
|000032e0| 63 6c 61 73 73 27 44 65 | 62 75 67 27 2e 73 74 61 |class'De|bug'.sta|
|000032f0| 74 69 63 2e 44 65 62 75 | 67 4c 6f 67 28 20 43 6f |tic.Debu|gLog( Co|
|00003300| 6e 74 65 78 74 4f 62 6a | 65 63 74 2c 20 22 49 73 |ntextObj|ect, "Is|
|00003310| 47 6f 61 6c 50 61 74 68 | 61 62 6c 65 42 79 4f 62 |GoalPath|ableByOb|
|00003320| 6a 65 63 74 22 2c 20 64 | 65 66 61 75 6c 74 2e 44 |ject", d|efault.D|
|00003330| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00003340| 20 29 3b 0d 0a 09 43 6f | 6e 74 65 78 74 41 63 74 | );...Co|ntextAct|
|00003350| 6f 72 20 3d 20 41 63 74 | 6f 72 28 20 43 6f 6e 74 |or = Act|or( Cont|
|00003360| 65 78 74 4f 62 6a 65 63 | 74 20 29 3b 0d 0a 09 69 |extObjec|t );...i|
|00003370| 66 28 20 43 6f 6e 74 65 | 78 74 41 63 74 6f 72 20 |f( Conte|xtActor |
|00003380| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00003390| 09 62 4e 61 76 69 67 50 | 74 46 6f 75 6e 64 20 3d |.bNavigP|tFound =|
|000033a0| 20 46 69 6e 64 4e 61 76 | 69 67 61 74 69 6f 6e 50 | FindNav|igationP|
|000033b0| 6f 69 6e 74 46 72 6f 6d | 41 63 74 6f 72 28 20 4e |ointFrom|Actor( N|
|000033c0| 61 76 69 67 50 6f 69 6e | 74 2c 20 43 6f 6e 74 65 |avigPoin|t, Conte|
|000033d0| 78 74 41 63 74 6f 72 2c | 20 47 6f 61 6c 20 29 3b |xtActor,| Goal );|
|000033e0| 0d 0a 09 7d 0d 0a 09 63 | 6c 61 73 73 27 44 65 62 |...}...c|lass'Deb|
|000033f0| 75 67 27 2e 73 74 61 74 | 69 63 2e 44 65 62 75 67 |ug'.stat|ic.Debug|
|00003400| 4c 6f 67 28 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 |Log( Con|textObje|
|00003410| 63 74 2c 20 22 49 73 47 | 6f 61 6c 50 61 74 68 61 |ct, "IsG|oalPatha|
|00003420| 62 6c 65 42 79 4f 62 6a | 65 63 74 20 72 65 74 75 |bleByObj|ect retu|
|00003430| 72 6e 69 6e 67 20 22 20 | 24 20 62 4e 61 76 69 67 |rning " |$ bNavig|
|00003440| 50 74 46 6f 75 6e 64 2c | 20 64 65 66 61 75 6c 74 |PtFound,| default|
|00003450| 2e 44 65 62 75 67 43 61 | 74 65 67 6f 72 79 4e 61 |.DebugCa|tegoryNa|
|00003460| 6d 65 20 29 3b 0d 0a 09 | 72 65 74 75 72 6e 20 62 |me );...|return b|
|00003470| 4e 61 76 69 67 50 74 46 | 6f 75 6e 64 3b 0d 0a 7d |NavigPtF|ound;..}|
|00003480| 0d 0a 2a 2f 0d 0a 0d 0a | 0d 0a 2f 2a 0d 0a 73 74 |..*/....|../*..st|
|00003490| 61 74 69 63 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |atic fun|ction bo|
|000034a0| 6f 6c 20 49 73 47 6f 61 | 6c 4e 61 76 69 67 61 62 |ol IsGoa|lNavigab|
|000034b0| 6c 65 42 79 4f 62 6a 65 | 63 74 28 20 4f 62 6a 65 |leByObje|ct( Obje|
|000034c0| 63 74 20 43 6f 6e 74 65 | 78 74 4f 62 6a 65 63 74 |ct Conte|xtObject|
|000034d0| 2c 20 47 6f 61 6c 41 62 | 73 74 72 61 63 74 65 72 |, GoalAb|stracter|
|000034e0| 49 6e 74 65 72 66 20 47 | 6f 61 6c 20 29 0d 0a 7b |Interf G|oal )..{|
|000034f0| 0d 0a 09 6c 6f 63 61 6c | 20 41 63 74 6f 72 20 43 |...local| Actor C|
|00003500| 75 72 72 65 6e 74 47 6f | 61 6c 41 63 74 6f 72 3b |urrentGo|alActor;|
|00003510| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 62 4e |...local| bool bN|
|00003520| 61 76 69 67 61 62 6c 65 | 3b 0d 0a 09 0d 0a 09 63 |avigable|;......c|
|00003530| 6c 61 73 73 27 44 65 62 | 75 67 27 2e 73 74 61 74 |lass'Deb|ug'.stat|
|00003540| 69 63 2e 44 65 62 75 67 | 4c 6f 67 28 20 43 6f 6e |ic.Debug|Log( Con|
|00003550| 74 65 78 74 4f 62 6a 65 | 63 74 2c 20 22 49 73 47 |textObje|ct, "IsG|
|00003560| 6f 61 6c 4e 61 76 69 67 | 61 62 6c 65 42 79 4f 62 |oalNavig|ableByOb|
|00003570| 6a 65 63 74 22 2c 20 64 | 65 66 61 75 6c 74 2e 44 |ject", d|efault.D|
|00003580| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00003590| 20 29 3b 0d 0a 09 62 4e | 61 76 69 67 61 62 6c 65 | );...bN|avigable|
|000035a0| 20 3d 20 49 73 47 6f 61 | 6c 52 65 61 63 68 61 62 | = IsGoa|lReachab|
|000035b0| 6c 65 42 79 4f 62 6a 65 | 63 74 28 20 43 6f 6e 74 |leByObje|ct( Cont|
|000035c0| 65 78 74 4f 62 6a 65 63 | 74 2c 20 47 6f 61 6c 20 |extObjec|t, Goal |
|000035d0| 29 20 7c 7c 20 49 73 47 | 6f 61 6c 50 61 74 68 61 |) || IsG|oalPatha|
|000035e0| 62 6c 65 42 79 4f 62 6a | 65 63 74 28 20 43 6f 6e |bleByObj|ect( Con|
|000035f0| 74 65 78 74 4f 62 6a 65 | 63 74 2c 20 47 6f 61 6c |textObje|ct, Goal|
|00003600| 20 29 3b 0d 0a 09 63 6c | 61 73 73 27 44 65 62 75 | );...cl|ass'Debu|
|00003610| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|00003620| 6f 67 28 20 43 6f 6e 74 | 65 78 74 4f 62 6a 65 63 |og( Cont|extObjec|
|00003630| 74 2c 20 22 49 73 47 6f | 61 6c 4e 61 76 69 67 61 |t, "IsGo|alNaviga|
|00003640| 62 6c 65 42 79 4f 62 6a | 65 63 74 20 72 65 74 75 |bleByObj|ect retu|
|00003650| 72 6e 69 6e 67 20 22 20 | 24 20 62 4e 61 76 69 67 |rning " |$ bNavig|
|00003660| 61 62 6c 65 2c 20 64 65 | 66 61 75 6c 74 2e 44 65 |able, de|fault.De|
|00003670| 62 75 67 43 61 74 65 67 | 6f 72 79 4e 61 6d 65 20 |bugCateg|oryName |
|00003680| 29 3b 0d 0a 09 72 65 74 | 75 72 6e 20 62 4e 61 76 |);...ret|urn bNav|
|00003690| 69 67 61 62 6c 65 3b 0d | 0a 7d 0d 0a 2a 2f 0d 0a |igable;.|.}..*/..|
|000036a0| 0d 0a 0d 0a 2f 2a 0d 0a | 73 74 61 74 69 63 20 66 |..../*..|static f|
|000036b0| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 47 65 74 |unction |bool Get|
|000036c0| 41 63 74 6f 72 4e 61 76 | 69 67 61 74 69 6f 6e 47 |ActorNav|igationG|
|000036d0| 6f 61 6c 28 20 4f 62 6a | 65 63 74 20 49 6e 76 6f |oal( Obj|ect Invo|
|000036e0| 6b 69 6e 67 4f 62 6a 65 | 63 74 2c 20 47 6f 61 6c |kingObje|ct, Goal|
|000036f0| 41 62 73 74 72 61 63 74 | 65 72 49 6e 74 65 72 66 |Abstract|erInterf|
|00003700| 20 4e 61 76 69 67 61 74 | 69 6f 6e 47 6f 61 6c 20 | Navigat|ionGoal |
|00003710| 29 0d 0a 7b 0d 0a 09 2f | 2f 78 78 78 72 6c 6f 0d |)..{.../|/xxxrlo.|
|00003720| 0a 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00003730| 0a 7d 0d 0a 2a 2f 0d 0a | 0d 0a 0d 0a 2f 2a 0d 0a |.}..*/..|..../*..|
|00003740| 73 74 61 74 69 63 20 66 | 75 6e 63 74 69 6f 6e 20 |static f|unction |
|00003750| 62 6f 6f 6c 20 46 69 6e | 64 4e 61 76 69 67 61 74 |bool Fin|dNavigat|
|00003760| 69 6f 6e 47 6f 61 6c 46 | 72 6f 6d 41 63 74 6f 72 |ionGoalF|romActor|
|00003770| 28 20 47 6f 61 6c 41 62 | 73 74 72 61 63 74 65 72 |( GoalAb|stracter|
|00003780| 49 6e 74 65 72 66 20 4e | 61 76 69 67 61 74 69 6f |Interf N|avigatio|
|00003790| 6e 47 6f 61 6c 2c 20 41 | 63 74 6f 72 20 43 6f 6e |nGoal, A|ctor Con|
|000037a0| 74 65 78 74 4f 62 6a 65 | 63 74 2c 20 47 6f 61 6c |textObje|ct, Goal|
|000037b0| 41 62 73 74 72 61 63 74 | 65 72 49 6e 74 65 72 66 |Abstract|erInterf|
|000037c0| 20 47 6f 61 6c 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 | Goal ).|.{...loc|
|000037d0| 61 6c 20 56 65 63 74 6f | 72 20 47 6f 61 6c 4c 6f |al Vecto|r GoalLo|
|000037e0| 63 61 74 69 6f 6e 3b 0d | 0a 09 6c 6f 63 61 6c 20 |cation;.|..local |
|000037f0| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 20 |Navigati|onPoint |
|00003800| 46 6f 75 6e 64 4e 61 76 | 69 67 50 6f 69 6e 74 3b |FoundNav|igPoint;|
|00003810| 0d 0a 09 0d 0a 09 63 6c | 61 73 73 27 44 65 62 75 |......cl|ass'Debu|
|00003820| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|00003830| 6f 67 28 20 43 6f 6e 74 | 65 78 74 4f 62 6a 65 63 |og( Cont|extObjec|
|00003840| 74 2c 20 22 46 69 6e 64 | 4e 61 76 69 67 61 74 69 |t, "Find|Navigati|
|00003850| 6f 6e 47 6f 61 6c 46 72 | 6f 6d 41 63 74 6f 72 22 |onGoalFr|omActor"|
|00003860| 2c 20 64 65 66 61 75 6c | 74 2e 44 65 62 75 67 43 |, defaul|t.DebugC|
|00003870| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00003880| 09 69 66 28 20 49 73 47 | 6f 61 6c 52 65 61 63 68 |.if( IsG|oalReach|
|00003890| 61 62 6c 65 42 79 4f 62 | 6a 65 63 74 28 20 43 6f |ableByOb|ject( Co|
|000038a0| 6e 74 65 78 74 4f 62 6a | 65 63 74 2c 20 47 6f 61 |ntextObj|ect, Goa|
|000038b0| 6c 20 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 63 6c 61 |l ) )...|{....cla|
|000038c0| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|000038d0| 2e 44 65 62 75 67 4c 6f | 67 28 20 43 6f 6e 74 65 |.DebugLo|g( Conte|
|000038e0| 78 74 4f 62 6a 65 63 74 | 2c 20 22 46 69 6e 64 4e |xtObject|, "FindN|
|000038f0| 61 76 69 67 61 74 69 6f | 6e 47 6f 61 6c 46 72 6f |avigatio|nGoalFro|
|00003900| 6d 41 63 74 6f 72 20 74 | 68 65 20 67 6f 61 6c 20 |mActor t|he goal |
|00003910| 69 73 20 72 65 61 63 68 | 61 62 6c 65 22 2c 20 64 |is reach|able", d|
|00003920| 65 66 61 75 6c 74 2e 44 | 65 62 75 67 43 61 74 65 |efault.D|ebugCate|
|00003930| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 09 09 4e |goryName| );....N|
|00003940| 61 76 69 67 61 74 69 6f | 6e 47 6f 61 6c 2e 41 73 |avigatio|nGoal.As|
|00003950| 73 69 67 6e 4f 62 6a 65 | 63 74 28 20 43 6f 6e 74 |signObje|ct( Cont|
|00003960| 65 78 74 4f 62 6a 65 63 | 74 2c 20 47 6f 61 6c 20 |extObjec|t, Goal |
|00003970| 29 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 20 69 66 |);...}..|.else if|
|00003980| 28 20 47 6f 61 6c 2e 49 | 73 41 28 20 27 47 6f 61 |( Goal.I|sA( 'Goa|
|00003990| 6c 41 62 73 74 72 61 63 | 74 65 72 49 6e 74 65 72 |lAbstrac|terInter|
|000039a0| 66 27 20 29 20 26 26 20 | 46 69 6e 64 4e 61 76 69 |f' ) && |FindNavi|
|000039b0| 67 61 74 69 6f 6e 50 6f | 69 6e 74 46 72 6f 6d 41 |gationPo|intFromA|
|000039c0| 63 74 6f 72 28 20 46 6f | 75 6e 64 4e 61 76 69 67 |ctor( Fo|undNavig|
|000039d0| 50 6f 69 6e 74 2c 20 43 | 6f 6e 74 65 78 74 4f 62 |Point, C|ontextOb|
|000039e0| 6a 65 63 74 2c 20 47 6f | 61 6c 20 29 20 29 0d 0a |ject, Go|al ) )..|
|000039f0| 09 7b 0d 0a 09 09 63 6c | 61 73 73 27 44 65 62 75 |.{....cl|ass'Debu|
|00003a00| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|00003a10| 6f 67 28 20 43 6f 6e 74 | 65 78 74 4f 62 6a 65 63 |og( Cont|extObjec|
|00003a20| 74 2c 20 22 46 69 6e 64 | 4e 61 76 69 67 61 74 69 |t, "Find|Navigati|
|00003a30| 6f 6e 47 6f 61 6c 46 72 | 6f 6d 41 63 74 6f 72 20 |onGoalFr|omActor |
|00003a40| 74 68 65 20 67 6f 61 6c | 20 69 73 20 70 61 74 68 |the goal| is path|
|00003a50| 61 62 6c 65 22 2c 20 64 | 65 66 61 75 6c 74 2e 44 |able", d|efault.D|
|00003a60| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00003a70| 20 29 3b 0d 0a 09 09 4e | 61 76 69 67 61 74 69 6f | );....N|avigatio|
|00003a80| 6e 47 6f 61 6c 2e 41 73 | 73 69 67 6e 4f 62 6a 65 |nGoal.As|signObje|
|00003a90| 63 74 28 20 43 6f 6e 74 | 65 78 74 4f 62 6a 65 63 |ct( Cont|extObjec|
|00003aa0| 74 2c 20 46 6f 75 6e 64 | 4e 61 76 69 67 50 6f 69 |t, Found|NavigPoi|
|00003ab0| 6e 74 20 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |nt );...|}...else|
|00003ac0| 0d 0a 09 7b 0d 0a 09 09 | 63 6c 61 73 73 27 44 65 |...{....|class'De|
|00003ad0| 62 75 67 27 2e 73 74 61 | 74 69 63 2e 44 65 62 75 |bug'.sta|tic.Debu|
|00003ae0| 67 4c 6f 67 28 20 43 6f | 6e 74 65 78 74 4f 62 6a |gLog( Co|ntextObj|
|00003af0| 65 63 74 2c 20 22 46 69 | 6e 64 4e 61 76 69 67 61 |ect, "Fi|ndNaviga|
|00003b00| 74 69 6f 6e 47 6f 61 6c | 46 72 6f 6d 41 63 74 6f |tionGoal|FromActo|
|00003b10| 72 20 74 68 65 20 67 6f | 61 6c 20 69 73 20 6e 6f |r the go|al is no|
|00003b20| 74 20 72 65 61 63 68 61 | 62 6c 65 20 6f 72 20 70 |t reacha|ble or p|
|00003b30| 61 74 68 61 62 6c 65 22 | 2c 20 64 65 66 61 75 6c |athable"|, defaul|
|00003b40| 74 2e 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |t.DebugC|ategoryN|
|00003b50| 61 6d 65 20 29 3b 0d 0a | 09 09 4e 61 76 69 67 61 |ame );..|..Naviga|
|00003b60| 74 69 6f 6e 47 6f 61 6c | 2e 49 6e 76 61 6c 69 64 |tionGoal|.Invalid|
|00003b70| 61 74 65 28 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 |ate( Con|textObje|
|00003b80| 63 74 20 29 3b 0d 0a 09 | 7d 0d 0a 09 63 6c 61 73 |ct );...|}...clas|
|00003b90| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00003ba0| 44 65 62 75 67 4c 6f 67 | 28 20 43 6f 6e 74 65 78 |DebugLog|( Contex|
|00003bb0| 74 4f 62 6a 65 63 74 2c | 20 22 46 69 6e 64 4e 61 |tObject,| "FindNa|
|00003bc0| 76 69 67 61 74 69 6f 6e | 47 6f 61 6c 46 72 6f 6d |vigation|GoalFrom|
|00003bd0| 41 63 74 6f 72 20 72 65 | 74 75 72 6e 69 6e 67 20 |Actor re|turning |
|00003be0| 22 20 24 20 4e 61 76 69 | 67 61 74 69 6f 6e 47 6f |" $ Navi|gationGo|
|00003bf0| 61 6c 2e 49 73 56 61 6c | 69 64 28 20 43 6f 6e 74 |al.IsVal|id( Cont|
|00003c00| 65 78 74 4f 62 6a 65 63 | 74 20 29 2c 20 64 65 66 |extObjec|t ), def|
|00003c10| 61 75 6c 74 2e 44 65 62 | 75 67 43 61 74 65 67 6f |ault.Deb|ugCatego|
|00003c20| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 72 65 74 75 |ryName )|;...retu|
|00003c30| 72 6e 20 4e 61 76 69 67 | 61 74 69 6f 6e 47 6f 61 |rn Navig|ationGoa|
|00003c40| 6c 2e 49 73 56 61 6c 69 | 64 28 20 43 6f 6e 74 65 |l.IsVali|d( Conte|
|00003c50| 78 74 4f 62 6a 65 63 74 | 20 29 3b 0d 0a 7d 0d 0a |xtObject| );..}..|
|00003c60| 2a 2f 0d 0a 0d 0a 0d 0a | 2f 2f 3d 3d 3d 3d 3d 3d |*/......|//======|
|00003c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003c80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003c90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ca0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003cb0| 3d 3d 3d 3d 3d 3d 3d 0d | 0a 2f 2f 20 70 72 69 76 |=======.|.// priv|
|00003cc0| 61 74 65 20 73 74 61 74 | 69 63 20 69 6e 74 65 72 |ate stat|ic inter|
|00003cd0| 66 61 63 65 0d 0a 2f 2f | 3d 3d 3d 3d 3d 3d 3d 3d |face..//|========|
|00003ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d20| 3d 3d 3d 3d 3d 0d 0a 0d | 0a 0d 0a 0d 0a 2f 2a 0d |=====...|...../*.|
|00003d30| 0a 73 74 61 74 69 63 20 | 66 75 6e 63 74 69 6f 6e |.static |function|
|00003d40| 20 62 6f 6f 6c 20 46 69 | 6e 64 4e 61 76 69 67 61 | bool Fi|ndNaviga|
|00003d50| 74 69 6f 6e 50 6f 69 6e | 74 46 72 6f 6d 41 63 74 |tionPoin|tFromAct|
|00003d60| 6f 72 28 20 6f 75 74 20 | 4e 61 76 69 67 61 74 69 |or( out |Navigati|
|00003d70| 6f 6e 50 6f 69 6e 74 20 | 46 6f 75 6e 64 4e 61 76 |onPoint |FoundNav|
|00003d80| 69 67 50 6f 69 6e 74 2c | 20 41 63 74 6f 72 20 43 |igPoint,| Actor C|
|00003d90| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 2c 20 47 6f |ontextOb|ject, Go|
|00003da0| 61 6c 41 62 73 74 72 61 | 63 74 65 72 49 6e 74 65 |alAbstra|cterInte|
|00003db0| 72 66 20 47 6f 61 6c 20 | 29 0d 0a 7b 0d 0a 09 6c |rf Goal |)..{...l|
|00003dc0| 6f 63 61 6c 20 50 61 77 | 6e 20 43 6f 6e 74 65 78 |ocal Paw|n Contex|
|00003dd0| 74 50 61 77 6e 3b 0d 0a | 09 6c 6f 63 61 6c 20 56 |tPawn;..|.local V|
|00003de0| 65 63 74 6f 72 20 43 75 | 72 72 65 6e 74 47 6f 61 |ector Cu|rrentGoa|
|00003df0| 6c 4c 6f 63 61 74 69 6f | 6e 2c 20 54 72 61 63 65 |lLocatio|n, Trace|
|00003e00| 48 69 74 4e 6f 72 6d 61 | 6c 3b 0d 0a 09 6c 6f 63 |HitNorma|l;...loc|
|00003e10| 61 6c 20 41 63 74 6f 72 | 20 43 75 72 72 65 6e 74 |al Actor| Current|
|00003e20| 47 6f 61 6c 41 63 74 6f | 72 3b 0d 0a 09 6c 6f 63 |GoalActo|r;...loc|
|00003e30| 61 6c 20 62 6f 6f 6c 20 | 62 4e 61 76 69 67 50 6f |al bool |bNavigPo|
|00003e40| 69 6e 74 46 6f 75 6e 64 | 2c 20 62 52 65 73 74 6f |intFound|, bResto|
|00003e50| 72 65 46 61 6c 6c 69 6e | 67 50 68 79 73 69 63 73 |reFallin|gPhysics|
|00003e60| 3b 0d 0a 0d 0a 09 63 6c | 61 73 73 27 44 65 62 75 |;.....cl|ass'Debu|
|00003e70| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|00003e80| 6f 67 28 20 43 6f 6e 74 | 65 78 74 4f 62 6a 65 63 |og( Cont|extObjec|
|00003e90| 74 2c 20 22 46 69 6e 64 | 4e 61 76 69 67 61 74 69 |t, "Find|Navigati|
|00003ea0| 6f 6e 50 6f 69 6e 74 46 | 72 6f 6d 41 63 74 6f 72 |onPointF|romActor|
|00003eb0| 22 2c 20 64 65 66 61 75 | 6c 74 2e 44 65 62 75 67 |", defau|lt.Debug|
|00003ec0| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00003ed0| 0a 09 43 6f 6e 74 65 78 | 74 50 61 77 6e 20 3d 20 |..Contex|tPawn = |
|00003ee0| 50 61 77 6e 28 20 43 6f | 6e 74 65 78 74 4f 62 6a |Pawn( Co|ntextObj|
|00003ef0| 65 63 74 20 29 3b 0d 0a | 09 69 66 28 20 43 6f 6e |ect );..|.if( Con|
|00003f00| 74 65 78 74 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 |textPawn| != None|
|00003f10| 20 29 0d 0a 09 7b 0d 0a | 2f 2f 78 78 78 72 6c 6f | )...{..|//xxxrlo|
|00003f20| 20 68 61 63 6b 21 0d 0a | 09 09 69 66 28 20 43 6f | hack!..|..if( Co|
|00003f30| 6e 74 65 78 74 50 61 77 | 6e 2e 50 68 79 73 69 63 |ntextPaw|n.Physic|
|00003f40| 73 20 3d 3d 20 50 48 59 | 53 5f 46 61 6c 6c 69 6e |s == PHY|S_Fallin|
|00003f50| 67 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 62 52 65 |g )....{|.....bRe|
|00003f60| 73 74 6f 72 65 46 61 6c | 6c 69 6e 67 50 68 79 73 |storeFal|lingPhys|
|00003f70| 69 63 73 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 09 |ics = tr|ue;.....|
|00003f80| 43 6f 6e 74 65 78 74 50 | 61 77 6e 2e 53 65 74 50 |ContextP|awn.SetP|
|00003f90| 68 79 73 69 63 73 28 20 | 50 48 59 53 5f 57 61 6c |hysics( |PHYS_Wal|
|00003fa0| 6b 69 6e 67 20 29 3b 0d | 0a 09 09 7d 0d 0a 2f 2f |king );.|...}..//|
|00003fb0| 78 78 78 72 6c 6f 20 68 | 61 63 6b 21 0d 0a 0d 0a |xxxrlo h|ack!....|
|00003fc0| 09 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|00003fd0| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00003fe0| 43 6f 6e 74 65 78 74 50 | 61 77 6e 2c 20 22 46 69 |ContextP|awn, "Fi|
|00003ff0| 6e 64 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |ndNaviga|tionPoin|
|00004000| 74 46 72 6f 6d 41 63 74 | 6f 72 20 61 74 74 65 6d |tFromAct|or attem|
|00004010| 70 74 69 6e 67 20 74 6f | 20 75 73 65 20 65 6e 67 |pting to| use eng|
|00004020| 69 6e 65 20 70 61 74 68 | 20 6e 6f 64 65 20 69 6e |ine path| node in|
|00004030| 74 65 72 66 61 63 65 20 | 69 6e 74 65 72 66 61 63 |terface |interfac|
|00004040| 65 22 2c 20 64 65 66 61 | 75 6c 74 2e 44 65 62 75 |e", defa|ult.Debu|
|00004050| 67 43 61 74 65 67 6f 72 | 79 4e 61 6d 65 20 29 3b |gCategor|yName );|
|00004060| 0d 0a 09 09 69 66 28 20 | 47 6f 61 6c 2e 47 65 74 |....if( |Goal.Get|
|00004070| 47 6f 61 6c 41 63 74 6f | 72 28 20 43 6f 6e 74 65 |GoalActo|r( Conte|
|00004080| 78 74 50 61 77 6e 2c 20 | 43 75 72 72 65 6e 74 47 |xtPawn, |CurrentG|
|00004090| 6f 61 6c 41 63 74 6f 72 | 20 29 20 29 0d 0a 09 09 |oalActor| ) )....|
|000040a0| 7b 0d 0a 09 09 09 63 6c | 61 73 73 27 44 65 62 75 |{.....cl|ass'Debu|
|000040b0| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|000040c0| 6f 67 28 20 43 6f 6e 74 | 65 78 74 50 61 77 6e 2c |og( Cont|extPawn,|
|000040d0| 20 22 46 69 6e 64 4e 61 | 76 69 67 61 74 69 6f 6e | "FindNa|vigation|
|000040e0| 50 6f 69 6e 74 46 72 6f | 6d 41 63 74 6f 72 20 43 |PointFro|mActor C|
|000040f0| 75 72 72 65 6e 74 47 6f | 61 6c 41 63 74 6f 72 20 |urrentGo|alActor |
|00004100| 22 20 24 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 41 |" $ Curr|entGoalA|
|00004110| 63 74 6f 72 2c 20 64 65 | 66 61 75 6c 74 2e 44 65 |ctor, de|fault.De|
|00004120| 62 75 67 43 61 74 65 67 | 6f 72 79 4e 61 6d 65 20 |bugCateg|oryName |
|00004130| 29 3b 0d 0a 09 09 09 69 | 66 28 20 43 75 72 72 65 |);.....i|f( Curre|
|00004140| 6e 74 47 6f 61 6c 41 63 | 74 6f 72 2e 50 68 79 73 |ntGoalAc|tor.Phys|
|00004150| 69 63 73 20 3d 3d 20 50 | 48 59 53 5f 46 61 6c 6c |ics == P|HYS_Fall|
|00004160| 69 6e 67 20 29 0d 0a 09 | 09 09 7b 0d 0a 2f 2a 0d |ing )...|..{../*.|
|00004170| 0a 2f 2f 78 78 78 72 6c | 6f 0d 0a 74 68 65 20 72 |.//xxxrl|o..the r|
|00004180| 61 6d 69 66 69 63 61 74 | 69 6f 6e 73 20 6f 66 20 |amificat|ions of |
|00004190| 74 68 69 73 20 68 61 63 | 6b 20 61 72 65 20 73 69 |this hac|k are si|
|000041a0| 67 6e 69 66 69 63 61 6e | 74 21 0d 0a 74 68 65 20 |gnifican|t!..the |
|000041b0| 72 65 61 63 68 61 62 6c | 65 20 73 75 63 63 65 73 |reachabl|e succes|
|000041c0| 73 66 75 6c 20 63 61 63 | 68 65 20 69 73 20 67 6f |sful cac|he is go|
|000041d0| 69 6e 67 20 74 6f 20 65 | 6e 64 20 75 70 20 77 69 |ing to e|nd up wi|
|000041e0| 74 68 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 20 |th the l|ocation |
|000041f0| 6f 66 20 74 68 65 20 67 | 6f 61 6c 20 69 6e 20 73 |of the g|oal in s|
|00004200| 70 61 63 65 0d 0a 74 68 | 65 20 6e 61 76 69 67 61 |pace..th|e naviga|
|00004210| 74 69 6f 6e 20 67 6f 61 | 6c 20 77 69 6c 6c 20 6a |tion goa|l will j|
|00004220| 75 73 74 20 62 65 20 69 | 6e 69 74 69 61 6c 69 7a |ust be i|nitializ|
|00004230| 65 64 20 77 69 74 68 20 | 74 68 65 20 67 6f 61 6c |ed with |the goal|
|00004240| 0d 0a 61 73 20 6f 70 70 | 6f 73 65 64 20 74 6f 20 |..as opp|osed to |
|00004250| 74 68 65 20 67 6f 61 6c | 27 73 20 6c 6f 63 61 74 |the goal|'s locat|
|00004260| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 66 6c 6f 6f 72 |ion on t|he floor|
|00004270| 20 0d 0a 2a 2f 0d 0a 09 | 09 09 09 63 6c 61 73 73 | ..*/...|...class|
|00004280| 27 55 74 69 6c 27 2e 73 | 74 61 74 69 63 2e 54 72 |'Util'.s|tatic.Tr|
|00004290| 61 63 65 52 65 63 75 72 | 73 69 76 65 28 20 43 6f |aceRecur|sive( Co|
|000042a0| 6e 74 65 78 74 50 61 77 | 6e 2c 20 43 75 72 72 65 |ntextPaw|n, Curre|
|000042b0| 6e 74 47 6f 61 6c 4c 6f | 63 61 74 69 6f 6e 2c 20 |ntGoalLo|cation, |
|000042c0| 54 72 61 63 65 48 69 74 | 4e 6f 72 6d 61 6c 2c 20 |TraceHit|Normal, |
|000042d0| 43 75 72 72 65 6e 74 47 | 6f 61 6c 41 63 74 6f 72 |CurrentG|oalActor|
|000042e0| 2e 4c 6f 63 61 74 69 6f | 6e 2c 20 66 61 6c 73 65 |.Locatio|n, false|
|000042f0| 2c 20 43 75 72 72 65 6e | 74 47 6f 61 6c 41 63 74 |, Curren|tGoalAct|
|00004300| 6f 72 2e 43 6f 6c 6c 69 | 73 69 6f 6e 48 65 69 67 |or.Colli|sionHeig|
|00004310| 68 74 20 29 3b 0d 0a 09 | 09 09 09 43 75 72 72 65 |ht );...|...Curre|
|00004320| 6e 74 47 6f 61 6c 4c 6f | 63 61 74 69 6f 6e 2e 7a |ntGoalLo|cation.z|
|00004330| 20 2b 3d 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 41 | += Curr|entGoalA|
|00004340| 63 74 6f 72 2e 43 6f 6c | 6c 69 73 69 6f 6e 48 65 |ctor.Col|lisionHe|
|00004350| 69 67 68 74 3b 0d 0a 09 | 09 09 09 46 6f 75 6e 64 |ight;...|...Found|
|00004360| 4e 61 76 69 67 50 6f 69 | 6e 74 20 3d 20 4e 61 76 |NavigPoi|nt = Nav|
|00004370| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 28 20 43 6f |igationP|oint( Co|
|00004380| 6e 74 65 78 74 50 61 77 | 6e 2e 46 69 6e 64 50 61 |ntextPaw|n.FindPa|
|00004390| 74 68 54 6f 28 20 43 75 | 72 72 65 6e 74 47 6f 61 |thTo( Cu|rrentGoa|
|000043a0| 6c 4c 6f 63 61 74 69 6f | 6e 20 29 20 29 3b 0d 0a |lLocatio|n ) );..|
|000043b0| 09 09 09 09 62 4e 61 76 | 69 67 50 6f 69 6e 74 46 |....bNav|igPointF|
|000043c0| 6f 75 6e 64 20 3d 20 28 | 20 46 6f 75 6e 64 4e 61 |ound = (| FoundNa|
|000043d0| 76 69 67 50 6f 69 6e 74 | 20 21 3d 20 4e 6f 6e 65 |vigPoint| != None|
|000043e0| 20 29 3b 0d 0a 0d 0a 09 | 09 09 09 63 6c 61 73 73 | );.....|...class|
|000043f0| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00004400| 65 62 75 67 4c 6f 67 28 | 20 43 6f 6e 74 65 78 74 |ebugLog(| Context|
|00004410| 4f 62 6a 65 63 74 2c 20 | 22 46 69 6e 64 4e 61 76 |Object, |"FindNav|
|00004420| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 46 72 6f 6d |igationP|ointFrom|
|00004430| 41 63 74 6f 72 20 43 75 | 72 72 65 6e 74 47 6f 61 |Actor Cu|rrentGoa|
|00004440| 6c 41 63 74 6f 72 2e 4c | 6f 63 61 74 69 6f 6e 20 |lActor.L|ocation |
|00004450| 22 20 24 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 41 |" $ Curr|entGoalA|
|00004460| 63 74 6f 72 2e 4c 6f 63 | 61 74 69 6f 6e 2c 20 64 |ctor.Loc|ation, d|
|00004470| 65 66 61 75 6c 74 2e 44 | 65 62 75 67 43 61 74 65 |efault.D|ebugCate|
|00004480| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 09 09 09 |goryName| );.....|
|00004490| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|000044a0| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 43 |atic.Deb|ugLog( C|
|000044b0| 6f 6e 74 65 78 74 4f 62 | 6a 65 63 74 2c 20 22 46 |ontextOb|ject, "F|
|000044c0| 69 6e 64 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |indNavig|ationPoi|
|000044d0| 6e 74 46 72 6f 6d 41 63 | 74 6f 72 20 43 75 72 72 |ntFromAc|tor Curr|
|000044e0| 65 6e 74 47 6f 61 6c 4c | 6f 63 61 74 69 6f 6e 20 |entGoalL|ocation |
|000044f0| 22 20 24 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 4c |" $ Curr|entGoalL|
|00004500| 6f 63 61 74 69 6f 6e 2c | 20 64 65 66 61 75 6c 74 |ocation,| default|
|00004510| 2e 44 65 62 75 67 43 61 | 74 65 67 6f 72 79 4e 61 |.DebugCa|tegoryNa|
|00004520| 6d 65 20 29 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |me );...|..}.....|
|00004530| 65 6c 73 65 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |else....|.{......|
|00004540| 46 6f 75 6e 64 4e 61 76 | 69 67 50 6f 69 6e 74 20 |FoundNav|igPoint |
|00004550| 3d 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |= Naviga|tionPoin|
|00004560| 74 28 20 43 6f 6e 74 65 | 78 74 50 61 77 6e 2e 46 |t( Conte|xtPawn.F|
|00004570| 69 6e 64 50 61 74 68 54 | 6f 77 61 72 64 28 20 43 |indPathT|oward( C|
|00004580| 75 72 72 65 6e 74 47 6f | 61 6c 41 63 74 6f 72 20 |urrentGo|alActor |
|00004590| 29 20 29 3b 0d 0a 09 09 | 09 09 62 4e 61 76 69 67 |) );....|..bNavig|
|000045a0| 50 6f 69 6e 74 46 6f 75 | 6e 64 20 3d 20 28 20 46 |PointFou|nd = ( F|
|000045b0| 6f 75 6e 64 4e 61 76 69 | 67 50 6f 69 6e 74 20 21 |oundNavi|gPoint !|
|000045c0| 3d 20 4e 6f 6e 65 20 29 | 3b 0d 0a 09 09 09 7d 0d |= None )|;.....}.|
|000045d0| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 20 69 66 28 |...}....|else if(|
|000045e0| 20 47 6f 61 6c 2e 47 65 | 74 47 6f 61 6c 4c 6f 63 | Goal.Ge|tGoalLoc|
|000045f0| 61 74 69 6f 6e 28 20 43 | 6f 6e 74 65 78 74 50 61 |ation( C|ontextPa|
|00004600| 77 6e 2c 20 43 75 72 72 | 65 6e 74 47 6f 61 6c 4c |wn, Curr|entGoalL|
|00004610| 6f 63 61 74 69 6f 6e 20 | 29 20 29 0d 0a 09 09 7b |ocation |) )....{|
|00004620| 0d 0a 09 09 09 63 6c 61 | 73 73 27 44 65 62 75 67 |.....cla|ss'Debug|
|00004630| 27 2e 73 74 61 74 69 63 | 2e 44 65 62 75 67 4c 6f |'.static|.DebugLo|
|00004640| 67 28 20 43 6f 6e 74 65 | 78 74 50 61 77 6e 2c 20 |g( Conte|xtPawn, |
|00004650| 22 46 69 6e 64 4e 61 76 | 69 67 61 74 69 6f 6e 50 |"FindNav|igationP|
|00004660| 6f 69 6e 74 46 72 6f 6d | 41 63 74 6f 72 20 43 75 |ointFrom|Actor Cu|
|00004670| 72 72 65 6e 74 47 6f 61 | 6c 4c 6f 63 61 74 69 6f |rrentGoa|lLocatio|
|00004680| 6e 20 22 20 24 20 43 75 | 72 72 65 6e 74 47 6f 61 |n " $ Cu|rrentGoa|
|00004690| 6c 4c 6f 63 61 74 69 6f | 6e 2c 20 64 65 66 61 75 |lLocatio|n, defau|
|000046a0| 6c 74 2e 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |lt.Debug|Category|
|000046b0| 4e 61 6d 65 20 29 3b 0d | 0a 09 09 09 46 6f 75 6e |Name );.|....Foun|
|000046c0| 64 4e 61 76 69 67 50 6f | 69 6e 74 20 3d 20 4e 61 |dNavigPo|int = Na|
|000046d0| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 28 20 43 |vigation|Point( C|
|000046e0| 6f 6e 74 65 78 74 50 61 | 77 6e 2e 46 69 6e 64 50 |ontextPa|wn.FindP|
|000046f0| 61 74 68 54 6f 28 20 43 | 75 72 72 65 6e 74 47 6f |athTo( C|urrentGo|
|00004700| 61 6c 4c 6f 63 61 74 69 | 6f 6e 20 29 20 29 3b 0d |alLocati|on ) );.|
|00004710| 0a 09 09 09 62 4e 61 76 | 69 67 50 6f 69 6e 74 46 |....bNav|igPointF|
|00004720| 6f 75 6e 64 20 3d 20 28 | 20 46 6f 75 6e 64 4e 61 |ound = (| FoundNa|
|00004730| 76 69 67 50 6f 69 6e 74 | 20 21 3d 20 4e 6f 6e 65 |vigPoint| != None|
|00004740| 20 29 3b 0d 0a 09 09 7d | 0d 0a 0d 0a 2f 2f 78 78 | );....}|....//xx|
|00004750| 78 72 6c 6f 20 68 61 63 | 6b 21 0d 0a 09 09 69 66 |xrlo hac|k!....if|
|00004760| 28 20 62 52 65 73 74 6f | 72 65 46 61 6c 6c 69 6e |( bResto|reFallin|
|00004770| 67 50 68 79 73 69 63 73 | 20 29 0d 0a 09 09 7b 0d |gPhysics| )....{.|
|00004780| 0a 09 09 09 43 6f 6e 74 | 65 78 74 50 61 77 6e 2e |....Cont|extPawn.|
|00004790| 53 65 74 50 68 79 73 69 | 63 73 28 20 50 48 59 53 |SetPhysi|cs( PHYS|
|000047a0| 5f 46 61 6c 6c 69 6e 67 | 20 29 3b 0d 0a 09 09 7d |_Falling| );....}|
|000047b0| 0d 0a 2f 2f 78 78 78 72 | 6c 6f 20 68 61 63 6b 21 |..//xxxr|lo hack!|
|000047c0| 0d 0a 09 7d 0d 0a 09 63 | 6c 61 73 73 27 44 65 62 |...}...c|lass'Deb|
|000047d0| 75 67 27 2e 73 74 61 74 | 69 63 2e 44 65 62 75 67 |ug'.stat|ic.Debug|
|000047e0| 4c 6f 67 28 20 43 6f 6e | 74 65 78 74 4f 62 6a 65 |Log( Con|textObje|
|000047f0| 63 74 2c 20 22 46 69 6e | 64 4e 61 76 69 67 61 74 |ct, "Fin|dNavigat|
|00004800| 69 6f 6e 50 6f 69 6e 74 | 46 72 6f 6d 41 63 74 6f |ionPoint|FromActo|
|00004810| 72 20 72 65 74 75 72 6e | 69 6e 67 20 22 20 24 20 |r return|ing " $ |
|00004820| 62 4e 61 76 69 67 50 6f | 69 6e 74 46 6f 75 6e 64 |bNavigPo|intFound|
|00004830| 2c 20 64 65 66 61 75 6c | 74 2e 44 65 62 75 67 43 |, defaul|t.DebugC|
|00004840| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00004850| 09 72 65 74 75 72 6e 20 | 62 4e 61 76 69 67 50 6f |.return |bNavigPo|
|00004860| 69 6e 74 46 6f 75 6e 64 | 3b 0d 0a 7d 0d 0a 2a 2f |intFound|;..}..*/|
|00004870| 0d 0a 0d 0a 0d 0a 2f 2a | 0d 0a 65 6e 75 6d 20 45 |....../*|..enum E|
|00004880| 47 6f 61 6c 43 6f 6e 74 | 65 78 74 56 69 73 69 62 |GoalCont|extVisib|
|00004890| 69 6c 69 74 79 0d 0a 7b | 0d 0a 09 47 43 56 5f 56 |ility..{|...GCV_V|
|000048a0| 69 73 69 62 69 6c 69 74 | 79 55 6e 6b 6e 6f 77 6e |isibilit|yUnknown|
|000048b0| 2c 0d 0a 09 47 43 56 5f | 56 69 73 69 62 69 6c 69 |,...GCV_|Visibili|
|000048c0| 74 79 56 69 73 69 62 6c | 65 2c 0d 0a 09 47 43 56 |tyVisibl|e,...GCV|
|000048d0| 5f 56 69 73 69 62 69 6c | 69 74 79 4e 6f 74 56 69 |_Visibil|ityNotVi|
|000048e0| 73 69 62 6c 65 0d 0a 7d | 3b 0d 0a 2a 2f 0d 0a 2f |sible..}|;..*/../|
|000048f0| 2f 63 6f 6e 73 74 20 52 | 65 61 63 68 61 62 6c 65 |/const R|eachable|
|00004900| 52 61 6e 64 6f 6d 50 61 | 74 68 4e 6f 4c 69 6e 65 |RandomPa|thNoLine|
|00004910| 4f 66 53 69 67 68 74 52 | 61 64 69 75 73 20 3d 20 |OfSightR|adius = |
|00004920| 31 30 30 30 2e 30 3b 0d | 0a 2f 2f 63 6f 6e 73 74 |1000.0;.|.//const|
|00004930| 20 46 69 6e 64 41 76 6f | 69 64 47 6f 61 6c 50 61 | FindAvo|idGoalPa|
|00004940| 74 68 52 61 64 69 75 73 | 20 3d 20 38 30 30 2e 30 |thRadius| = 800.0|
|00004950| 3b 0d 0a 0d 0a 2f 2a 0d | 0a 2f 2f 54 68 65 20 55 |;..../*.|.//The U|
|00004960| 6e 72 65 61 6c 20 65 6e | 67 69 6e 65 20 70 72 6f |nreal en|gine pro|
|00004970| 76 69 64 65 73 20 6e 69 | 66 74 79 20 66 75 6e 63 |vides ni|fty func|
|00004980| 74 69 6f 6e 73 20 66 6f | 72 20 66 69 6e 64 69 6e |tions fo|r findin|
|00004990| 67 20 74 68 65 20 62 65 | 73 74 20 70 61 74 68 20 |g the be|st path |
|000049a0| 0d 0a 2f 2f 73 6f 6d 65 | 77 68 65 72 65 2c 20 62 |..//some|where, b|
|000049b0| 75 74 20 6e 6f 74 68 69 | 6e 67 20 66 6f 72 20 77 |ut nothi|ng for w|
|000049c0| 68 65 6e 20 77 65 20 77 | 61 6e 74 20 74 6f 20 75 |hen we w|ant to u|
|000049d0| 73 65 20 70 61 74 68 73 | 20 74 6f 20 67 65 74 20 |se paths| to get |
|000049e0| 2a 61 77 61 79 2a 20 66 | 72 6f 6d 0d 0a 2f 2f 73 |*away* f|rom..//s|
|000049f0| 6f 6d 65 74 68 69 6e 67 | 20 69 6e 73 74 65 61 64 |omething| instead|
|00004a00| 20 6f 66 20 74 6f 77 61 | 72 64 73 20 69 74 2e 20 | of towa|rds it. |
|00004a10| 20 53 6f 2c 20 74 68 69 | 73 20 66 75 6e 63 74 69 | So, thi|s functi|
|00004a20| 6f 6e 20 64 6f 65 73 20 | 74 68 61 74 2e 0d 0a 2f |on does |that.../|
|00004a30| 2f 52 45 54 55 52 4e 53 | 3a 20 55 6c 74 69 6d 61 |/RETURNS|: Ultima|
|00004a40| 74 65 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 70 |te desti|nation p|
|00004a50| 61 74 68 2e 20 20 41 63 | 74 6f 72 52 65 61 63 68 |ath. Ac|torReach|
|00004a60| 61 62 6c 65 28 52 65 74 | 56 61 6c 29 20 69 73 20 |able(Ret|Val) is |
|00004a70| 6e 6f 74 0d 0a 2f 2f 6e | 65 63 65 73 73 61 72 69 |not..//n|ecessari|
|00004a80| 6c 79 20 74 72 75 65 20 | 2d 2d 20 70 61 77 6e 20 |ly true |-- pawn |
|00004a90| 6d 69 67 68 74 20 68 61 | 76 65 20 74 6f 20 74 72 |might ha|ve to tr|
|00004aa0| 61 76 65 72 73 65 20 69 | 6e 74 65 72 6d 65 64 69 |averse i|ntermedi|
|00004ab0| 61 74 65 20 70 61 74 68 | 20 6e 6f 64 65 73 20 66 |ate path| nodes f|
|00004ac0| 69 72 73 74 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |irst...f|unction |
|00004ad0| 62 6f 6f 6c 20 46 69 6e | 64 46 69 72 73 74 41 76 |bool Fin|dFirstAv|
|00004ae0| 6f 69 64 47 6f 61 6c 50 | 61 74 68 47 6f 61 6c 28 |oidGoalP|athGoal(|
|00004af0| 20 47 6f 61 6c 41 62 73 | 74 72 61 63 74 65 72 49 | GoalAbs|tracterI|
|00004b00| 6e 74 65 72 66 20 50 61 | 74 68 47 6f 61 6c 20 29 |nterf Pa|thGoal )|
|00004b10| 0d 0a 7b 0d 0a 09 72 65 | 74 75 72 6e 20 46 69 6e |..{...re|turn Fin|
|00004b20| 64 46 69 72 73 74 4e 6f | 4c 69 6e 65 4f 66 53 69 |dFirstNo|LineOfSi|
|00004b30| 67 68 74 50 61 74 68 47 | 6f 61 6c 28 20 50 61 74 |ghtPathG|oal( Pat|
|00004b40| 68 47 6f 61 6c 20 29 3b | 0d 0a 7d 0d 0a 2a 2f 0d |hGoal );|..}..*/.|
|00004b50| 0a 0d 0a 0d 0a 2f 2a 0d | 0a 2f 2f 50 61 77 6e 20 |...../*.|.//Pawn |
|00004b60| 70 72 6f 76 69 64 65 73 | 20 61 20 46 69 6e 64 52 |provides| a FindR|
|00004b70| 61 6e 64 6f 6d 44 65 73 | 74 28 29 2c 20 62 75 74 |andomDes|t(), but|
|00004b80| 20 6d 79 20 74 65 73 74 | 73 20 73 65 65 6d 20 74 | my test|s seem t|
|00004b90| 6f 20 73 68 6f 77 20 74 | 68 61 74 20 69 74 20 70 |o show t|hat it p|
|00004ba0| 69 63 6b 73 0d 0a 2f 2f | 6e 61 76 69 67 61 74 69 |icks..//|navigati|
|00004bb0| 6f 6e 20 70 6f 69 6e 74 | 73 20 77 68 69 63 68 20 |on point|s which |
|00004bc0| 74 68 65 20 70 61 77 6e | 20 63 61 6e 6e 6f 74 20 |the pawn| cannot |
|00004bd0| 72 65 61 63 68 20 64 69 | 72 65 63 74 6c 79 2e 20 |reach di|rectly. |
|00004be0| 20 54 68 69 73 20 66 6e | 20 61 6c 73 6f 0d 0a 2f | This fn| also../|
|00004bf0| 2f 70 69 63 6b 73 20 72 | 61 6e 64 6f 6d 6c 79 2c |/picks r|andomly,|
|00004c00| 20 62 75 74 20 6d 61 6b | 65 73 20 73 75 72 65 20 | but mak|es sure |
|00004c10| 74 68 61 74 20 6f 6e 6c | 79 20 72 65 61 63 68 61 |that onl|y reacha|
|00004c20| 62 6c 65 20 70 6f 69 6e | 74 73 20 61 72 65 20 70 |ble poin|ts are p|
|00004c30| 69 63 6b 65 64 2e 0d 0a | 73 74 61 74 69 63 20 66 |icked...|static f|
|00004c40| 69 6e 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 45 50 |inal fun|ction EP|
|00004c50| 61 74 68 47 6f 61 6c 49 | 6e 66 6f 20 46 69 6e 64 |athGoalI|nfo Find|
|00004c60| 52 61 6e 64 6f 6d 50 61 | 74 68 47 6f 61 6c 28 0d |RandomPa|thGoal(.|
|00004c70| 0a 09 47 6f 61 6c 41 62 | 73 74 72 61 63 74 65 72 |..GoalAb|stracter|
|00004c80| 49 6e 74 65 72 66 20 50 | 61 74 68 47 6f 61 6c 2c |Interf P|athGoal,|
|00004c90| 0d 0a 09 50 61 77 6e 20 | 53 65 61 72 63 68 69 6e |...Pawn |Searchin|
|00004ca0| 67 50 61 77 6e 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |gPawn ).|.{...loc|
|00004cb0| 61 6c 20 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |al Navig|ationPoi|
|00004cc0| 6e 74 20 43 75 72 72 65 | 6e 74 4e 61 76 69 67 50 |nt Curre|ntNavigP|
|00004cd0| 74 2c 20 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |t, PathG|oalNavig|
|00004ce0| 50 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |Pt;...lo|cal floa|
|00004cf0| 74 20 4e 75 6d 4e 61 76 | 69 67 50 74 73 53 65 65 |t NumNav|igPtsSee|
|00004d00| 6e 2c 20 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |n, PathG|oalNavig|
|00004d10| 50 74 44 69 73 74 61 6e | 63 65 2c 20 43 75 72 72 |PtDistan|ce, Curr|
|00004d20| 65 6e 74 50 61 74 68 47 | 6f 61 6c 44 69 73 74 61 |entPathG|oalDista|
|00004d30| 6e 63 65 3b 0d 0a 09 6c | 6f 63 61 6c 20 47 6f 61 |nce;...l|ocal Goa|
|00004d40| 6c 43 6f 6e 74 65 78 74 | 20 50 61 74 68 47 6f 61 |lContext| PathGoa|
|00004d50| 6c 43 6f 6e 74 65 78 74 | 3b 0d 0a 20 20 20 20 6c |lContext|;.. l|
|00004d60| 6f 63 61 6c 20 45 50 61 | 74 68 47 6f 61 6c 49 6e |ocal EPa|thGoalIn|
|00004d70| 66 6f 20 43 75 72 72 65 | 6e 74 50 61 74 68 47 6f |fo Curre|ntPathGo|
|00004d80| 61 6c 4e 61 76 69 67 50 | 74 49 6e 66 6f 2c 20 50 |alNavigP|tInfo, P|
|00004d90| 61 74 68 47 6f 61 6c 4e | 61 76 69 67 50 74 49 6e |athGoalN|avigPtIn|
|00004da0| 66 6f 3b 0d 0a 09 0d 0a | 09 69 66 28 20 50 61 74 |fo;.....|.if( Pat|
|00004db0| 68 47 6f 61 6c 2e 47 65 | 74 47 6f 61 6c 43 6f 6e |hGoal.Ge|tGoalCon|
|00004dc0| 74 65 78 74 28 20 50 61 | 74 68 47 6f 61 6c 43 6f |text( Pa|thGoalCo|
|00004dd0| 6e 74 65 78 74 2c 20 50 | 61 74 68 47 6f 61 6c 43 |ntext, P|athGoalC|
|00004de0| 6f 6e 74 65 78 74 20 29 | 20 29 0d 0a 09 7b 0d 0a |ontext )| )...{..|
|00004df0| 09 7d 0d 0a 0d 0a 09 2f | 2f 4c 6f 67 28 20 53 65 |.}...../|/Log( Se|
|00004e00| 61 72 63 68 69 6e 67 50 | 61 77 6e 20 24 20 22 3a |archingP|awn $ ":|
|00004e10| 3a 46 69 6e 64 52 61 6e | 64 6f 6d 50 61 74 68 47 |:FindRan|domPathG|
|00004e20| 6f 61 6c 22 20 29 3b 0d | 0a 09 66 6f 72 65 61 63 |oal" );.|..foreac|
|00004e30| 68 20 53 65 61 72 63 68 | 69 6e 67 50 61 77 6e 2e |h Search|ingPawn.|
|00004e40| 52 61 64 69 75 73 41 63 | 74 6f 72 73 28 20 63 6c |RadiusAc|tors( cl|
|00004e50| 61 73 73 27 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |ass'Navi|gationPo|
|00004e60| 69 6e 74 27 2c 0d 0a 09 | 09 09 43 75 72 72 65 6e |int',...|..Curren|
|00004e70| 74 4e 61 76 69 67 50 74 | 2c 20 46 69 6e 64 52 65 |tNavigPt|, FindRe|
|00004e80| 61 63 68 61 62 6c 65 52 | 61 6e 64 6f 6d 4e 61 76 |achableR|andomNav|
|00004e90| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 52 61 64 69 |igationP|ointRadi|
|00004ea0| 75 73 20 29 0d 0a 09 7b | 0d 0a 09 09 50 61 74 68 |us )...{|....Path|
|00004eb0| 47 6f 61 6c 2e 41 73 73 | 69 67 6e 4f 62 6a 65 63 |Goal.Ass|ignObjec|
|00004ec0| 74 28 20 43 75 72 72 65 | 6e 74 4e 61 76 69 67 50 |t( Curre|ntNavigP|
|00004ed0| 74 20 29 3b 0d 0a 09 09 | 43 75 72 72 65 6e 74 50 |t );....|CurrentP|
|00004ee0| 61 74 68 47 6f 61 6c 44 | 69 73 74 61 6e 63 65 20 |athGoalD|istance |
|00004ef0| 3d 20 50 61 74 68 47 6f | 61 6c 2e 47 65 74 44 69 |= PathGo|al.GetDi|
|00004f00| 73 74 61 6e 63 65 42 65 | 74 77 65 65 6e 28 20 53 |stanceBe|tween( S|
|00004f10| 65 61 72 63 68 69 6e 67 | 50 61 77 6e 20 29 3b 0d |earching|Pawn );.|
|00004f20| 0a 0d 0a 09 09 2f 2f 4c | 6f 67 28 20 53 65 61 72 |.....//L|og( Sear|
|00004f30| 63 68 69 6e 67 50 61 77 | 6e 20 24 20 22 3a 3a 46 |chingPaw|n $ "::F|
|00004f40| 69 6e 64 52 61 6e 64 6f | 6d 50 61 74 68 47 6f 61 |indRando|mPathGoa|
|00004f50| 6c 20 43 75 72 72 65 6e | 74 4e 61 76 69 67 50 74 |l Curren|tNavigPt|
|00004f60| 3a 20 22 20 24 20 43 75 | 72 72 65 6e 74 4e 61 76 |: " $ Cu|rrentNav|
|00004f70| 69 67 50 74 20 29 3b 0d | 0a 09 09 2f 2f 4c 6f 67 |igPt );.|...//Log|
|00004f80| 28 20 53 65 61 72 63 68 | 69 6e 67 50 61 77 6e 20 |( Search|ingPawn |
|00004f90| 24 20 22 3a 3a 46 69 6e | 64 52 61 6e 64 6f 6d 50 |$ "::Fin|dRandomP|
|00004fa0| 61 74 68 47 6f 61 6c 20 | 43 75 72 72 65 6e 74 4e |athGoal |CurrentN|
|00004fb0| 61 76 69 67 50 74 44 69 | 73 74 61 6e 63 65 3a 20 |avigPtDi|stance: |
|00004fc0| 22 20 24 20 43 75 72 72 | 65 6e 74 4e 61 76 69 67 |" $ Curr|entNavig|
|00004fd0| 50 74 44 69 73 74 61 6e | 63 65 20 29 3b 0d 0a 09 |PtDistan|ce );...|
|00004fe0| 09 0d 0a 09 09 69 66 28 | 20 28 20 43 75 72 72 65 |.....if(| ( Curre|
|00004ff0| 6e 74 50 61 74 68 47 6f | 61 6c 44 69 73 74 61 6e |ntPathGo|alDistan|
|00005000| 63 65 20 3e 20 54 6f 6f | 43 6c 6f 73 65 54 6f 4c |ce > Too|CloseToL|
|00005010| 6f 63 61 74 69 6f 6e 20 | 29 20 26 26 0d 0a 09 09 |ocation |) &&....|
|00005020| 09 09 28 20 43 75 72 72 | 65 6e 74 50 61 74 68 47 |..( Curr|entPathG|
|00005030| 6f 61 6c 44 69 73 74 61 | 6e 63 65 20 3e 20 50 61 |oalDista|nce > Pa|
|00005040| 74 68 47 6f 61 6c 4e 61 | 76 69 67 50 74 44 69 73 |thGoalNa|vigPtDis|
|00005050| 74 61 6e 63 65 20 29 20 | 29 0d 0a 09 09 7b 0d 0a |tance ) |)....{..|
|00005060| 09 09 09 50 61 74 68 47 | 6f 61 6c 43 6f 6e 74 65 |...PathG|oalConte|
|00005070| 78 74 2e 49 73 47 6f 61 | 6c 4e 61 76 69 67 61 62 |xt.IsGoa|lNavigab|
|00005080| 6c 65 28 29 3b 0d 0a 0d | 0a 20 20 20 09 09 20 20 |le();...|. .. |
|00005090| 20 20 69 66 28 20 50 61 | 74 68 47 6f 61 6c 2e 49 | if( Pa|thGoal.I|
|000050a0| 73 52 65 61 63 68 61 62 | 6c 65 42 79 41 63 74 6f |sReachab|leByActo|
|000050b0| 72 28 20 53 65 61 72 63 | 68 69 6e 67 50 61 77 6e |r( Searc|hingPawn|
|000050c0| 20 29 20 29 0d 0a 20 20 | 20 09 09 20 20 20 20 7b | ) ).. | .. {|
|000050d0| 0d 0a 09 20 20 20 09 09 | 20 20 20 09 43 75 72 72 |... ..| .Curr|
|000050e0| 65 6e 74 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |entPathG|oalNavig|
|000050f0| 50 74 49 6e 66 6f 20 3d | 20 50 47 49 5f 52 65 61 |PtInfo =| PGI_Rea|
|00005100| 63 68 61 62 6c 65 3b 0d | 0a 20 20 20 09 09 20 20 |chable;.|. .. |
|00005110| 20 20 7d 0d 0a 20 20 20 | 09 09 20 20 20 20 65 6c | }.. |.. el|
|00005120| 73 65 20 69 66 28 20 50 | 61 74 68 47 6f 61 6c 2e |se if( P|athGoal.|
|00005130| 49 73 50 61 74 68 61 62 | 6c 65 42 79 41 63 74 6f |IsPathab|leByActo|
|00005140| 72 28 20 53 65 61 72 63 | 68 69 6e 67 50 61 77 6e |r( Searc|hingPawn|
|00005150| 20 29 20 29 0d 0a 20 20 | 20 09 09 20 20 20 20 7b | ) ).. | .. {|
|00005160| 0d 0a 09 20 20 20 09 09 | 20 20 20 09 43 75 72 72 |... ..| .Curr|
|00005170| 65 6e 74 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |entPathG|oalNavig|
|00005180| 50 74 49 6e 66 6f 20 3d | 20 50 47 49 5f 50 61 74 |PtInfo =| PGI_Pat|
|00005190| 68 61 62 6c 65 3b 0d 0a | 20 20 20 09 09 20 20 20 |hable;..| .. |
|000051a0| 20 7d 0d 0a 20 20 20 09 | 09 20 20 20 20 65 6c 73 | }.. .|. els|
|000051b0| 65 0d 0a 20 20 20 09 09 | 20 20 20 20 7b 0d 0a 09 |e.. ..| {...|
|000051c0| 20 20 20 09 09 20 20 20 | 09 43 75 72 72 65 6e 74 | .. |.Current|
|000051d0| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 49 |PathGoal|NavigPtI|
|000051e0| 6e 66 6f 20 3d 20 50 47 | 49 5f 49 6e 76 61 6c 69 |nfo = PG|I_Invali|
|000051f0| 64 3b 0d 0a 20 20 20 09 | 09 20 20 20 20 7d 0d 0a |d;.. .|. }..|
|00005200| 20 20 20 09 09 20 20 20 | 20 0d 0a 09 20 20 20 09 | .. | ... .|
|00005210| 09 69 66 28 20 50 61 74 | 68 47 6f 61 6c 43 6f 6e |.if( Pat|hGoalCon|
|00005220| 74 65 78 74 2e 47 65 74 | 52 65 61 63 68 61 62 6c |text.Get|Reachabl|
|00005230| 65 49 6e 66 6f 28 29 20 | 7c 7c 20 50 61 74 68 47 |eInfo() ||| PathG|
|00005240| 6f 61 6c 43 6f 6e 74 65 | 78 74 2e 47 65 74 50 61 |oalConte|xt.GetPa|
|00005250| 74 68 61 62 6c 65 49 6e | 66 6f 28 29 20 43 75 72 |thableIn|fo() Cur|
|00005260| 72 65 6e 74 50 61 74 68 | 47 6f 61 6c 4e 61 76 69 |rentPath|GoalNavi|
|00005270| 67 50 74 49 6e 66 6f 20 | 21 3d 20 50 47 49 5f 49 |gPtInfo |!= PGI_I|
|00005280| 6e 76 61 6c 69 64 20 29 | 0d 0a 09 20 20 20 09 09 |nvalid )|... ..|
|00005290| 7b 0d 0a 09 20 20 20 09 | 20 20 20 20 09 2f 2f 74 |{... .| .//t|
|000052a0| 68 65 20 70 61 74 68 20 | 67 6f 61 6c 20 69 73 20 |he path |goal is |
|000052b0| 6e 6f 74 20 74 6f 6f 20 | 63 6c 6f 73 65 20 74 6f |not too |close to|
|000052c0| 20 74 68 65 20 73 65 61 | 72 63 68 69 6e 67 20 70 | the sea|rching p|
|000052d0| 61 77 6e 0d 0a 09 09 20 | 20 20 20 09 2f 2f 74 68 |awn.... | .//th|
|000052e0| 65 20 63 75 72 72 65 6e | 74 20 70 61 74 68 20 67 |e curren|t path g|
|000052f0| 6f 61 6c 20 69 73 20 66 | 75 72 74 68 65 72 20 61 |oal is f|urther a|
|00005300| 77 61 79 20 74 68 61 6e | 20 74 68 65 20 6c 61 73 |way than| the las|
|00005310| 74 20 70 61 74 68 20 67 | 6f 61 6c 20 66 6f 75 6e |t path g|oal foun|
|00005320| 64 0d 0a 20 20 20 20 09 | 09 09 2f 2f 74 68 65 20 |d.. .|..//the |
|00005330| 70 61 74 68 20 67 6f 61 | 6c 20 69 73 20 72 65 63 |path goa|l is rec|
|00005340| 68 61 62 6c 65 20 6f 72 | 20 70 61 74 68 61 62 6c |hable or| pathabl|
|00005350| 65 20 62 79 20 74 68 65 | 20 73 65 61 72 63 68 69 |e by the| searchi|
|00005360| 6e 67 20 70 61 77 6e 0d | 0a 09 09 09 09 4e 75 6d |ng pawn.|.....Num|
|00005370| 4e 61 76 69 67 50 74 73 | 53 65 65 6e 20 2b 3d 20 |NavigPts|Seen += |
|00005380| 31 2e 30 3b 0d 0a 09 09 | 09 09 69 66 28 20 46 52 |1.0;....|..if( FR|
|00005390| 61 6e 64 28 29 20 3c 20 | 31 2e 30 20 2f 20 4e 75 |and() < |1.0 / Nu|
|000053a0| 6d 4e 61 76 69 67 50 74 | 73 53 65 65 6e 20 29 0d |mNavigPt|sSeen ).|
|000053b0| 0a 09 09 09 09 7b 0d 0a | 09 09 09 09 09 2f 2f 63 |.....{..|.....//c|
|000053c0| 68 6f 6f 73 65 20 77 69 | 74 68 20 65 71 75 61 6c |hoose wi|th equal|
|000053d0| 20 70 72 6f 62 61 62 69 | 6c 69 74 79 0d 0a 09 09 | probabi|lity....|
|000053e0| 09 09 09 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |...PathG|oalNavig|
|000053f0| 50 74 49 6e 66 6f 20 3d | 20 43 75 72 72 65 6e 74 |PtInfo =| Current|
|00005400| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 49 |PathGoal|NavigPtI|
|00005410| 6e 66 6f 3b 0d 0a 09 09 | 09 09 09 50 61 74 68 47 |nfo;....|...PathG|
|00005420| 6f 61 6c 4e 61 76 69 67 | 50 74 20 3d 20 43 75 72 |oalNavig|Pt = Cur|
|00005430| 72 65 6e 74 4e 61 76 69 | 67 50 74 3b 0d 0a 09 09 |rentNavi|gPt;....|
|00005440| 09 09 09 50 61 74 68 47 | 6f 61 6c 4e 61 76 69 67 |...PathG|oalNavig|
|00005450| 50 74 44 69 73 74 61 6e | 63 65 20 3d 20 43 75 72 |PtDistan|ce = Cur|
|00005460| 72 65 6e 74 50 61 74 68 | 47 6f 61 6c 44 69 73 74 |rentPath|GoalDist|
|00005470| 61 6e 63 65 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |ance;...|...}....|
|00005480| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 0d 0a |.}....}.|..}.....|
|00005490| 20 20 20 09 69 66 28 20 | 50 61 74 68 47 6f 61 6c | .if( |PathGoal|
|000054a0| 4e 61 76 69 67 50 74 49 | 6e 66 6f 20 21 3d 20 50 |NavigPtI|nfo != P|
|000054b0| 47 49 5f 49 6e 76 61 6c | 69 64 20 29 0d 0a 20 20 |GI_Inval|id ).. |
|000054c0| 20 09 7b 0d 0a 09 09 2f | 2f 4c 6f 67 28 20 53 65 | .{..../|/Log( Se|
|000054d0| 61 72 63 68 69 6e 67 50 | 61 77 6e 20 24 20 22 3a |archingP|awn $ ":|
|000054e0| 3a 46 69 6e 64 52 61 6e | 64 6f 6d 50 61 74 68 47 |:FindRan|domPathG|
|000054f0| 6f 61 6c 20 50 61 74 68 | 47 6f 61 6c 4e 61 76 69 |oal Path|GoalNavi|
|00005500| 67 50 74 3a 20 22 20 24 | 20 50 61 74 68 47 6f 61 |gPt: " $| PathGoa|
|00005510| 6c 4e 61 76 69 67 50 74 | 20 29 3b 0d 0a 09 09 2f |lNavigPt| );..../|
|00005520| 2f 4c 6f 67 28 20 53 65 | 61 72 63 68 69 6e 67 50 |/Log( Se|archingP|
|00005530| 61 77 6e 20 24 20 22 3a | 3a 46 69 6e 64 52 61 6e |awn $ ":|:FindRan|
|00005540| 64 6f 6d 50 61 74 68 47 | 6f 61 6c 20 50 61 74 68 |domPathG|oal Path|
|00005550| 47 6f 61 6c 4e 61 76 69 | 67 50 74 2e 47 72 6f 75 |GoalNavi|gPt.Grou|
|00005560| 70 3a 20 22 20 24 20 50 | 61 74 68 47 6f 61 6c 4e |p: " $ P|athGoalN|
|00005570| 61 76 69 67 50 74 2e 47 | 72 6f 75 70 20 29 3b 0d |avigPt.G|roup );.|
|00005580| 0a 09 09 2f 2f 4c 6f 67 | 28 20 53 65 61 72 63 68 |...//Log|( Search|
|00005590| 69 6e 67 50 61 77 6e 20 | 24 20 22 3a 3a 46 69 6e |ingPawn |$ "::Fin|
|000055a0| 64 52 61 6e 64 6f 6d 50 | 61 74 68 47 6f 61 6c 20 |dRandomP|athGoal |
|000055b0| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 44 |PathGoal|NavigPtD|
|000055c0| 69 73 74 61 6e 63 65 3a | 20 22 20 24 20 50 61 74 |istance:| " $ Pat|
|000055d0| 68 47 6f 61 6c 4e 61 76 | 69 67 50 74 44 69 73 74 |hGoalNav|igPtDist|
|000055e0| 61 6e 63 65 20 29 3b 0d | 0a 09 09 2f 2f 4c 6f 67 |ance );.|...//Log|
|000055f0| 28 20 53 65 61 72 63 68 | 69 6e 67 50 61 77 6e 20 |( Search|ingPawn |
|00005600| 24 20 22 3a 3a 46 69 6e | 64 52 61 6e 64 6f 6d 50 |$ "::Fin|dRandomP|
|00005610| 61 74 68 47 6f 61 6c 20 | 41 63 74 6f 72 52 65 61 |athGoal |ActorRea|
|00005620| 63 68 61 62 6c 65 28 29 | 3a 20 22 20 24 20 53 65 |chable()|: " $ Se|
|00005630| 61 72 63 68 69 6e 67 50 | 61 77 6e 2e 41 63 74 6f |archingP|awn.Acto|
|00005640| 72 52 65 61 63 68 61 62 | 6c 65 28 20 50 61 74 68 |rReachab|le( Path|
|00005650| 47 6f 61 6c 4e 61 76 69 | 67 50 74 20 29 20 29 3b |GoalNavi|gPt ) );|
|00005660| 0d 0a 20 20 20 09 09 50 | 61 74 68 47 6f 61 6c 2e |.. ..P|athGoal.|
|00005670| 41 73 73 69 67 6e 4f 62 | 6a 65 63 74 28 20 50 61 |AssignOb|ject( Pa|
|00005680| 74 68 47 6f 61 6c 4e 61 | 76 69 67 50 74 20 29 3b |thGoalNa|vigPt );|
|00005690| 0d 0a 20 20 20 09 7d 0d | 0a 20 20 20 09 0d 0a 09 |.. .}.|. ....|
|000056a0| 2f 2f 4c 6f 67 28 20 53 | 65 61 72 63 68 69 6e 67 |//Log( S|earching|
|000056b0| 50 61 77 6e 20 24 20 22 | 3a 3a 46 69 6e 64 52 61 |Pawn $ "|::FindRa|
|000056c0| 6e 64 6f 6d 50 61 74 68 | 47 6f 61 6c 20 72 65 74 |ndomPath|Goal ret|
|000056d0| 75 72 6e 69 6e 67 20 22 | 20 24 20 50 61 74 68 47 |urning "| $ PathG|
|000056e0| 6f 61 6c 4e 61 76 69 67 | 50 74 49 6e 66 6f 20 20 |oalNavig|PtInfo |
|000056f0| 29 3b 0d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 50 |);.. |return P|
|00005700| 61 74 68 47 6f 61 6c 4e | 61 76 69 67 50 74 49 6e |athGoalN|avigPtIn|
|00005710| 66 6f 3b 0d 0a 7d 0d 0a | 0d 0a 0d 0a 0d 0a 73 74 |fo;..}..|......st|
|00005720| 61 74 69 63 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |atic fun|ction bo|
|00005730| 6f 6c 20 45 6e 73 75 72 | 65 50 61 74 68 47 6f 61 |ol Ensur|ePathGoa|
|00005740| 6c 52 65 61 63 68 61 62 | 6c 65 28 20 47 6f 61 6c |lReachab|le( Goal|
|00005750| 41 62 73 74 72 61 63 74 | 65 72 49 6e 74 65 72 66 |Abstract|erInterf|
|00005760| 20 50 61 74 68 47 6f 61 | 6c 2c 0d 0a 09 09 45 50 | PathGoa|l,....EP|
|00005770| 61 74 68 47 6f 61 6c 49 | 6e 66 6f 20 50 61 74 68 |athGoalI|nfo Path|
|00005780| 47 6f 61 6c 49 6e 66 6f | 2c 0d 0a 09 09 50 61 77 |GoalInfo|,....Paw|
|00005790| 6e 20 53 65 61 72 63 68 | 69 6e 67 50 61 77 6e 20 |n Search|ingPawn |
|000057a0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|000057b0| 62 6f 6f 6c 20 62 50 61 | 74 68 47 6f 61 6c 52 65 |bool bPa|thGoalRe|
|000057c0| 61 63 68 61 62 6c 65 3b | 0d 0a 0d 0a 09 69 66 28 |achable;|.....if(|
|000057d0| 20 50 61 74 68 47 6f 61 | 6c 49 6e 66 6f 20 21 3d | PathGoa|lInfo !=|
|000057e0| 20 50 47 49 5f 49 6e 76 | 61 6c 69 64 20 29 0d 0a | PGI_Inv|alid )..|
|000057f0| 09 7b 0d 0a 09 09 69 66 | 28 20 50 61 74 68 47 6f |.{....if|( PathGo|
|00005800| 61 6c 49 6e 66 6f 20 3d | 3d 20 50 47 49 5f 50 61 |alInfo =|= PGI_Pa|
|00005810| 74 68 61 62 6c 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |thable )|....{...|
|00005820| 09 09 62 50 61 74 68 47 | 6f 61 6c 52 65 61 63 68 |..bPathG|oalReach|
|00005830| 61 62 6c 65 20 3d 20 50 | 61 74 68 47 6f 61 6c 2e |able = P|athGoal.|
|00005840| 46 69 6e 64 4e 61 76 69 | 67 61 74 69 6f 6e 47 6f |FindNavi|gationGo|
|00005850| 61 6c 46 72 6f 6d 41 63 | 74 6f 72 28 20 50 61 74 |alFromAc|tor( Pat|
|00005860| 68 47 6f 61 6c 2c 20 53 | 65 61 72 63 68 69 6e 67 |hGoal, S|earching|
|00005870| 50 61 77 6e 20 29 3b 0d | 0a 09 09 7d 0d 0a 09 09 |Pawn );.|...}....|
|00005880| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 62 50 |else....|{.....bP|
|00005890| 61 74 68 47 6f 61 6c 52 | 65 61 63 68 61 62 6c 65 |athGoalR|eachable|
|000058a0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 7d 0d 0a 09 | = true;|....}...|
|000058b0| 7d 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 62 50 61 |}.....re|turn bPa|
|000058c0| 74 68 47 6f 61 6c 52 65 | 61 63 68 61 62 6c 65 3b |thGoalRe|achable;|
|000058d0| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 0d 0a 2f 2f 66 69 6e |..}.....|...//fin|
|000058e0| 64 20 61 20 72 65 61 63 | 68 61 62 6c 65 20 72 61 |d a reac|hable ra|
|000058f0| 6e 64 6f 6d 20 70 61 74 | 68 20 6e 6f 64 65 20 6e |ndom pat|h node n|
|00005900| 6f 74 20 69 6e 20 74 68 | 65 20 6c 69 6e 65 20 6f |ot in th|e line o|
|00005910| 66 20 73 69 67 68 74 20 | 6f 66 20 74 68 65 20 67 |f sight |of the g|
|00005920| 6f 61 6c 0d 0a 73 74 61 | 74 69 63 20 66 75 6e 63 |oal..sta|tic func|
|00005930| 74 69 6f 6e 20 45 50 61 | 74 68 47 6f 61 6c 49 6e |tion EPa|thGoalIn|
|00005940| 66 6f 20 46 69 6e 64 52 | 61 6e 64 6f 6d 4e 6f 4c |fo FindR|andomNoL|
|00005950| 69 6e 65 4f 66 53 69 67 | 68 74 50 61 74 68 47 6f |ineOfSig|htPathGo|
|00005960| 61 6c 28 0d 0a 09 09 47 | 6f 61 6c 41 62 73 74 72 |al(....G|oalAbstr|
|00005970| 61 63 74 65 72 49 6e 74 | 65 72 66 20 50 61 74 68 |acterInt|erf Path|
|00005980| 47 6f 61 6c 2c 0d 0a 09 | 09 50 61 77 6e 20 53 65 |Goal,...|.Pawn Se|
|00005990| 61 72 63 68 69 6e 67 50 | 61 77 6e 2c 0d 0a 09 09 |archingP|awn,....|
|000059a0| 47 6f 61 6c 41 62 73 74 | 72 61 63 74 65 72 49 6e |GoalAbst|racterIn|
|000059b0| 74 65 72 66 20 55 6c 74 | 69 6d 61 74 65 47 6f 61 |terf Ult|imateGoa|
|000059c0| 6c 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 4e |l )..{..|.local N|
|000059d0| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 20 43 |avigatio|nPoint C|
|000059e0| 75 72 72 65 6e 74 4e 61 | 76 69 67 50 74 2c 20 50 |urrentNa|vigPt, P|
|000059f0| 61 74 68 47 6f 61 6c 64 | 4e 61 76 69 67 50 74 3b |athGoald|NavigPt;|
|00005a00| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 66 6c 6f 61 |.. lo|cal floa|
|00005a10| 74 20 4e 75 6d 4e 61 76 | 69 67 50 74 73 53 65 65 |t NumNav|igPtsSee|
|00005a20| 6e 2c 20 43 75 72 72 65 | 6e 74 47 6f 61 6c 54 6f |n, Curre|ntGoalTo|
|00005a30| 41 63 74 6f 72 44 69 73 | 74 3b 0d 0a 20 20 20 20 |ActorDis|t;.. |
|00005a40| 6c 6f 63 61 6c 20 45 50 | 61 74 68 47 6f 61 6c 49 |local EP|athGoalI|
|00005a50| 6e 66 6f 20 43 75 72 72 | 65 6e 74 50 61 74 68 47 |nfo Curr|entPathG|
|00005a60| 6f 61 6c 4e 61 76 69 67 | 50 74 49 6e 66 6f 2c 20 |oalNavig|PtInfo, |
|00005a70| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 49 |PathGoal|NavigPtI|
|00005a80| 6e 66 6f 3b 0d 0a 09 0d | 0a 09 69 66 28 20 55 6c |nfo;....|..if( Ul|
|00005a90| 74 69 6d 61 74 65 47 6f | 61 6c 2e 49 73 56 61 6c |timateGo|al.IsVal|
|00005aa0| 69 64 28 29 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |id() )..| {.. |
|00005ab0| 20 20 20 20 20 20 09 43 | 75 72 72 65 6e 74 47 6f | .C|urrentGo|
|00005ac0| 61 6c 54 6f 41 63 74 6f | 72 44 69 73 74 20 3d 20 |alToActo|rDist = |
|00005ad0| 55 6c 74 69 6d 61 74 65 | 47 6f 61 6c 2e 47 65 74 |Ultimate|Goal.Get|
|00005ae0| 44 69 73 74 61 6e 63 65 | 42 65 74 77 65 65 6e 28 |Distance|Between(|
|00005af0| 20 53 65 61 72 63 68 69 | 6e 67 50 61 77 6e 20 29 | Searchi|ngPawn )|
|00005b00| 3b 0d 0a 20 20 20 20 09 | 66 6f 72 65 61 63 68 20 |;.. .|foreach |
|00005b10| 53 65 61 72 63 68 69 6e | 67 50 61 77 6e 2e 52 61 |Searchin|gPawn.Ra|
|00005b20| 64 69 75 73 41 63 74 6f | 72 73 28 20 63 6c 61 73 |diusActo|rs( clas|
|00005b30| 73 27 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |s'Naviga|tionPoin|
|00005b40| 74 27 2c 0d 0a 20 20 20 | 20 09 09 09 43 75 72 72 |t',.. | ...Curr|
|00005b50| 65 6e 74 4e 61 76 69 67 | 50 74 2c 20 52 65 61 63 |entNavig|Pt, Reac|
|00005b60| 68 61 62 6c 65 52 61 6e | 64 6f 6d 50 61 74 68 4e |hableRan|domPathN|
|00005b70| 6f 4c 69 6e 65 4f 66 53 | 69 67 68 74 52 61 64 69 |oLineOfS|ightRadi|
|00005b80| 75 73 20 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |us ).. | {.|
|00005b90| 0a 20 20 20 20 20 20 20 | 20 09 50 61 74 68 47 6f |. | .PathGo|
|00005ba0| 61 6c 2e 41 73 73 69 67 | 6e 4f 62 6a 65 63 74 28 |al.Assig|nObject(|
|00005bb0| 20 43 75 72 72 65 6e 74 | 4e 61 76 69 67 50 74 20 | Current|NavigPt |
|00005bc0| 29 3b 0d 0a 20 20 20 20 | 09 09 69 66 28 20 28 20 |);.. |..if( ( |
|00005bd0| 50 61 74 68 47 6f 61 6c | 2e 47 65 74 44 69 73 74 |PathGoal|.GetDist|
|00005be0| 61 6e 63 65 42 65 74 77 | 65 65 6e 28 20 53 65 61 |anceBetw|een( Sea|
|00005bf0| 72 63 68 69 6e 67 50 61 | 77 6e 20 29 20 3e 20 54 |rchingPa|wn ) > T|
|00005c00| 6f 6f 43 6c 6f 73 65 54 | 6f 4c 6f 63 61 74 69 6f |ooCloseT|oLocatio|
|00005c10| 6e 20 29 20 26 26 0d 0a | 20 20 20 20 09 09 09 09 |n ) &&..| ....|
|00005c20| 21 50 61 74 68 47 6f 61 | 6c 2e 49 73 56 69 73 69 |!PathGoa|l.IsVisi|
|00005c30| 62 6c 65 42 79 47 6f 61 | 6c 28 20 55 6c 74 69 6d |bleByGoa|l( Ultim|
|00005c40| 61 74 65 47 6f 61 6c 20 | 29 20 29 0d 0a 20 20 20 |ateGoal |) ).. |
|00005c50| 20 09 20 20 20 20 7b 0d | 0a 20 20 20 09 09 20 20 | . {.|. .. |
|00005c60| 20 20 09 69 66 28 20 50 | 61 74 68 47 6f 61 6c 2e | .if( P|athGoal.|
|00005c70| 49 73 52 65 61 63 68 61 | 62 6c 65 42 79 41 63 74 |IsReacha|bleByAct|
|00005c80| 6f 72 28 20 53 65 61 72 | 63 68 69 6e 67 50 61 77 |or( Sear|chingPaw|
|00005c90| 6e 20 29 20 29 0d 0a 20 | 20 20 09 09 20 20 20 20 |n ) ).. | .. |
|00005ca0| 09 7b 0d 0a 09 20 20 20 | 09 09 20 20 20 20 09 43 |.{... |.. .C|
|00005cb0| 75 72 72 65 6e 74 50 61 | 74 68 47 6f 61 6c 4e 61 |urrentPa|thGoalNa|
|00005cc0| 76 69 67 50 74 49 6e 66 | 6f 20 3d 20 50 47 49 5f |vigPtInf|o = PGI_|
|00005cd0| 52 65 61 63 68 61 62 6c | 65 3b 0d 0a 20 20 20 09 |Reachabl|e;.. .|
|00005ce0| 09 20 20 20 20 09 7d 0d | 0a 20 20 20 09 09 20 20 |. .}.|. .. |
|00005cf0| 20 20 09 65 6c 73 65 20 | 69 66 28 20 50 61 74 68 | .else |if( Path|
|00005d00| 47 6f 61 6c 2e 49 73 50 | 61 74 68 61 62 6c 65 42 |Goal.IsP|athableB|
|00005d10| 79 41 63 74 6f 72 28 20 | 53 65 61 72 63 68 69 6e |yActor( |Searchin|
|00005d20| 67 50 61 77 6e 20 29 20 | 29 0d 0a 20 20 20 09 09 |gPawn ) |).. ..|
|00005d30| 20 20 20 20 09 7b 0d 0a | 09 20 20 20 09 09 20 20 | .{..|. .. |
|00005d40| 20 20 09 43 75 72 72 65 | 6e 74 50 61 74 68 47 6f | .Curre|ntPathGo|
|00005d50| 61 6c 4e 61 76 69 67 50 | 74 49 6e 66 6f 20 3d 20 |alNavigP|tInfo = |
|00005d60| 50 47 49 5f 50 61 74 68 | 61 62 6c 65 3b 0d 0a 20 |PGI_Path|able;.. |
|00005d70| 20 20 09 09 20 20 20 20 | 09 7d 0d 0a 20 20 20 09 | .. |.}.. .|
|00005d80| 09 20 20 20 20 09 65 6c | 73 65 0d 0a 20 20 20 09 |. .el|se.. .|
|00005d90| 09 20 20 20 20 09 7b 0d | 0a 09 20 20 20 09 09 20 |. .{.|.. .. |
|00005da0| 20 20 20 09 43 75 72 72 | 65 6e 74 50 61 74 68 47 | .Curr|entPathG|
|00005db0| 6f 61 6c 4e 61 76 69 67 | 50 74 49 6e 66 6f 20 3d |oalNavig|PtInfo =|
|00005dc0| 20 50 47 49 5f 49 6e 76 | 61 6c 69 64 3b 0d 0a 20 | PGI_Inv|alid;.. |
|00005dd0| 20 20 09 09 20 20 20 20 | 09 7d 0d 0a 20 20 20 09 | .. |.}.. .|
|00005de0| 09 20 20 20 20 0d 0a 09 | 20 20 20 09 09 09 69 66 |. ...| ...if|
|00005df0| 28 20 43 75 72 72 65 6e | 74 50 61 74 68 47 6f 61 |( Curren|tPathGoa|
|00005e00| 6c 4e 61 76 69 67 50 74 | 49 6e 66 6f 20 21 3d 20 |lNavigPt|Info != |
|00005e10| 50 47 49 5f 49 6e 76 61 | 6c 69 64 20 29 0d 0a 09 |PGI_Inva|lid )...|
|00005e20| 20 20 20 09 09 09 7b 0d | 0a 09 20 20 20 20 09 20 | ...{.|.. . |
|00005e30| 20 20 20 09 2f 2f 74 68 | 65 20 70 61 74 68 20 67 | .//th|e path g|
|00005e40| 6f 61 6c 20 69 73 20 6e | 6f 74 20 74 6f 6f 20 63 |oal is n|ot too c|
|00005e50| 6c 6f 73 65 20 74 6f 20 | 74 68 65 20 73 65 61 72 |lose to |the sear|
|00005e60| 63 68 69 6e 67 20 70 61 | 77 6e 0d 0a 20 20 20 09 |ching pa|wn.. .|
|00005e70| 09 09 20 20 20 20 09 2f | 2f 74 68 65 20 70 61 74 |.. ./|/the pat|
|00005e80| 68 20 67 6f 61 6c 20 69 | 73 20 6e 6f 74 20 69 6e |h goal i|s not in|
|00005e90| 20 74 68 65 20 6c 69 6e | 65 20 6f 66 20 73 69 67 | the lin|e of sig|
|00005ea0| 68 74 20 6f 66 20 74 68 | 65 20 67 6f 61 6c 0d 0a |ht of th|e goal..|
|00005eb0| 20 20 20 09 09 09 20 20 | 20 20 09 2f 2f 74 68 65 | ... | .//the|
|00005ec0| 20 70 61 74 68 20 67 6f | 61 6c 20 69 73 20 72 65 | path go|al is re|
|00005ed0| 63 68 61 62 6c 65 20 6f | 72 20 70 61 74 68 61 62 |chable o|r pathab|
|00005ee0| 6c 65 20 62 79 20 74 68 | 65 20 73 65 61 72 63 68 |le by th|e search|
|00005ef0| 69 6e 67 20 70 61 77 6e | 0d 0a 20 20 20 20 20 20 |ing pawn|.. |
|00005f00| 20 20 20 20 20 09 09 09 | 69 66 28 20 55 6c 74 69 | ...|if( Ulti|
|00005f10| 6d 61 74 65 47 6f 61 6c | 2e 47 65 74 44 69 73 74 |mateGoal|.GetDist|
|00005f20| 61 6e 63 65 42 65 74 77 | 65 65 6e 28 20 50 61 74 |anceBetw|een( Pat|
|00005f30| 68 47 6f 61 6c 20 29 20 | 3e 20 43 75 72 72 65 6e |hGoal ) |> Curren|
|00005f40| 74 47 6f 61 6c 54 6f 41 | 63 74 6f 72 44 69 73 74 |tGoalToA|ctorDist|
|00005f50| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 09 | ).. | .|
|00005f60| 09 09 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..{.. | |
|00005f70| 20 20 20 20 20 09 09 4e | 75 6d 4e 61 76 69 67 50 | ..N|umNavigP|
|00005f80| 74 73 53 65 65 6e 20 2b | 3d 20 31 2e 30 3b 0d 0a |tsSeen +|= 1.0;..|
|00005f90| 09 20 20 20 09 20 20 20 | 20 20 20 20 20 20 20 20 |. . | |
|00005fa0| 20 20 09 69 66 28 20 46 | 52 61 6e 64 28 29 20 3c | .if( F|Rand() <|
|00005fb0| 20 31 2e 30 20 2f 20 4e | 75 6d 4e 61 76 69 67 50 | 1.0 / N|umNavigP|
|00005fc0| 74 73 53 65 65 6e 20 29 | 0d 0a 20 20 20 20 09 20 |tsSeen )|.. . |
|00005fd0| 20 20 09 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | . | {|
|00005fe0| 0d 0a 20 20 20 20 20 20 | 20 20 09 20 20 20 09 20 |.. | . . |
|00005ff0| 20 20 20 20 20 20 20 09 | 2f 2f 63 68 6f 6f 73 65 | .|//choose|
|00006000| 20 77 69 74 68 20 65 71 | 75 61 6c 20 70 72 6f 62 | with eq|ual prob|
|00006010| 61 62 69 6c 69 74 79 0d | 0a 09 09 09 09 09 09 09 |ability.|........|
|00006020| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 49 |PathGoal|NavigPtI|
|00006030| 6e 66 6f 20 3d 20 43 75 | 72 72 65 6e 74 50 61 74 |nfo = Cu|rrentPat|
|00006040| 68 47 6f 61 6c 4e 61 76 | 69 67 50 74 49 6e 66 6f |hGoalNav|igPtInfo|
|00006050| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|00006060| 20 20 20 09 20 20 20 09 | 09 50 61 74 68 47 6f 61 | . .|.PathGoa|
|00006070| 6c 64 4e 61 76 69 67 50 | 74 20 3d 20 43 75 72 72 |ldNavigP|t = Curr|
|00006080| 65 6e 74 4e 61 76 69 67 | 50 74 3b 0d 0a 20 20 20 |entNavig|Pt;.. |
|00006090| 20 20 20 20 20 09 20 20 | 20 20 09 09 7d 0d 0a 09 | . | ..}...|
|000060a0| 20 20 20 09 20 20 20 20 | 20 20 20 20 09 7d 0d 0a | . | .}..|
|000060b0| 20 20 20 09 20 20 20 20 | 20 20 20 20 09 7d 0d 0a | . | .}..|
|000060c0| 20 20 20 20 20 20 20 20 | 09 7d 0d 0a 09 09 7d 0d | |.}....}.|
|000060d0| 0a 09 7d 0d 0a 09 0d 0a | 20 20 20 09 69 66 28 20 |..}.....| .if( |
|000060e0| 50 61 74 68 47 6f 61 6c | 4e 61 76 69 67 50 74 49 |PathGoal|NavigPtI|
|000060f0| 6e 66 6f 20 21 3d 20 50 | 47 49 5f 49 6e 76 61 6c |nfo != P|GI_Inval|
|00006100| 69 64 20 29 0d 0a 20 20 | 20 09 7b 0d 0a 20 20 20 |id ).. | .{.. |
|00006110| 09 09 50 61 74 68 47 6f | 61 6c 2e 41 73 73 69 67 |..PathGo|al.Assig|
|00006120| 6e 4f 62 6a 65 63 74 28 | 20 50 61 74 68 47 6f 61 |nObject(| PathGoa|
|00006130| 6c 64 4e 61 76 69 67 50 | 74 20 29 3b 0d 0a 20 20 |ldNavigP|t );.. |
|00006140| 20 09 7d 0d 0a 20 20 20 | 09 0d 0a 09 2f 2f 4c 6f | .}.. |....//Lo|
|00006150| 67 28 20 53 65 61 72 63 | 68 69 6e 67 50 61 77 6e |g( Searc|hingPawn|
|00006160| 20 24 20 22 3a 3a 46 69 | 6e 64 52 61 6e 64 6f 6d | $ "::Fi|ndRandom|
|00006170| 4e 6f 4c 69 6e 65 4f 66 | 53 69 67 68 74 50 61 74 |NoLineOf|SightPat|
|00006180| 68 47 6f 61 6c 20 72 65 | 74 75 72 6e 69 6e 67 20 |hGoal re|turning |
|00006190| 22 20 24 20 50 61 74 68 | 47 6f 61 6c 4e 61 76 69 |" $ Path|GoalNavi|
|000061a0| 67 50 74 49 6e 66 6f 20 | 29 3b 0d 0a 20 20 20 20 |gPtInfo |);.. |
|000061b0| 72 65 74 75 72 6e 20 50 | 61 74 68 47 6f 61 6c 4e |return P|athGoalN|
|000061c0| 61 76 69 67 50 74 49 6e | 66 6f 3b 0d 0a 7d 0d 0a |avigPtIn|fo;..}..|
|000061d0| 0d 0a 0d 0a 0d 0a 2f 2f | 54 68 65 20 55 6e 72 65 |......//|The Unre|
|000061e0| 61 6c 20 65 6e 67 69 6e | 65 20 70 72 6f 76 69 64 |al engin|e provid|
|000061f0| 65 73 20 6e 69 66 74 79 | 20 66 75 6e 63 74 69 6f |es nifty| functio|
|00006200| 6e 73 20 66 6f 72 20 66 | 69 6e 64 69 6e 67 20 74 |ns for f|inding t|
|00006210| 68 65 20 62 65 73 74 20 | 70 61 74 68 20 0d 0a 2f |he best |path ../|
|00006220| 2f 73 6f 6d 65 77 68 65 | 72 65 2c 20 62 75 74 20 |/somewhe|re, but |
|00006230| 6e 6f 74 68 69 6e 67 20 | 66 6f 72 20 77 68 65 6e |nothing |for when|
|00006240| 20 77 65 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 | we want| to use |
|00006250| 70 61 74 68 73 20 74 6f | 20 67 65 74 20 2a 61 77 |paths to| get *aw|
|00006260| 61 79 2a 20 66 72 6f 6d | 0d 0a 2f 2f 73 6f 6d 65 |ay* from|..//some|
|00006270| 74 68 69 6e 67 20 69 6e | 73 74 65 61 64 20 6f 66 |thing in|stead of|
|00006280| 20 74 6f 77 61 72 64 73 | 20 69 74 2e 20 20 53 6f | towards| it. So|
|00006290| 2c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |, this f|unction |
|000062a0| 64 6f 65 73 20 74 68 61 | 74 2e 0d 0a 2f 2f 52 45 |does tha|t...//RE|
|000062b0| 54 55 52 4e 53 3a 20 55 | 6c 74 69 6d 61 74 65 20 |TURNS: U|ltimate |
|000062c0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 70 61 74 68 |destinat|ion path|
|000062d0| 2e 20 20 41 63 74 6f 72 | 52 65 61 63 68 61 62 6c |. Actor|Reachabl|
|000062e0| 65 28 52 65 74 56 61 6c | 29 20 69 73 20 6e 6f 74 |e(RetVal|) is not|
|000062f0| 0d 0a 2f 2f 6e 65 63 65 | 73 73 61 72 69 6c 79 20 |..//nece|ssarily |
|00006300| 74 72 75 65 20 2d 2d 20 | 70 61 77 6e 20 6d 69 67 |true -- |pawn mig|
|00006310| 68 74 20 68 61 76 65 20 | 74 6f 20 74 72 61 76 65 |ht have |to trave|
|00006320| 72 73 65 20 69 6e 74 65 | 72 6d 65 64 69 61 74 65 |rse inte|rmediate|
|00006330| 20 70 61 74 68 20 6e 6f | 64 65 73 20 66 69 72 73 | path no|des firs|
|00006340| 74 2e 0d 0a 73 74 61 74 | 69 63 20 66 69 6e 61 6c |t...stat|ic final|
|00006350| 20 66 75 6e 63 74 69 6f | 6e 20 45 50 61 74 68 47 | functio|n EPathG|
|00006360| 6f 61 6c 49 6e 66 6f 20 | 46 69 6e 64 41 76 6f 69 |oalInfo |FindAvoi|
|00006370| 64 47 6f 61 6c 50 61 74 | 68 47 6f 61 6c 28 20 47 |dGoalPat|hGoal( G|
|00006380| 6f 61 6c 41 62 73 74 72 | 61 63 74 65 72 49 6e 74 |oalAbstr|acterInt|
|00006390| 65 72 66 20 50 61 74 68 | 47 6f 61 6c 2c 0d 0a 09 |erf Path|Goal,...|
|000063a0| 09 50 61 77 6e 20 53 65 | 61 72 63 68 69 6e 67 50 |.Pawn Se|archingP|
|000063b0| 61 77 6e 2c 0d 0a 09 09 | 47 6f 61 6c 41 62 73 74 |awn,....|GoalAbst|
|000063c0| 72 61 63 74 65 72 49 6e | 74 65 72 66 20 55 6c 74 |racterIn|terf Ult|
|000063d0| 69 6d 61 74 65 47 6f 61 | 6c 20 29 0d 0a 7b 0d 0a |imateGoa|l )..{..|
|000063e0| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 46 6f 75 |.local b|ool bFou|
|000063f0| 6e 64 4e 6f 6e 4c 69 6e | 65 4f 66 53 69 67 68 74 |ndNonLin|eOfSight|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.