home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-11-02 | 15.7 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 | 60 fa 01 2f 2f 3d 3d 3d |........|`..//===|
|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 52 |========|==..// R|
|00000060| 61 6e 67 65 48 61 6e 64 | 6c 65 72 2e 75 63 0d 0a |angeHand|ler.uc..|
|00000070| 2f 2f 20 24 41 75 74 68 | 6f 72 3a 20 4d 66 6f 78 |// $Auth|or: Mfox|
|00000080| 20 24 0d 0a 2f 2f 20 24 | 44 61 74 65 3a 20 31 30 | $..// $|Date: 10|
|00000090| 2f 32 36 2f 39 39 20 35 | 3a 33 38 70 20 24 0d 0a |/26/99 5|:38p $..|
|000000a0| 2f 2f 20 24 52 65 76 69 | 73 69 6f 6e 3a 20 31 20 |// $Revi|sion: 1 |
|000000b0| 24 0d 0a 2f 2f 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 3d 0d 0a 0d 0a 2f 2f | 41 20 72 61 6e 67 65 20 |==....//|A range |
|00000110| 69 73 20 64 65 66 69 6e | 65 64 20 70 72 69 6d 61 |is defin|ed prima|
|00000120| 72 69 6c 79 20 62 79 20 | 74 68 65 20 64 69 73 74 |rily by |the dist|
|00000130| 61 6e 63 65 20 61 6e 20 | 61 63 74 6f 72 20 69 73 |ance an |actor is|
|00000140| 20 66 72 6f 6d 20 61 20 | 67 69 76 65 6e 20 67 6f | from a |given go|
|00000150| 61 6c 2e 0d 0a 2f 2f 49 | 74 20 69 73 20 70 6f 73 |al...//I|t is pos|
|00000160| 73 69 62 6c 65 20 66 6f | 72 20 61 20 67 6f 61 6c |sible fo|r a goal|
|00000170| 20 74 6f 20 62 65 20 62 | 61 73 73 65 64 20 6f 6e | to be b|assed on|
|00000180| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 73 75 62 | one or |more sub|
|00000190| 2d 67 6f 61 6c 73 20 62 | 75 74 2c 20 61 6e 20 61 |-goals b|ut, an a|
|000001a0| 63 74 6f 72 0d 0a 2f 2f | 6d 61 79 20 62 65 20 69 |ctor..//|may be i|
|000001b0| 6e 20 6f 6e 6c 79 20 6f | 6e 20 72 61 6e 67 65 20 |n only o|n range |
|000001c0| 61 74 20 61 20 74 69 6d | 65 2e 20 0d 0a 0d 0a 63 |at a tim|e. ....c|
|000001d0| 6c 61 73 73 20 52 61 6e | 67 65 48 61 6e 64 6c 65 |lass Ran|geHandle|
|000001e0| 72 20 65 78 70 61 6e 64 | 73 20 41 69 43 6f 6d 70 |r expand|s AiComp|
|000001f0| 6f 6e 65 6e 74 3b 0d 0a | 0d 0a 65 6e 75 6d 20 45 |onent;..|..enum E|
|00000200| 4f 62 6a 65 63 74 49 6e | 74 65 72 73 65 63 74 52 |ObjectIn|tersectR|
|00000210| 65 71 75 69 72 65 6d 65 | 6e 74 0d 0a 7b 0d 0a 09 |equireme|nt..{...|
|00000220| 4f 49 52 5f 49 72 72 65 | 6c 65 76 61 6e 74 2c 20 |OIR_Irre|levant, |
|00000230| 2f 2f 74 68 65 20 6f 62 | 6a 65 63 74 20 63 79 6c |//the ob|ject cyl|
|00000240| 69 6e 64 65 72 20 69 6e | 73 74 65 72 73 65 63 74 |inder in|stersect|
|00000250| 69 6f 6e 73 20 61 72 65 | 20 6e 6f 74 20 75 73 65 |ions are| not use|
|00000260| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 76 |d to det|ermine v|
|00000270| 61 6c 69 64 69 74 79 0d | 0a 09 4f 49 52 5f 52 65 |alidity.|..OIR_Re|
|00000280| 71 75 69 72 65 2c 09 2f | 2f 74 68 65 20 6f 62 6a |quire,./|/the obj|
|00000290| 65 63 74 20 63 79 6c 69 | 6e 64 65 72 73 20 6d 75 |ect cyli|nders mu|
|000002a0| 73 74 20 69 6e 74 65 72 | 73 65 63 74 20 0d 0a 09 |st inter|sect ...|
|000002b0| 4f 49 52 5f 46 6f 72 62 | 69 64 2c 20 09 2f 2f 74 |OIR_Forb|id, .//t|
|000002c0| 68 65 20 6f 62 6a 65 63 | 74 20 63 79 6c 69 6e 64 |he objec|t cylind|
|000002d0| 65 72 73 20 6d 75 73 74 | 20 6e 6f 74 20 69 6e 74 |ers must| not int|
|000002e0| 65 72 73 65 63 74 0d 0a | 7d 3b 0d 0a 0d 0a 73 74 |ersect..|};....st|
|000002f0| 72 75 63 74 20 54 48 61 | 6e 64 6c 65 72 54 65 6d |ruct THa|ndlerTem|
|00000300| 70 6c 61 74 65 0d 0a 7b | 0d 0a 09 76 61 72 20 28 |plate..{|...var (|
|00000310| 29 20 4e 61 6d 65 09 09 | 09 09 09 09 09 09 48 54 |) Name..|......HT|
|00000320| 5f 4e 61 6d 65 3b 0d 0a | 09 76 61 72 20 28 29 20 |_Name;..|.var () |
|00000330| 66 6c 6f 61 74 09 09 09 | 09 09 09 09 48 54 5f 50 |float...|....HT_P|
|00000340| 72 69 6f 72 69 74 79 3b | 0d 0a 09 76 61 72 20 28 |riority;|...var (|
|00000350| 29 20 4e 61 6d 65 09 09 | 09 09 09 09 09 09 48 54 |) Name..|......HT|
|00000360| 5f 50 72 65 48 69 6e 74 | 3b 0d 0a 09 76 61 72 20 |_PreHint|;...var |
|00000370| 28 29 20 4e 61 6d 65 09 | 09 09 09 09 09 09 09 48 |() Name.|.......H|
|00000380| 54 5f 50 6f 73 74 48 69 | 6e 74 3b 0d 0a 09 76 61 |T_PostHi|nt;...va|
|00000390| 72 20 28 29 20 4e 61 6d | 65 20 09 09 09 09 09 09 |r () Nam|e ......|
|000003a0| 09 48 54 5f 41 73 73 6f | 63 69 61 74 65 64 53 74 |.HT_Asso|ciatedSt|
|000003b0| 61 74 65 3b 0d 0a 09 76 | 61 72 20 28 29 20 4e 61 |ate;...v|ar () Na|
|000003c0| 6d 65 20 09 09 09 09 09 | 09 09 48 54 5f 41 73 73 |me .....|..HT_Ass|
|000003d0| 6f 63 69 61 74 65 64 4c | 61 62 65 6c 3b 0d 0a 09 |ociatedL|abel;...|
|000003e0| 76 61 72 20 28 29 20 63 | 6c 61 73 73 3c 57 61 79 |var () c|lass<Way|
|000003f0| 70 6f 69 6e 74 53 65 6c | 65 63 74 6f 72 49 6e 74 |pointSel|ectorInt|
|00000400| 65 72 66 3e 09 48 54 5f | 53 65 6c 65 63 74 6f 72 |erf>.HT_|Selector|
|00000410| 43 6c 61 73 73 57 70 74 | 3b 0d 0a 09 76 61 72 20 |ClassWpt|;...var |
|00000420| 28 29 20 63 6c 61 73 73 | 3c 46 6f 63 75 73 53 65 |() class|<FocusSe|
|00000430| 6c 65 63 74 6f 72 49 6e | 74 65 72 66 3e 09 09 48 |lectorIn|terf>..H|
|00000440| 54 5f 53 65 6c 65 63 74 | 6f 72 43 6c 61 73 73 46 |T_Select|orClassF|
|00000450| 63 73 3b 0d 0a 09 76 61 | 72 20 28 29 20 45 4f 62 |cs;...va|r () EOb|
|00000460| 6a 65 63 74 49 6e 74 65 | 72 73 65 63 74 52 65 71 |jectInte|rsectReq|
|00000470| 75 69 72 65 6d 65 6e 74 | 09 09 48 54 5f 4f 62 6a |uirement|..HT_Obj|
|00000480| 49 6e 74 65 72 73 65 63 | 74 52 65 71 3b 0d 0a 09 |Intersec|tReq;...|
|00000490| 76 61 72 20 28 29 20 63 | 6c 61 73 73 3c 4d 6f 76 |var () c|lass<Mov|
|000004a0| 65 6d 65 6e 74 50 61 74 | 74 65 72 6e 3e 20 09 09 |ementPat|tern> ..|
|000004b0| 09 48 54 5f 4d 6f 76 65 | 6d 65 6e 74 50 61 74 74 |.HT_Move|mentPatt|
|000004c0| 65 72 6e 43 6c 61 73 73 | 3b 0d 0a 09 76 61 72 20 |ernClass|;...var |
|000004d0| 28 29 20 62 6f 6f 6c 09 | 09 09 09 09 09 09 09 48 |() bool.|.......H|
|000004e0| 54 5f 62 52 65 65 6e 74 | 72 61 6e 74 3b 09 09 09 |T_bReent|rant;...|
|000004f0| 09 2f 2f 74 68 65 20 61 | 63 74 6f 72 20 6d 61 79 |.//the a|ctor may|
|00000500| 20 72 65 65 6e 74 65 72 | 20 69 66 20 69 74 20 69 | reenter| if it i|
|00000510| 73 20 61 6c 72 65 61 64 | 79 20 69 6e 20 69 74 0d |s alread|y in it.|
|00000520| 0a 09 76 61 72 20 28 29 | 20 66 6c 6f 61 74 20 09 |..var ()| float .|
|00000530| 09 09 09 09 09 09 48 54 | 5f 4d 69 6e 45 6e 74 72 |......HT|_MinEntr|
|00000540| 79 49 6e 74 65 72 76 61 | 6c 3b 09 09 2f 2f 74 68 |yInterva|l;..//th|
|00000550| 65 20 6d 69 6e 69 6d 75 | 6d 20 61 6d 6f 75 6e 74 |e minimu|m amount|
|00000560| 20 6f 66 20 74 69 6d 65 | 20 74 68 61 74 20 6d 75 | of time| that mu|
|00000570| 73 74 20 70 61 73 73 20 | 62 65 74 77 65 65 6e 20 |st pass |between |
|00000580| 73 75 63 63 65 73 73 66 | 75 6c 20 65 6e 74 72 79 |successf|ul entry|
|00000590| 20 61 74 74 65 6d 70 74 | 73 0d 0a 09 76 61 72 20 | attempt|s...var |
|000005a0| 28 29 20 62 6f 6f 6c 20 | 09 09 09 09 09 09 09 48 |() bool |.......H|
|000005b0| 54 5f 62 44 75 72 61 74 | 69 6f 6e 43 6f 6e 73 74 |T_bDurat|ionConst|
|000005c0| 72 61 69 6e 65 64 3b 09 | 2f 2f 73 68 6f 75 6c 64 |rained;.|//should|
|000005d0| 20 74 68 65 20 61 6d 6f | 75 6e 74 20 6f 66 20 74 | the amo|unt of t|
|000005e0| 69 6d 65 20 69 6e 20 74 | 68 69 73 20 72 61 6e 67 |ime in t|his rang|
|000005f0| 65 20 62 65 20 63 6f 6e | 73 74 72 61 69 6e 65 64 |e be con|strained|
|00000600| 0d 0a 09 76 61 72 20 28 | 29 20 66 6c 6f 61 74 09 |...var (|) float.|
|00000610| 09 09 09 09 09 09 48 54 | 5f 4d 61 78 44 75 72 61 |......HT|_MaxDura|
|00000620| 74 69 6f 6e 3b 09 09 09 | 2f 2f 74 68 65 20 6d 61 |tion;...|//the ma|
|00000630| 78 69 6d 75 6d 20 61 6d | 6f 75 6e 74 20 6f 66 20 |ximum am|ount of |
|00000640| 74 69 6d 65 20 74 68 61 | 74 20 6d 61 79 20 62 65 |time tha|t may be|
|00000650| 20 73 70 65 6e 74 20 69 | 6e 20 74 68 65 20 72 61 | spent i|n the ra|
|00000660| 6e 67 65 0d 0a 09 76 61 | 72 20 28 29 20 62 6f 6f |nge...va|r () boo|
|00000670| 6c 20 09 09 09 09 09 09 | 09 48 54 5f 62 52 65 71 |l ......|.HT_bReq|
|00000680| 75 69 72 65 56 61 6c 69 | 64 47 6f 61 6c 3b 09 2f |uireVali|dGoal;./|
|00000690| 2f 69 73 20 74 68 65 20 | 67 6f 61 6c 20 72 65 71 |/is the |goal req|
|000006a0| 75 69 72 65 64 20 74 6f | 20 62 65 20 76 61 6c 69 |uired to| be vali|
|000006b0| 64 20 66 6f 72 20 74 68 | 65 20 61 63 6f 74 72 20 |d for th|e acotr |
|000006c0| 74 6f 20 62 65 20 69 6e | 20 74 68 69 73 20 72 61 |to be in| this ra|
|000006d0| 6e 67 65 0d 0a 7d 3b 0d | 0a 0d 0a 76 61 72 20 28 |nge..};.|...var (|
|000006e0| 29 20 54 48 61 6e 64 6c | 65 72 54 65 6d 70 6c 61 |) THandl|erTempla|
|000006f0| 74 65 09 09 54 65 6d 70 | 6c 61 74 65 3b 0d 0a 76 |te..Temp|late;..v|
|00000700| 61 72 09 66 6c 6f 61 74 | 20 09 09 09 09 09 45 6e |ar.float| .....En|
|00000710| 74 72 79 54 69 6d 65 3b | 09 09 09 2f 2f 74 68 65 |tryTime;|...//the|
|00000720| 20 65 6e 74 72 61 6e 63 | 65 20 74 69 6d 65 20 28 | entranc|e time (|
|00000730| 73 65 74 20 62 79 20 63 | 61 6c 6c 69 6e 67 20 52 |set by c|alling R|
|00000740| 65 73 65 74 52 61 6e 67 | 65 45 6e 74 72 79 54 69 |esetRang|eEntryTi|
|00000750| 6d 65 29 0d 0a 76 61 72 | 20 4e 61 6d 65 20 09 09 |me)..var| Name ..|
|00000760| 09 09 09 50 72 65 76 69 | 6f 75 73 53 74 61 74 65 |...Previ|ousState|
|00000770| 4e 61 6d 65 3b 09 2f 2f | 74 68 65 20 6c 61 73 74 |Name;.//|the last|
|00000780| 20 55 4e 49 51 55 45 20 | 73 74 61 74 65 20 74 68 | UNIQUE |state th|
|00000790| 61 74 20 74 68 65 20 61 | 63 74 6f 72 20 77 61 73 |at the a|ctor was|
|000007a0| 20 69 6e 2e 0d 0a 76 61 | 72 20 4d 6f 76 65 6d 65 | in...va|r Moveme|
|000007b0| 6e 74 50 61 74 74 65 72 | 6e 20 09 09 4d 6f 76 65 |ntPatter|n ..Move|
|000007c0| 6d 65 6e 74 50 61 74 74 | 65 72 6e 3b 0d 0a 0d 0a |mentPatt|ern;....|
|000007d0| 63 6f 6e 73 74 20 43 6c | 6f 73 65 45 6e 6f 75 67 |const Cl|oseEnoug|
|000007e0| 68 54 6f 44 69 73 74 61 | 6e 63 65 20 3d 20 31 36 |hToDista|nce = 16|
|000007f0| 2e 30 3b 0d 0a 0d 0a 0d | 0a 0d 0a 66 75 6e 63 74 |.0;.....|...funct|
|00000800| 69 6f 6e 20 44 65 73 74 | 72 75 63 74 65 64 28 29 |ion Dest|ructed()|
|00000810| 0d 0a 7b 0d 0a 09 69 66 | 28 20 4d 6f 76 65 6d 65 |..{...if|( Moveme|
|00000820| 6e 74 50 61 74 74 65 72 | 6e 20 21 3d 20 4e 6f 6e |ntPatter|n != Non|
|00000830| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 4d 6f 76 65 6d |e )...{.|...Movem|
|00000840| 65 6e 74 50 61 74 74 65 | 72 6e 2e 44 65 6c 65 74 |entPatte|rn.Delet|
|00000850| 65 28 29 3b 0d 0a 09 09 | 4d 6f 76 65 6d 65 6e 74 |e();....|Movement|
|00000860| 50 61 74 74 65 72 6e 20 | 3d 20 4e 6f 6e 65 3b 0d |Pattern |= None;.|
|00000870| 0a 09 7d 0d 0a 09 53 75 | 70 65 72 2e 44 65 73 74 |..}...Su|per.Dest|
|00000880| 72 75 63 74 65 64 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |ructed()|;..}....|
|00000890| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 42 69 6e |....func|tion Bin|
|000008a0| 64 48 61 6e 64 6c 65 72 | 28 20 52 61 6e 67 65 48 |dHandler|( RangeH|
|000008b0| 61 6e 64 6c 65 72 20 4e | 65 77 48 61 6e 64 6c 65 |andler N|ewHandle|
|000008c0| 72 20 29 3b 0d 0a 0d 0a | 0d 0a 0d 0a 66 75 6e 63 |r );....|....func|
|000008d0| 74 69 6f 6e 20 52 61 6e | 67 65 48 61 6e 64 6c 65 |tion Ran|geHandle|
|000008e0| 72 20 47 65 74 48 61 6e | 64 6c 65 72 28 29 0d 0a |r GetHan|dler()..|
|000008f0| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 53 65 6c 66 3b |{...retu|rn Self;|
|00000900| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 0d 0a 66 75 6e 63 74 |..}.....|...funct|
|00000910| 69 6f 6e 20 53 65 74 53 | 65 6c 65 63 74 6f 72 43 |ion SetS|electorC|
|00000920| 6c 61 73 73 65 73 28 20 | 63 6c 61 73 73 3c 57 61 |lasses( |class<Wa|
|00000930| 79 70 6f 69 6e 74 53 65 | 6c 65 63 74 6f 72 49 6e |ypointSe|lectorIn|
|00000940| 74 65 72 66 3e 20 52 61 | 6e 67 65 57 70 74 53 65 |terf> Ra|ngeWptSe|
|00000950| 6c 65 63 74 6f 72 43 6c | 61 73 73 2c 0d 0a 09 09 |lectorCl|ass,....|
|00000960| 63 6c 61 73 73 3c 46 6f | 63 75 73 53 65 6c 65 63 |class<Fo|cusSelec|
|00000970| 74 6f 72 49 6e 74 65 72 | 66 3e 20 52 61 6e 67 65 |torInter|f> Range|
|00000980| 46 63 73 53 65 6c 65 63 | 74 6f 72 43 6c 61 73 73 |FcsSelec|torClass|
|00000990| 20 29 0d 0a 7b 0d 0a 09 | 69 66 28 20 52 61 6e 67 | )..{...|if( Rang|
|000009a0| 65 57 70 74 53 65 6c 65 | 63 74 6f 72 43 6c 61 73 |eWptSele|ctorClas|
|000009b0| 73 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 7b 0d |s != Non|e )...{.|
|000009c0| 0a 09 09 54 65 6d 70 6c | 61 74 65 2e 48 54 5f 53 |...Templ|ate.HT_S|
|000009d0| 65 6c 65 63 74 6f 72 43 | 6c 61 73 73 57 70 74 20 |electorC|lassWpt |
|000009e0| 3d 20 52 61 6e 67 65 57 | 70 74 53 65 6c 65 63 74 |= RangeW|ptSelect|
|000009f0| 6f 72 43 6c 61 73 73 3b | 0d 0a 09 7d 0d 0a 09 65 |orClass;|...}...e|
|00000a00| 6c 73 65 0d 0a 09 7b 0d | 0a 09 09 54 65 6d 70 6c |lse...{.|...Templ|
|00000a10| 61 74 65 2e 48 54 5f 53 | 65 6c 65 63 74 6f 72 43 |ate.HT_S|electorC|
|00000a20| 6c 61 73 73 57 70 74 20 | 3d 20 64 65 66 61 75 6c |lassWpt |= defaul|
|00000a30| 74 2e 54 65 6d 70 6c 61 | 74 65 2e 48 54 5f 53 65 |t.Templa|te.HT_Se|
|00000a40| 6c 65 63 74 6f 72 43 6c | 61 73 73 57 70 74 3b 0d |lectorCl|assWpt;.|
|00000a50| 0a 09 7d 0d 0a 09 69 66 | 28 20 52 61 6e 67 65 46 |..}...if|( RangeF|
|00000a60| 63 73 53 65 6c 65 63 74 | 6f 72 43 6c 61 73 73 20 |csSelect|orClass |
|00000a70| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00000a80| 09 54 65 6d 70 6c 61 74 | 65 2e 48 54 5f 53 65 6c |.Templat|e.HT_Sel|
|00000a90| 65 63 74 6f 72 43 6c 61 | 73 73 46 63 73 20 3d 20 |ectorCla|ssFcs = |
|00000aa0| 52 61 6e 67 65 46 63 73 | 53 65 6c 65 63 74 6f 72 |RangeFcs|Selector|
|00000ab0| 43 6c 61 73 73 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |Class;..|.}...els|
|00000ac0| 65 0d 0a 09 7b 0d 0a 09 | 09 54 65 6d 70 6c 61 74 |e...{...|.Templat|
|00000ad0| 65 2e 48 54 5f 53 65 6c | 65 63 74 6f 72 43 6c 61 |e.HT_Sel|ectorCla|
|00000ae0| 73 73 46 63 73 20 3d 20 | 64 65 66 61 75 6c 74 2e |ssFcs = |default.|
|00000af0| 54 65 6d 70 6c 61 74 65 | 2e 48 54 5f 53 65 6c 65 |Template|.HT_Sele|
|00000b00| 63 74 6f 72 43 6c 61 73 | 73 46 63 73 3b 0d 0a 09 |ctorClas|sFcs;...|
|00000b10| 7d 0d 0a 7d 0d 0a 0d 0a | 0d 0a 0d 0a 66 75 6e 63 |}..}....|....func|
|00000b20| 74 69 6f 6e 20 53 65 74 | 45 6e 74 72 79 43 6f 6e |tion Set|EntryCon|
|00000b30| 73 74 72 61 69 6e 74 73 | 28 20 62 6f 6f 6c 20 62 |straints|( bool b|
|00000b40| 52 65 65 6e 74 72 61 6e | 74 52 61 6e 67 65 2c 20 |Reentran|tRange, |
|00000b50| 66 6c 6f 61 74 20 52 61 | 6e 67 65 4d 61 78 44 75 |float Ra|ngeMaxDu|
|00000b60| 72 61 74 69 6f 6e 2c 20 | 66 6c 6f 61 74 20 52 61 |ration, |float Ra|
|00000b70| 6e 67 65 4d 69 6e 45 6e | 74 72 79 49 6e 74 65 72 |ngeMinEn|tryInter|
|00000b80| 76 61 6c 20 29 0d 0a 7b | 0d 0a 09 54 65 6d 70 6c |val )..{|...Templ|
|00000b90| 61 74 65 2e 48 54 5f 62 | 52 65 65 6e 74 72 61 6e |ate.HT_b|Reentran|
|00000ba0| 74 20 3d 20 62 52 65 65 | 6e 74 72 61 6e 74 52 61 |t = bRee|ntrantRa|
|00000bb0| 6e 67 65 3b 0d 0a 09 54 | 65 6d 70 6c 61 74 65 2e |nge;...T|emplate.|
|00000bc0| 48 54 5f 4d 61 78 44 75 | 72 61 74 69 6f 6e 20 3d |HT_MaxDu|ration =|
|00000bd0| 20 52 61 6e 67 65 4d 61 | 78 44 75 72 61 74 69 6f | RangeMa|xDuratio|
|00000be0| 6e 3b 0d 0a 09 54 65 6d | 70 6c 61 74 65 2e 48 54 |n;...Tem|plate.HT|
|00000bf0| 5f 4d 69 6e 45 6e 74 72 | 79 49 6e 74 65 72 76 61 |_MinEntr|yInterva|
|00000c00| 6c 20 3d 20 52 61 6e 67 | 65 4d 69 6e 45 6e 74 72 |l = Rang|eMinEntr|
|00000c10| 79 49 6e 74 65 72 76 61 | 6c 3b 0d 0a 7d 0d 0a 0d |yInterva|l;..}...|
|00000c20| 0a 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 53 65 |.....fun|ction Se|
|00000c30| 74 41 73 73 6f 63 69 61 | 74 65 64 53 74 61 74 65 |tAssocia|tedState|
|00000c40| 49 6e 66 6f 28 20 4e 61 | 6d 65 20 53 74 61 74 65 |Info( Na|me State|
|00000c50| 4e 61 6d 65 2c 20 4e 61 | 6d 65 20 53 74 61 74 65 |Name, Na|me State|
|00000c60| 4e 61 6d 65 4c 61 62 65 | 6c 20 29 0d 0a 7b 0d 0a |NameLabe|l )..{..|
|00000c70| 09 54 65 6d 70 6c 61 74 | 65 2e 48 54 5f 41 73 73 |.Templat|e.HT_Ass|
|00000c80| 6f 63 69 61 74 65 64 53 | 74 61 74 65 20 3d 20 53 |ociatedS|tate = S|
|00000c90| 74 61 74 65 4e 61 6d 65 | 3b 0d 0a 09 54 65 6d 70 |tateName|;...Temp|
|00000ca0| 6c 61 74 65 2e 48 54 5f | 41 73 73 6f 63 69 61 74 |late.HT_|Associat|
|00000cb0| 65 64 4c 61 62 65 6c 20 | 3d 20 53 74 61 74 65 4e |edLabel |= StateN|
|00000cc0| 61 6d 65 4c 61 62 65 6c | 3b 0d 0a 7d 0d 0a 0d 0a |ameLabel|;..}....|
|00000cd0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00000ce0| 6c 20 54 72 61 6e 73 69 | 74 69 6f 6e 54 6f 41 73 |l Transi|tionToAs|
|00000cf0| 73 6f 63 69 61 74 65 64 | 53 74 61 74 65 28 20 41 |sociated|State( A|
|00000d00| 63 74 6f 72 20 54 72 61 | 6e 73 69 74 69 6f 6e 69 |ctor Tra|nsitioni|
|00000d10| 6e 67 41 63 74 6f 72 20 | 29 0d 0a 7b 0d 0a 09 6c |ngActor |)..{...l|
|00000d20| 6f 63 61 6c 20 62 6f 6f | 6c 20 62 41 63 74 6f 72 |ocal boo|l bActor|
|00000d30| 54 72 61 6e 73 69 74 69 | 6f 6e 65 64 3b 0d 0a 09 |Transiti|oned;...|
|00000d40| 6c 6f 63 61 6c 20 4e 61 | 6d 65 20 43 75 72 72 65 |local Na|me Curre|
|00000d50| 6e 74 53 74 61 74 65 4e | 61 6d 65 3b 0d 0a 09 0d |ntStateN|ame;....|
|00000d60| 0a 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|00000d70| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00000d80| 54 72 61 6e 73 69 74 69 | 6f 6e 69 6e 67 41 63 74 |Transiti|oningAct|
|00000d90| 6f 72 2c 20 22 54 72 61 | 6e 73 69 74 69 6f 6e 54 |or, "Tra|nsitionT|
|00000da0| 6f 41 73 73 6f 63 69 61 | 74 65 64 53 74 61 74 65 |oAssocia|tedState|
|00000db0| 20 48 54 5f 4e 61 6d 65 | 20 22 20 24 20 54 65 6d | HT_Name| " $ Tem|
|00000dc0| 70 6c 61 74 65 2e 48 54 | 5f 4e 61 6d 65 2c 20 44 |plate.HT|_Name, D|
|00000dd0| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00000de0| 20 29 3b 0d 0a 09 69 66 | 28 20 43 61 6e 41 63 74 | );...if|( CanAct|
|00000df0| 6f 72 45 6e 74 65 72 52 | 61 6e 67 65 28 20 54 72 |orEnterR|ange( Tr|
|00000e00| 61 6e 73 69 74 69 6f 6e | 69 6e 67 41 63 74 6f 72 |ansition|ingActor|
|00000e10| 20 29 20 29 0d 0a 09 7b | 0d 0a 09 09 43 75 72 72 | ) )...{|....Curr|
|00000e20| 65 6e 74 53 74 61 74 65 | 4e 61 6d 65 20 3d 20 54 |entState|Name = T|
|00000e30| 72 61 6e 73 69 74 69 6f | 6e 69 6e 67 41 63 74 6f |ransitio|ningActo|
|00000e40| 72 2e 47 65 74 53 74 61 | 74 65 4e 61 6d 65 28 29 |r.GetSta|teName()|
|00000e50| 3b 0d 0a 09 09 63 6c 61 | 73 73 27 44 65 62 75 67 |;....cla|ss'Debug|
|00000e60| 27 2e 73 74 61 74 69 63 | 2e 44 65 62 75 67 4c 6f |'.static|.DebugLo|
|00000e70| 67 28 20 54 72 61 6e 73 | 69 74 69 6f 6e 69 6e 67 |g( Trans|itioning|
|00000e80| 41 63 74 6f 72 2c 20 22 | 54 72 61 6e 73 69 74 69 |Actor, "|Transiti|
|00000e90| 6f 6e 54 6f 41 73 73 6f | 63 69 61 74 65 64 53 74 |onToAsso|ciatedSt|
|00000ea0| 61 74 65 3a 20 22 20 24 | 20 54 65 6d 70 6c 61 74 |ate: " $| Templat|
|00000eb0| 65 2e 48 54 5f 41 73 73 | 6f 63 69 61 74 65 64 53 |e.HT_Ass|ociatedS|
|00000ec0| 74 61 74 65 20 24 20 22 | 20 77 68 69 6c 65 20 69 |tate $ "| while i|
|00000ed0| 6e 20 73 74 61 74 65 20 | 22 20 24 20 43 75 72 72 |n state |" $ Curr|
|00000ee0| 65 6e 74 53 74 61 74 65 | 4e 61 6d 65 2c 20 44 65 |entState|Name, De|
|00000ef0| 62 75 67 43 61 74 65 67 | 6f 72 79 4e 61 6d 65 20 |bugCateg|oryName |
|00000f00| 29 3b 0d 0a 09 09 69 66 | 28 20 43 75 72 72 65 6e |);....if|( Curren|
|00000f10| 74 53 74 61 74 65 4e 61 | 6d 65 20 21 3d 20 54 65 |tStateNa|me != Te|
|00000f20| 6d 70 6c 61 74 65 2e 48 | 54 5f 41 73 73 6f 63 69 |mplate.H|T_Associ|
|00000f30| 61 74 65 64 53 74 61 74 | 65 20 29 0d 0a 09 09 7b |atedStat|e )....{|
|00000f40| 0d 0a 09 09 09 50 72 65 | 76 69 6f 75 73 53 74 61 |.....Pre|viousSta|
|00000f50| 74 65 4e 61 6d 65 20 3d | 20 43 75 72 72 65 6e 74 |teName =| Current|
|00000f60| 53 74 61 74 65 4e 61 6d | 65 3b 0d 0a 09 09 09 52 |StateNam|e;.....R|
|00000f70| 65 73 65 74 52 61 6e 67 | 65 45 6e 74 72 79 54 69 |esetRang|eEntryTi|
|00000f80| 6d 65 28 20 54 72 61 6e | 73 69 74 69 6f 6e 69 6e |me( Tran|sitionin|
|00000f90| 67 41 63 74 6f 72 20 29 | 3b 0d 0a 09 09 7d 0d 0a |gActor )|;....}..|
|00000fa0| 09 09 54 72 61 6e 73 69 | 74 69 6f 6e 69 6e 67 41 |..Transi|tioningA|
|00000fb0| 63 74 6f 72 2e 47 6f 74 | 6f 53 74 61 74 65 28 20 |ctor.Got|oState( |
|00000fc0| 54 65 6d 70 6c 61 74 65 | 2e 48 54 5f 41 73 73 6f |Template|.HT_Asso|
|00000fd0| 63 69 61 74 65 64 53 74 | 61 74 65 2c 20 54 65 6d |ciatedSt|ate, Tem|
|00000fe0| 70 6c 61 74 65 2e 48 54 | 5f 41 73 73 6f 63 69 61 |plate.HT|_Associa|
|00000ff0| 74 65 64 4c 61 62 65 6c | 20 29 3b 09 0d 0a 09 09 |tedLabel| );.....|
|00001000| 62 41 63 74 6f 72 54 72 | 61 6e 73 69 74 69 6f 6e |bActorTr|ansition|
|00001010| 65 64 20 3d 20 74 72 75 | 65 3b 0d 0a 09 7d 0d 0a |ed = tru|e;...}..|
|00001020| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|00001030| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 54 |atic.Deb|ugLog( T|
|00001040| 72 61 6e 73 69 74 69 6f | 6e 69 6e 67 41 63 74 6f |ransitio|ningActo|
|00001050| 72 2c 20 22 54 72 61 6e | 73 69 74 69 6f 6e 54 6f |r, "Tran|sitionTo|
|00001060| 41 73 73 6f 63 69 61 74 | 65 64 53 74 61 74 65 20 |Associat|edState |
|00001070| 72 65 74 75 72 6e 69 6e | 67 20 22 20 24 20 62 41 |returnin|g " $ bA|
|00001080| 63 74 6f 72 54 72 61 6e | 73 69 74 69 6f 6e 65 64 |ctorTran|sitioned|
|00001090| 2c 20 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |, DebugC|ategoryN|
|000010a0| 61 6d 65 20 29 3b 0d 0a | 09 72 65 74 75 72 6e 20 |ame );..|.return |
|000010b0| 62 41 63 74 6f 72 54 72 | 61 6e 73 69 74 69 6f 6e |bActorTr|ansition|
|000010c0| 65 64 3b 0d 0a 7d 0d 0a | 0d 0a 0d 0a 0d 0a 66 75 |ed;..}..|......fu|
|000010d0| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 49 73 49 6e |nction b|ool IsIn|
|000010e0| 52 61 6e 67 65 28 20 41 | 63 74 6f 72 20 52 61 6e |Range( A|ctor Ran|
|000010f0| 67 65 41 63 74 6f 72 2c | 20 42 65 68 61 76 69 6f |geActor,| Behavio|
|00001100| 72 43 6f 6e 73 74 72 61 | 69 6e 65 72 20 43 6f 6e |rConstra|iner Con|
|00001110| 73 74 72 61 69 6e 65 72 | 20 2c 20 47 6f 61 6c 41 |strainer| , GoalA|
|00001120| 62 73 74 72 61 63 74 65 | 72 49 6e 74 65 72 66 20 |bstracte|rInterf |
|00001130| 47 6f 61 6c 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Goal )..|{...loca|
|00001140| 6c 20 62 6f 6f 6c 20 62 | 49 6e 52 61 6e 67 65 3b |l bool b|InRange;|
|00001150| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 62 50 |...local| bool bP|
|00001160| 61 73 73 65 64 54 69 6d | 65 41 6e 64 45 6e 74 72 |assedTim|eAndEntr|
|00001170| 79 43 6f 6e 73 74 72 61 | 69 6e 74 73 3b 0d 0a 09 |yConstra|ints;...|
|00001180| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 50 61 73 73 |local bo|ol bPass|
|00001190| 65 64 49 6e 74 65 72 73 | 65 63 74 69 6f 6e 43 6f |edInters|ectionCo|
|000011a0| 6e 73 74 72 61 69 6e 74 | 73 3b 0d 0a 09 0d 0a 0d |nstraint|s;......|
|000011b0| 0a 09 69 66 28 20 52 61 | 6e 67 65 41 63 74 6f 72 |..if( Ra|ngeActor|
|000011c0| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | == None| )...{..|
|000011d0| 09 09 4c 6f 67 28 20 22 | 49 73 49 6e 52 61 6e 67 |..Log( "|IsInRang|
|000011e0| 65 20 52 61 6e 67 65 41 | 63 74 6f 72 20 22 20 24 |e RangeA|ctor " $|
|000011f0| 20 52 61 6e 67 65 41 63 | 74 6f 72 20 29 3b 0d 0a | RangeAc|tor );..|
|00001200| 09 09 4c 6f 67 28 20 22 | 49 73 49 6e 52 61 6e 67 |..Log( "|IsInRang|
|00001210| 65 20 43 6f 6e 73 74 72 | 61 69 6e 65 72 20 22 20 |e Constr|ainer " |
|00001220| 24 20 43 6f 6e 73 74 72 | 61 69 6e 65 72 20 29 3b |$ Constr|ainer );|
|00001230| 0d 0a 09 09 4c 6f 67 28 | 20 22 49 73 49 6e 52 61 |....Log(| "IsInRa|
|00001240| 6e 67 65 20 47 6f 61 6c | 20 22 20 24 20 47 6f 61 |nge Goal| " $ Goa|
|00001250| 6c 20 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |l );...}|...else |
|00001260| 69 66 28 20 43 6f 6e 73 | 74 72 61 69 6e 65 72 20 |if( Cons|trainer |
|00001270| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |== None |)...{...|
|00001280| 09 4c 6f 67 28 20 22 49 | 73 49 6e 52 61 6e 67 65 |.Log( "I|sInRange|
|00001290| 20 52 61 6e 67 65 41 63 | 74 6f 72 20 22 20 24 20 | RangeAc|tor " $ |
|000012a0| 52 61 6e 67 65 41 63 74 | 6f 72 20 29 3b 0d 0a 09 |RangeAct|or );...|
|000012b0| 09 4c 6f 67 28 20 22 49 | 73 49 6e 52 61 6e 67 65 |.Log( "I|sInRange|
|000012c0| 20 43 6f 6e 73 74 72 61 | 69 6e 65 72 20 22 20 24 | Constra|iner " $|
|000012d0| 20 43 6f 6e 73 74 72 61 | 69 6e 65 72 20 29 3b 0d | Constra|iner );.|
|000012e0| 0a 09 09 4c 6f 67 28 20 | 22 49 73 49 6e 52 61 6e |...Log( |"IsInRan|
|000012f0| 67 65 20 47 6f 61 6c 20 | 22 20 24 20 47 6f 61 6c |ge Goal |" $ Goal|
|00001300| 20 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 69 | );...}.|..else i|
|00001310| 66 28 20 47 6f 61 6c 20 | 3d 3d 20 4e 6f 6e 65 20 |f( Goal |== None |
|00001320| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 67 28 20 22 49 |)...{...|.Log( "I|
|00001330| 73 49 6e 52 61 6e 67 65 | 20 52 61 6e 67 65 41 63 |sInRange| RangeAc|
|00001340| 74 6f 72 20 22 20 24 20 | 52 61 6e 67 65 41 63 74 |tor " $ |RangeAct|
|00001350| 6f 72 20 29 3b 0d 0a 09 | 09 4c 6f 67 28 20 22 49 |or );...|.Log( "I|
|00001360| 73 49 6e 52 61 6e 67 65 | 20 43 6f 6e 73 74 72 61 |sInRange| Constra|
|00001370| 69 6e 65 72 20 22 20 24 | 20 43 6f 6e 73 74 72 61 |iner " $| Constra|
|00001380| 69 6e 65 72 20 29 3b 0d | 0a 09 09 4c 6f 67 28 20 |iner );.|...Log( |
|00001390| 22 49 73 49 6e 52 61 6e | 67 65 20 47 6f 61 6c 20 |"IsInRan|ge Goal |
|000013a0| 22 20 24 20 47 6f 61 6c | 20 29 3b 0d 0a 09 7d 0d |" $ Goal| );...}.|
|000013b0| 0a 0d 0a 09 0d 0a 09 63 | 6c 61 73 73 27 44 65 62 |.......c|lass'Deb|
|000013c0| 75 67 27 2e 73 74 61 74 | 69 63 2e 44 65 62 75 67 |ug'.stat|ic.Debug|
|000013d0| 4c 6f 67 28 20 52 61 6e | 67 65 41 63 74 6f 72 2c |Log( Ran|geActor,|
|000013e0| 20 22 49 73 49 6e 52 61 | 6e 67 65 20 48 54 5f 4e | "IsInRa|nge HT_N|
|000013f0| 61 6d 65 20 22 20 24 20 | 54 65 6d 70 6c 61 74 65 |ame " $ |Template|
|00001400| 2e 48 54 5f 4e 61 6d 65 | 2c 20 44 65 62 75 67 43 |.HT_Name|, DebugC|
|00001410| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00001420| 09 69 66 28 20 21 54 65 | 6d 70 6c 61 74 65 2e 48 |.if( !Te|mplate.H|
|00001430| 54 5f 62 52 65 71 75 69 | 72 65 56 61 6c 69 64 47 |T_bRequi|reValidG|
|00001440| 6f 61 6c 20 7c 7c 20 47 | 6f 61 6c 2e 49 73 56 61 |oal || G|oal.IsVa|
|00001450| 6c 69 64 28 20 52 61 6e | 67 65 41 63 74 6f 72 20 |lid( Ran|geActor |
|00001460| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 63 6c 61 73 73 |) )...{.|...class|
|00001470| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00001480| 65 62 75 67 4c 6f 67 28 | 20 52 61 6e 67 65 41 63 |ebugLog(| RangeAc|
|00001490| 74 6f 72 2c 20 22 49 73 | 49 6e 52 61 6e 67 65 20 |tor, "Is|InRange |
|000014a0| 30 22 2c 20 44 65 62 75 | 67 43 61 74 65 67 6f 72 |0", Debu|gCategor|
|000014b0| 79 4e 61 6d 65 20 29 3b | 0d 0a 09 09 2f 2f 74 68 |yName );|....//th|
|000014c0| 65 20 67 6f 61 6c 20 69 | 73 20 6e 65 76 65 72 20 |e goal i|s never |
|000014d0| 69 6e 20 61 20 72 61 6e | 67 65 20 69 66 20 69 74 |in a ran|ge if it|
|000014e0| 20 28 74 68 65 20 67 6f | 61 6c 29 20 69 73 20 6e | (the go|al) is n|
|000014f0| 6f 74 20 76 61 6c 69 64 | 0d 0a 09 09 69 66 28 20 |ot valid|....if( |
|00001500| 54 65 6d 70 6c 61 74 65 | 2e 48 54 5f 62 44 75 72 |Template|.HT_bDur|
|00001510| 61 74 69 6f 6e 43 6f 6e | 73 74 72 61 69 6e 65 64 |ationCon|strained|
|00001520| 20 26 26 20 28 20 52 61 | 6e 67 65 41 63 74 6f 72 | && ( Ra|ngeActor|
|00001530| 2e 47 65 74 53 74 61 74 | 65 4e 61 6d 65 28 29 20 |.GetStat|eName() |
|00001540| 3d 3d 20 54 65 6d 70 6c | 61 74 65 2e 48 54 5f 41 |== Templ|ate.HT_A|
|00001550| 73 73 6f 63 69 61 74 65 | 64 53 74 61 74 65 20 29 |ssociate|dState )|
|00001560| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 63 6c 61 73 | )....{.|....clas|
|00001570| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00001580| 44 65 62 75 67 4c 6f 67 | 28 20 52 61 6e 67 65 41 |DebugLog|( RangeA|
|00001590| 63 74 6f 72 2c 20 22 49 | 73 49 6e 52 61 6e 67 65 |ctor, "I|sInRange|
|000015a0| 20 31 22 2c 20 44 65 62 | 75 67 43 61 74 65 67 6f | 1", Deb|ugCatego|
|000015b0| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 09 09 63 6c |ryName )|;.....cl|
|000015c0| 61 73 73 27 44 65 62 75 | 67 27 2e 73 74 61 74 69 |ass'Debu|g'.stati|
|000015d0| 63 2e 44 65 62 75 67 4c | 6f 67 28 20 52 61 6e 67 |c.DebugL|og( Rang|
|000015e0| 65 41 63 74 6f 72 2c 20 | 22 49 73 49 6e 52 61 6e |eActor, |"IsInRan|
|000015f0| 67 65 20 54 65 6d 70 6c | 61 74 65 2e 48 54 5f 41 |ge Templ|ate.HT_A|
|00001600| 73 73 6f 63 69 61 74 65 | 64 53 74 61 74 65 20 22 |ssociate|dState "|
|00001610| 20 24 20 54 65 6d 70 6c | 61 74 65 2e 48 54 5f 41 | $ Templ|ate.HT_A|
|00001620| 73 73 6f 63 69 61 74 65 | 64 53 74 61 74 65 2c 20 |ssociate|dState, |
|00001630| 44 65 62 75 67 43 61 74 | 65 67 6f 72 79 4e 61 6d |DebugCat|egoryNam|
|00001640| 65 20 29 3b 0d 0a 09 09 | 09 63 6c 61 73 73 27 44 |e );....|.class'D|
|00001650| 65 62 75 67 27 2e 73 74 | 61 74 69 63 2e 44 65 62 |ebug'.st|atic.Deb|
|00001660| 75 67 4c 6f 67 28 20 52 | 61 6e 67 65 41 63 74 6f |ugLog( R|angeActo|
|00001670| 72 2c 20 22 49 73 49 6e | 52 61 6e 67 65 20 54 65 |r, "IsIn|Range Te|
|00001680| 6d 70 6c 61 74 65 2e 48 | 54 5f 4d 61 78 44 75 72 |mplate.H|T_MaxDur|
|00001690| 61 74 69 6f 6e 20 22 20 | 24 20 54 65 6d 70 6c 61 |ation " |$ Templa|
|000016a0| 74 65 2e 48 54 5f 4d 61 | 78 44 75 72 61 74 69 6f |te.HT_Ma|xDuratio|
|000016b0| 6e 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |n, Debug|Category|
|000016c0| 4e 61 6d 65 20 29 3b 0d | 0a 09 09 09 63 6c 61 73 |Name );.|....clas|
|000016d0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|000016e0| 44 65 62 75 67 4c 6f 67 | 28 20 52 61 6e 67 65 41 |DebugLog|( RangeA|
|000016f0| 63 74 6f 72 2c 20 22 49 | 73 49 6e 52 61 6e 67 65 |ctor, "I|sInRange|
|00001700| 20 45 6e 74 72 79 54 69 | 6d 65 20 22 20 24 20 45 | EntryTi|me " $ E|
|00001710| 6e 74 72 79 54 69 6d 65 | 2c 20 44 65 62 75 67 43 |ntryTime|, DebugC|
|00001720| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00001730| 09 09 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00001740| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00001750| 20 52 61 6e 67 65 41 63 | 74 6f 72 2c 20 22 49 73 | RangeAc|tor, "Is|
|00001760| 49 6e 52 61 6e 67 65 20 | 52 61 6e 67 65 41 63 74 |InRange |RangeAct|
|00001770| 6f 72 2e 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 |or.Level|.TimeSec|
|00001780| 6f 6e 64 73 20 22 20 24 | 20 52 61 6e 67 65 41 63 |onds " $| RangeAc|
|00001790| 74 6f 72 2e 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |tor.Leve|l.TimeSe|
|000017a0| 63 6f 6e 64 73 2c 20 44 | 65 62 75 67 43 61 74 65 |conds, D|ebugCate|
|000017b0| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 0d 0a 09 |goryName| );.....|
|000017c0| 09 09 2f 2f 74 68 65 20 | 61 63 74 6f 72 20 69 73 |..//the |actor is|
|000017d0| 20 69 6e 20 74 68 65 20 | 61 73 73 6f 63 69 61 74 | in the |associat|
|000017e0| 65 64 20 73 74 61 74 65 | 20 6f 66 20 74 68 69 73 |ed state| of this|
|000017f0| 20 72 61 6e 67 65 0d 0a | 09 09 09 2f 2f 74 68 65 | range..|...//the|
|00001800| 20 67 6f 61 6c 20 69 73 | 20 69 6e 20 72 61 6e 67 | goal is| in rang|
|00001810| 65 20 69 66 20 74 68 65 | 20 72 61 6e 67 65 20 68 |e if the| range h|
|00001820| 61 73 20 6e 6f 74 20 62 | 65 65 6e 20 6f 63 63 75 |as not b|een occu|
|00001830| 70 69 65 64 20 66 6f 72 | 20 74 6f 20 6c 6f 6e 67 |pied for| to long|
|00001840| 0d 0a 09 09 09 62 50 61 | 73 73 65 64 54 69 6d 65 |.....bPa|ssedTime|
|00001850| 41 6e 64 45 6e 74 72 79 | 43 6f 6e 73 74 72 61 69 |AndEntry|Constrai|
|00001860| 6e 74 73 20 3d 20 28 20 | 52 61 6e 67 65 41 63 74 |nts = ( |RangeAct|
|00001870| 6f 72 2e 4c 65 76 65 6c | 2e 62 53 74 61 72 74 55 |or.Level|.bStartU|
|00001880| 70 20 7c 7c 0d 0a 09 09 | 09 09 09 28 20 28 20 52 |p ||....|...( ( R|
|00001890| 61 6e 67 65 41 63 74 6f | 72 2e 4c 65 76 65 6c 2e |angeActo|r.Level.|
|000018a0| 54 69 6d 65 53 65 63 6f | 6e 64 73 20 2d 20 45 6e |TimeSeco|nds - En|
|000018b0| 74 72 79 54 69 6d 65 20 | 29 20 3c 3d 20 54 65 6d |tryTime |) <= Tem|
|000018c0| 70 6c 61 74 65 2e 48 54 | 5f 4d 61 78 44 75 72 61 |plate.HT|_MaxDura|
|000018d0| 74 69 6f 6e 20 29 20 29 | 3b 0d 0a 09 09 7d 0d 0a |tion ) )|;....}..|
|000018e0| 09 09 65 6c 73 65 0d 0a | 09 09 7b 0d 0a 09 09 09 |..else..|..{.....|
|000018f0| 63 6c 61 73 73 27 44 65 | 62 75 67 27 2e 73 74 61 |class'De|bug'.sta|
|00001900| 74 69 63 2e 44 65 62 75 | 67 4c 6f 67 28 20 52 61 |tic.Debu|gLog( Ra|
|00001910| 6e 67 65 41 63 74 6f 72 | 2c 20 22 49 73 49 6e 52 |ngeActor|, "IsInR|
|00001920| 61 6e 67 65 20 32 22 2c | 20 44 65 62 75 67 43 61 |ange 2",| DebugCa|
|00001930| 74 65 67 6f 72 79 4e 61 | 6d 65 20 29 3b 0d 0a 09 |tegoryNa|me );...|
|00001940| 09 09 2f 2f 74 68 65 20 | 61 63 74 6f 72 20 69 73 |..//the |actor is|
|00001950| 20 6e 6f 74 20 69 6e 20 | 74 68 65 20 61 73 73 6f | not in |the asso|
|00001960| 63 69 61 74 65 64 20 73 | 74 61 74 65 20 6f 66 20 |ciated s|tate of |
|00001970| 74 68 69 73 20 72 61 6e | 67 65 0d 0a 09 09 09 2f |this ran|ge...../|
|00001980| 2f 74 68 65 20 67 6f 61 | 6c 20 69 73 20 69 6e 20 |/the goa|l is in |
|00001990| 72 61 6e 67 65 20 69 66 | 20 74 68 65 20 61 63 74 |range if| the act|
|000019a0| 6f 72 20 63 61 6e 20 65 | 6e 74 65 72 20 74 68 65 |or can e|nter the|
|000019b0| 20 72 61 6e 67 65 0d 0a | 09 09 09 62 50 61 73 73 | range..|...bPass|
|000019c0| 65 64 54 69 6d 65 41 6e | 64 45 6e 74 72 79 43 6f |edTimeAn|dEntryCo|
|000019d0| 6e 73 74 72 61 69 6e 74 | 73 20 3d 20 43 61 6e 41 |nstraint|s = CanA|
|000019e0| 63 74 6f 72 45 6e 74 65 | 72 52 61 6e 67 65 28 20 |ctorEnte|rRange( |
|000019f0| 52 61 6e 67 65 41 63 74 | 6f 72 20 29 3b 0d 0a 09 |RangeAct|or );...|
|00001a00| 09 7d 0d 0a 0d 0a 09 09 | 69 66 28 20 62 50 61 73 |.}......|if( bPas|
|00001a10| 73 65 64 54 69 6d 65 41 | 6e 64 45 6e 74 72 79 43 |sedTimeA|ndEntryC|
|00001a20| 6f 6e 73 74 72 61 69 6e | 74 73 20 29 0d 0a 09 09 |onstrain|ts )....|
|00001a30| 7b 0d 0a 09 09 09 69 66 | 28 20 54 65 6d 70 6c 61 |{.....if|( Templa|
|00001a40| 74 65 2e 48 54 5f 4f 62 | 6a 49 6e 74 65 72 73 65 |te.HT_Ob|jInterse|
|00001a50| 63 74 52 65 71 20 21 3d | 20 4f 49 52 5f 49 72 72 |ctReq !=| OIR_Irr|
|00001a60| 65 6c 65 76 61 6e 74 20 | 29 0d 0a 09 09 09 7b 0d |elevant |).....{.|
|00001a70| 0a 09 09 09 09 2f 2f 74 | 68 69 73 20 72 61 6e 67 |.....//t|his rang|
|00001a80| 65 20 69 73 20 62 61 73 | 65 64 20 6f 6e 20 6f 62 |e is bas|ed on ob|
|00001a90| 6a 65 63 74 20 63 79 6c | 69 6e 64 65 72 20 69 6e |ject cyl|inder in|
|00001aa0| 74 65 72 73 65 63 74 69 | 6f 6e 73 0d 0a 09 09 09 |tersecti|ons.....|
|00001ab0| 09 69 66 28 20 44 6f 41 | 63 74 6f 72 41 6e 64 47 |.if( DoA|ctorAndG|
|00001ac0| 6f 61 6c 43 79 6c 69 6e | 64 65 72 73 54 6f 75 63 |oalCylin|dersTouc|
|00001ad0| 68 28 20 52 61 6e 67 65 | 41 63 74 6f 72 2c 20 47 |h( Range|Actor, G|
|00001ae0| 6f 61 6c 2c 20 43 6f 6e | 73 74 72 61 69 6e 65 72 |oal, Con|strainer|
|00001af0| 20 29 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 | ) )....|..{.....|
|00001b00| 09 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|00001b10| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00001b20| 52 61 6e 67 65 41 63 74 | 6f 72 2c 20 22 49 73 49 |RangeAct|or, "IsI|
|00001b30| 6e 52 61 6e 67 65 20 33 | 22 2c 20 44 65 62 75 67 |nRange 3|", Debug|
|00001b40| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00001b50| 0a 09 09 09 09 09 2f 2f | 74 68 65 20 6f 62 6a 65 |......//|the obje|
|00001b60| 63 74 20 63 79 6c 69 6e | 64 65 72 73 20 69 6e 74 |ct cylin|ders int|
|00001b70| 65 72 73 65 63 74 0d 0a | 09 09 09 09 09 62 50 61 |ersect..|.....bPa|
|00001b80| 73 73 65 64 49 6e 74 65 | 72 73 65 63 74 69 6f 6e |ssedInte|rsection|
|00001b90| 43 6f 6e 73 74 72 61 69 | 6e 74 73 20 3d 20 28 20 |Constrai|nts = ( |
|00001ba0| 54 65 6d 70 6c 61 74 65 | 2e 48 54 5f 4f 62 6a 49 |Template|.HT_ObjI|
|00001bb0| 6e 74 65 72 73 65 63 74 | 52 65 71 20 3d 3d 20 4f |ntersect|Req == O|
|00001bc0| 49 52 5f 52 65 71 75 69 | 72 65 20 29 3b 0d 0a 09 |IR_Requi|re );...|
|00001bd0| 09 09 09 7d 0d 0a 09 09 | 09 09 65 6c 73 65 0d 0a |...}....|..else..|
|00001be0| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 63 6c 61 73 |....{...|....clas|
|00001bf0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00001c00| 44 65 62 75 67 4c 6f 67 | 28 20 52 61 6e 67 65 41 |DebugLog|( RangeA|
|00001c10| 63 74 6f 72 2c 20 22 49 | 73 49 6e 52 61 6e 67 65 |ctor, "I|sInRange|
|00001c20| 20 34 22 2c 20 44 65 62 | 75 67 43 61 74 65 67 6f | 4", Deb|ugCatego|
|00001c30| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 09 09 09 09 |ryName )|;.......|
|00001c40| 2f 2f 74 68 65 20 6f 62 | 6a 65 63 74 20 63 79 6c |//the ob|ject cyl|
|00001c50| 69 6e 64 65 72 73 20 64 | 6f 20 6e 6f 74 20 69 6e |inders d|o not in|
|00001c60| 74 65 72 73 65 63 74 0d | 0a 09 09 09 09 09 62 50 |tersect.|......bP|
|00001c70| 61 73 73 65 64 49 6e 74 | 65 72 73 65 63 74 69 6f |assedInt|ersectio|
|00001c80| 6e 43 6f 6e 73 74 72 61 | 69 6e 74 73 20 3d 20 28 |nConstra|ints = (|
|00001c90| 20 54 65 6d 70 6c 61 74 | 65 2e 48 54 5f 4f 62 6a | Templat|e.HT_Obj|
|00001ca0| 49 6e 74 65 72 73 65 63 | 74 52 65 71 20 3d 3d 20 |Intersec|tReq == |
|00001cb0| 4f 49 52 5f 46 6f 72 62 | 69 64 20 29 3b 0d 0a 09 |OIR_Forb|id );...|
|00001cc0| 09 09 09 7d 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 65 |...}....|.}.....e|
|00001cd0| 6c 73 65 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 63 |lse.....|{......c|
|00001ce0| 6c 61 73 73 27 44 65 62 | 75 67 27 2e 73 74 61 74 |lass'Deb|ug'.stat|
|00001cf0| 69 63 2e 44 65 62 75 67 | 4c 6f 67 28 20 52 61 6e |ic.Debug|Log( Ran|
|00001d00| 67 65 41 63 74 6f 72 2c | 20 22 49 73 49 6e 52 61 |geActor,| "IsInRa|
|00001d10| 6e 67 65 20 35 22 2c 20 | 44 65 62 75 67 43 61 74 |nge 5", |DebugCat|
|00001d20| 65 67 6f 72 79 4e 61 6d | 65 20 29 3b 0d 0a 09 09 |egoryNam|e );....|
|00001d30| 09 09 2f 2f 74 68 69 73 | 20 72 61 6e 67 65 20 69 |..//this| range i|
|00001d40| 73 20 6e 6f 74 20 62 61 | 73 65 64 20 6f 6e 20 6f |s not ba|sed on o|
|00001d50| 62 6a 65 63 74 20 63 79 | 6c 69 6e 64 65 72 20 69 |bject cy|linder i|
|00001d60| 6e 74 65 72 73 65 63 74 | 69 6f 6e 73 0d 0a 09 09 |ntersect|ions....|
|00001d70| 09 09 62 50 61 73 73 65 | 64 49 6e 74 65 72 73 65 |..bPasse|dInterse|
|00001d80| 63 74 69 6f 6e 43 6f 6e | 73 74 72 61 69 6e 74 73 |ctionCon|straints|
|00001d90| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a | = true;|.....}..|
|00001da0| 09 09 7d 0d 0a 09 09 62 | 49 6e 52 61 6e 67 65 20 |..}....b|InRange |
|00001db0| 3d 20 62 50 61 73 73 65 | 64 54 69 6d 65 41 6e 64 |= bPasse|dTimeAnd|
|00001dc0| 45 6e 74 72 79 43 6f 6e | 73 74 72 61 69 6e 74 73 |EntryCon|straints|
|00001dd0| 20 26 26 20 62 50 61 73 | 73 65 64 49 6e 74 65 72 | && bPas|sedInter|
|00001de0| 73 65 63 74 69 6f 6e 43 | 6f 6e 73 74 72 61 69 6e |sectionC|onstrain|
|00001df0| 74 73 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 63 6c 61 73 |ts;...}.|....clas|
|00001e00| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00001e10| 44 65 62 75 67 4c 6f 67 | 28 20 52 61 6e 67 65 41 |DebugLog|( RangeA|
|00001e20| 63 74 6f 72 2c 20 22 49 | 73 49 6e 52 61 6e 67 65 |ctor, "I|sInRange|
|00001e30| 20 62 50 61 73 73 65 64 | 54 69 6d 65 41 6e 64 45 | bPassed|TimeAndE|
|00001e40| 6e 74 72 79 43 6f 6e 73 | 74 72 61 69 6e 74 73 20 |ntryCons|traints |
|00001e50| 20 22 20 24 20 62 50 61 | 73 73 65 64 54 69 6d 65 | " $ bPa|ssedTime|
|00001e60| 41 6e 64 45 6e 74 72 79 | 43 6f 6e 73 74 72 61 69 |AndEntry|Constrai|
|00001e70| 6e 74 73 2c 20 44 65 62 | 75 67 43 61 74 65 67 6f |nts, Deb|ugCatego|
|00001e80| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 63 6c 61 73 |ryName )|;...clas|
|00001e90| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00001ea0| 44 65 62 75 67 4c 6f 67 | 28 20 52 61 6e 67 65 41 |DebugLog|( RangeA|
|00001eb0| 63 74 6f 72 2c 20 22 49 | 73 49 6e 52 61 6e 67 65 |ctor, "I|sInRange|
|00001ec0| 20 62 50 61 73 73 65 64 | 49 6e 74 65 72 73 65 63 | bPassed|Intersec|
|00001ed0| 74 69 6f 6e 43 6f 6e 73 | 74 72 61 69 6e 74 73 20 |tionCons|traints |
|00001ee0| 22 20 24 20 62 50 61 73 | 73 65 64 49 6e 74 65 72 |" $ bPas|sedInter|
|00001ef0| 73 65 63 74 69 6f 6e 43 | 6f 6e 73 74 72 61 69 6e |sectionC|onstrain|
|00001f00| 74 73 2c 20 44 65 62 75 | 67 43 61 74 65 67 6f 72 |ts, Debu|gCategor|
|00001f10| 79 4e 61 6d 65 20 29 3b | 0d 0a 09 63 6c 61 73 73 |yName );|...class|
|00001f20| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00001f30| 65 62 75 67 4c 6f 67 28 | 20 52 61 6e 67 65 41 63 |ebugLog(| RangeAc|
|00001f40| 74 6f 72 2c 20 22 49 73 | 49 6e 52 61 6e 67 65 20 |tor, "Is|InRange |
|00001f50| 72 65 74 75 72 6e 69 6e | 67 20 22 20 24 20 62 49 |returnin|g " $ bI|
|00001f60| 6e 52 61 6e 67 65 2c 20 | 44 65 62 75 67 43 61 74 |nRange, |DebugCat|
|00001f70| 65 67 6f 72 79 4e 61 6d | 65 20 29 3b 0d 0a 09 72 |egoryNam|e );...r|
|00001f80| 65 74 75 72 6e 20 62 49 | 6e 52 61 6e 67 65 3b 0d |eturn bI|nRange;.|
|00001f90| 0a 7d 0d 0a 0d 0a 0d 0a | 0d 0a 66 75 6e 63 74 69 |.}......|..functi|
|00001fa0| 6f 6e 20 62 6f 6f 6c 20 | 49 73 56 61 6c 69 64 41 |on bool |IsValidA|
|00001fb0| 73 4e 65 78 74 52 61 6e | 67 65 28 20 41 63 74 6f |sNextRan|ge( Acto|
|00001fc0| 72 20 52 61 6e 67 65 41 | 63 74 6f 72 2c 20 42 65 |r RangeA|ctor, Be|
|00001fd0| 68 61 76 69 6f 72 43 6f | 6e 73 74 72 61 69 6e 65 |haviorCo|nstraine|
|00001fe0| 72 20 43 6f 6e 73 74 72 | 61 69 6e 65 72 2c 20 47 |r Constr|ainer, G|
|00001ff0| 6f 61 6c 41 62 73 74 72 | 61 63 74 65 72 49 6e 74 |oalAbstr|acterInt|
|00002000| 65 72 66 20 47 6f 61 6c | 20 29 0d 0a 7b 0d 0a 09 |erf Goal| )..{...|
|00002010| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 56 61 6c 69 |local bo|ol bVali|
|00002020| 64 41 73 4e 65 78 74 52 | 61 6e 67 65 3b 0d 0a 09 |dAsNextR|ange;...|
|00002030| 0d 0a 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00002040| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00002050| 20 52 61 6e 67 65 41 63 | 74 6f 72 2c 20 22 49 73 | RangeAc|tor, "Is|
|00002060| 56 61 6c 69 64 41 73 4e | 65 78 74 52 61 6e 67 65 |ValidAsN|extRange|
|00002070| 20 48 54 5f 4e 61 6d 65 | 20 22 20 24 20 54 65 6d | HT_Name| " $ Tem|
|00002080| 70 6c 61 74 65 2e 48 54 | 5f 4e 61 6d 65 2c 20 44 |plate.HT|_Name, D|
|00002090| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|000020a0| 20 29 3b 0d 0a 09 69 66 | 28 20 49 73 49 6e 52 61 | );...if|( IsInRa|
|000020b0| 6e 67 65 28 20 52 61 6e | 67 65 41 63 74 6f 72 2c |nge( Ran|geActor,|
|000020c0| 20 43 6f 6e 73 74 72 61 | 69 6e 65 72 2c 20 47 6f | Constra|iner, Go|
|000020d0| 61 6c 20 29 20 29 0d 0a | 09 7b 0d 0a 09 09 62 56 |al ) )..|.{....bV|
|000020e0| 61 6c 69 64 41 73 4e 65 | 78 74 52 61 6e 67 65 20 |alidAsNe|xtRange |
|000020f0| 3d 20 43 61 6e 41 63 74 | 6f 72 45 6e 74 65 72 52 |= CanAct|orEnterR|
|00002100| 61 6e 67 65 28 20 52 61 | 6e 67 65 41 63 74 6f 72 |ange( Ra|ngeActor|
|00002110| 20 29 3b 0d 0a 09 7d 0d | 0a 09 0d 0a 09 63 6c 61 | );...}.|.....cla|
|00002120| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|00002130| 2e 44 65 62 75 67 4c 6f | 67 28 20 52 61 6e 67 65 |.DebugLo|g( Range|
|00002140| 41 63 74 6f 72 2c 20 22 | 49 73 56 61 6c 69 64 41 |Actor, "|IsValidA|
|00002150| 73 4e 65 78 74 52 61 6e | 67 65 20 72 65 74 75 72 |sNextRan|ge retur|
|00002160| 6e 69 6e 67 20 22 20 24 | 20 62 56 61 6c 69 64 41 |ning " $| bValidA|
|00002170| 73 4e 65 78 74 52 61 6e | 67 65 2c 20 44 65 62 75 |sNextRan|ge, Debu|
|00002180| 67 43 61 74 65 67 6f 72 | 79 4e 61 6d 65 20 29 3b |gCategor|yName );|
|00002190| 0d 0a 09 72 65 74 75 72 | 6e 20 62 56 61 6c 69 64 |...retur|n bValid|
|000021a0| 41 73 4e 65 78 74 52 61 | 6e 67 65 3b 0d 0a 7d 0d |AsNextRa|nge;..}.|
|000021b0| 0a 0d 0a 0d 0a 0d 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |......./|/=======|
|000021c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000021d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000021e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000021f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002200| 3d 3d 3d 3d 3d 3d 0d 0a | 2f 2f 20 70 72 69 76 61 |======..|// priva|
|00002210| 74 65 20 69 6e 74 65 72 | 66 61 63 65 0d 0a 2f 2f |te inter|face..//|
|00002220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0a 0d |========|=====...|
|00002270| 0a 0d 0a 0d 0a 2f 2f 44 | 79 6e 61 6d 69 63 20 63 |.....//D|ynamic c|
|00002280| 79 6c 69 6e 64 65 72 20 | 65 78 74 65 6e 73 69 6f |ylinder |extensio|
|00002290| 6e 73 20 61 72 65 20 63 | 6f 6d 70 75 74 65 64 20 |ns are c|omputed |
|000022a0| 64 79 6e 61 6d 69 63 61 | 6c 6c 79 20 77 68 65 6e |dynamica|lly when|
|000022b0| 65 76 65 72 0d 0a 2f 2f | 47 65 74 44 79 6e 61 6d |ever..//|GetDynam|
|000022c0| 69 63 43 79 6c 69 6e 64 | 65 72 45 78 74 65 6e 73 |icCylind|erExtens|
|000022d0| 69 6f 6e 73 20 69 73 20 | 63 61 6c 6c 65 64 2e 20 |ions is |called. |
|000022e0| 54 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |The retu|rn value|
|000022f0| 73 20 61 72 65 0d 0a 2f | 2f 62 61 73 65 64 20 65 |s are../|/based e|
|00002300| 6e 74 69 72 65 6c 79 20 | 6f 6e 20 74 68 65 20 69 |ntirely |on the i|
|00002310| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00002320| 20 74 68 65 20 64 65 72 | 69 76 65 64 20 72 61 6e | the der|ived ran|
|00002330| 67 65 0d 0a 2f 2f 68 61 | 6e 64 6c 65 72 20 63 6c |ge..//ha|ndler cl|
|00002340| 61 73 73 2e 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 47 |ass...fu|nction G|
|00002350| 65 74 44 79 6e 61 6d 69 | 63 43 79 6c 69 6e 64 65 |etDynami|cCylinde|
|00002360| 72 45 78 74 65 6e 73 69 | 6f 6e 28 20 6f 75 74 20 |rExtensi|on( out |
|00002370| 66 6c 6f 61 74 20 52 61 | 64 69 75 73 45 78 74 65 |float Ra|diusExte|
|00002380| 6e 73 69 6f 6e 2c 0d 0a | 09 09 6f 75 74 20 66 6c |nsion,..|..out fl|
|00002390| 6f 61 74 20 48 65 69 67 | 68 74 45 78 74 65 6e 73 |oat Heig|htExtens|
|000023a0| 69 6f 6e 2c 0d 0a 09 09 | 41 63 74 6f 72 20 52 61 |ion,....|Actor Ra|
|000023b0| 6e 67 65 41 63 74 6f 72 | 2c 0d 0a 09 09 42 65 68 |ngeActor|,....Beh|
|000023c0| 61 76 69 6f 72 43 6f 6e | 73 74 72 61 69 6e 65 72 |aviorCon|strainer|
|000023d0| 20 43 6f 6e 73 74 72 61 | 69 6e 65 72 2c 0d 0a 09 | Constra|iner,...|
|000023e0| 09 47 6f 61 6c 41 62 73 | 74 72 61 63 74 65 72 49 |.GoalAbs|tracterI|
|000023f0| 6e 74 65 72 66 20 47 6f | 61 6c 20 29 0d 0a 7b 0d |nterf Go|al )..{.|
|00002400| 0a 09 52 61 64 69 75 73 | 45 78 74 65 6e 73 69 6f |..Radius|Extensio|
|00002410| 6e 20 3d 20 30 3b 0d 0a | 09 48 65 69 67 68 74 45 |n = 0;..|.HeightE|
|00002420| 78 74 65 6e 73 69 6f 6e | 09 3d 20 30 3b 0d 0a 7d |xtension|.= 0;..}|
|00002430| 0d 0a 0d 0a 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |........|function|
|00002440| 20 62 6f 6f 6c 20 43 61 | 6e 41 63 74 6f 72 45 6e | bool Ca|nActorEn|
|00002450| 74 65 72 52 61 6e 67 65 | 28 20 41 63 74 6f 72 20 |terRange|( Actor |
|00002460| 45 6e 74 65 72 69 6e 67 | 41 63 74 6f 72 20 29 0d |Entering|Actor ).|
|00002470| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 62 6f 6f 6c 20 |.{...loc|al bool |
|00002480| 62 43 61 6e 45 6e 74 65 | 72 52 61 6e 67 65 3b 0d |bCanEnte|rRange;.|
|00002490| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 43 75 |..local |float Cu|
|000024a0| 72 72 65 6e 74 44 75 72 | 61 74 69 6f 6e 3b 0d 0a |rrentDur|ation;..|
|000024b0| 09 0d 0a 09 63 6c 61 73 | 73 27 44 65 62 75 67 27 |....clas|s'Debug'|
|000024c0| 2e 73 74 61 74 69 63 2e | 44 65 62 75 67 4c 6f 67 |.static.|DebugLog|
|000024d0| 28 20 45 6e 74 65 72 69 | 6e 67 41 63 74 6f 72 2c |( Enteri|ngActor,|
|000024e0| 20 22 43 61 6e 41 63 74 | 6f 72 45 6e 74 65 72 52 | "CanAct|orEnterR|
|000024f0| 61 6e 67 65 20 48 54 5f | 4e 61 6d 65 20 22 20 24 |ange HT_|Name " $|
|00002500| 20 54 65 6d 70 6c 61 74 | 65 2e 48 54 5f 4e 61 6d | Templat|e.HT_Nam|
|00002510| 65 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |e, Debug|Category|
|00002520| 4e 61 6d 65 20 29 3b 0d | 0a 09 69 66 28 20 21 45 |Name );.|..if( !E|
|00002530| 6e 74 65 72 69 6e 67 41 | 63 74 6f 72 2e 4c 65 76 |nteringA|ctor.Lev|
|00002540| 65 6c 2e 62 53 74 61 72 | 74 55 70 20 29 0d 0a 09 |el.bStar|tUp )...|
|00002550| 7b 0d 0a 09 09 43 75 72 | 72 65 6e 74 44 75 72 61 |{....Cur|rentDura|
|00002560| 74 69 6f 6e 20 3d 20 45 | 6e 74 65 72 69 6e 67 41 |tion = E|nteringA|
|00002570| 63 74 6f 72 2e 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |ctor.Lev|el.TimeS|
|00002580| 65 63 6f 6e 64 73 20 2d | 20 45 6e 74 72 79 54 69 |econds -| EntryTi|
|00002590| 6d 65 3b 0d 0a 09 7d 0d | 0a 09 0d 0a 09 69 66 28 |me;...}.|.....if(|
|000025a0| 20 45 6e 74 72 79 54 69 | 6d 65 20 3d 3d 20 30 20 | EntryTi|me == 0 |
|000025b0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 74 68 65 20 72 |)...{...|.//the r|
|000025c0| 61 6e 67 65 20 68 61 73 | 20 6e 65 76 65 72 20 62 |ange has| never b|
|000025d0| 65 65 6e 20 65 6e 74 65 | 72 65 64 20 62 65 66 6f |een ente|red befo|
|000025e0| 72 65 0d 0a 09 09 62 43 | 61 6e 45 6e 74 65 72 52 |re....bC|anEnterR|
|000025f0| 61 6e 67 65 20 3d 20 74 | 72 75 65 3b 0d 0a 09 7d |ange = t|rue;...}|
|00002600| 0d 0a 09 65 6c 73 65 20 | 69 66 28 20 43 75 72 72 |...else |if( Curr|
|00002610| 65 6e 74 44 75 72 61 74 | 69 6f 6e 20 3c 20 54 65 |entDurat|ion < Te|
|00002620| 6d 70 6c 61 74 65 2e 48 | 54 5f 4d 69 6e 45 6e 74 |mplate.H|T_MinEnt|
|00002630| 72 79 49 6e 74 65 72 76 | 61 6c 20 29 0d 0a 09 7b |ryInterv|al )...{|
|00002640| 0d 0a 09 09 2f 2f 74 68 | 69 73 20 72 61 6e 67 65 |....//th|is range|
|00002650| 20 68 61 73 20 62 65 65 | 6e 20 65 6e 74 65 72 65 | has bee|n entere|
|00002660| 64 20 62 65 66 6f 72 65 | 0d 0a 09 09 2f 2f 62 75 |d before|....//bu|
|00002670| 74 2c 20 69 74 20 69 73 | 20 74 6f 20 65 61 72 6c |t, it is| to earl|
|00002680| 79 20 74 6f 20 65 6e 74 | 65 72 20 74 68 65 20 72 |y to ent|er the r|
|00002690| 61 6e 67 65 20 61 67 61 | 69 6e 0d 0a 09 09 63 6c |ange aga|in....cl|
|000026a0| 61 73 73 27 44 65 62 75 | 67 27 2e 73 74 61 74 69 |ass'Debu|g'.stati|
|000026b0| 63 2e 44 65 62 75 67 4c | 6f 67 28 20 45 6e 74 65 |c.DebugL|og( Ente|
|000026c0| 72 69 6e 67 41 63 74 6f | 72 2c 20 22 09 48 54 5f |ringActo|r, ".HT_|
|000026d0| 4d 69 6e 45 6e 74 72 79 | 49 6e 74 65 72 76 61 6c |MinEntry|Interval|
|000026e0| 3a 20 22 20 24 20 54 65 | 6d 70 6c 61 74 65 2e 48 |: " $ Te|mplate.H|
|000026f0| 54 5f 4d 69 6e 45 6e 74 | 72 79 49 6e 74 65 72 76 |T_MinEnt|ryInterv|
|00002700| 61 6c 2c 20 44 65 62 75 | 67 43 61 74 65 67 6f 72 |al, Debu|gCategor|
|00002710| 79 4e 61 6d 65 20 29 3b | 0d 0a 09 09 63 6c 61 73 |yName );|....clas|
|00002720| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00002730| 44 65 62 75 67 4c 6f 67 | 28 20 45 6e 74 65 72 69 |DebugLog|( Enteri|
|00002740| 6e 67 41 63 74 6f 72 2c | 20 22 09 43 75 72 72 65 |ngActor,| ".Curre|
|00002750| 6e 74 44 75 72 61 74 69 | 6f 6e 3a 20 22 20 24 20 |ntDurati|on: " $ |
|00002760| 43 75 72 72 65 6e 74 44 | 75 72 61 74 69 6f 6e 2c |CurrentD|uration,|
|00002770| 20 44 65 62 75 67 43 61 | 74 65 67 6f 72 79 4e 61 | DebugCa|tegoryNa|
|00002780| 6d 65 20 29 3b 0d 0a 09 | 09 63 6c 61 73 73 27 44 |me );...|.class'D|
|00002790| 65 62 75 67 27 2e 73 74 | 61 74 69 63 2e 44 65 62 |ebug'.st|atic.Deb|
|000027a0| 75 67 4c 6f 67 28 20 45 | 6e 74 65 72 69 6e 67 41 |ugLog( E|nteringA|
|000027b0| 63 74 6f 72 2c 20 22 09 | 45 6e 74 72 79 54 69 6d |ctor, ".|EntryTim|
|000027c0| 65 3a 20 22 20 24 20 45 | 6e 74 72 79 54 69 6d 65 |e: " $ E|ntryTime|
|000027d0| 2c 20 44 65 62 75 67 43 | 61 74 65 67 6f 72 79 4e |, DebugC|ategoryN|
|000027e0| 61 6d 65 20 29 3b 0d 0a | 09 09 63 6c 61 73 73 27 |ame );..|..class'|
|000027f0| 44 65 62 75 67 27 2e 73 | 74 61 74 69 63 2e 44 65 |Debug'.s|tatic.De|
|00002800| 62 75 67 4c 6f 67 28 20 | 45 6e 74 65 72 69 6e 67 |bugLog( |Entering|
|00002810| 41 63 74 6f 72 2c 20 22 | 09 45 6e 74 65 72 69 6e |Actor, "|.Enterin|
|00002820| 67 41 63 74 6f 72 2e 4c | 65 76 65 6c 2e 54 69 6d |gActor.L|evel.Tim|
|00002830| 65 53 65 63 6f 6e 64 73 | 3a 20 22 20 24 20 45 6e |eSeconds|: " $ En|
|00002840| 74 65 72 69 6e 67 41 63 | 74 6f 72 2e 4c 65 76 65 |teringAc|tor.Leve|
|00002850| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 2c 20 44 |l.TimeSe|conds, D|
|00002860| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00002870| 20 29 3b 0d 0a 09 09 62 | 43 61 6e 45 6e 74 65 72 | );....b|CanEnter|
|00002880| 52 61 6e 67 65 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Range = |false;..|
|00002890| 09 7d 0d 0a 09 65 6c 73 | 65 20 69 66 28 20 45 6e |.}...els|e if( En|
|000028a0| 74 65 72 69 6e 67 41 63 | 74 6f 72 2e 47 65 74 53 |teringAc|tor.GetS|
|000028b0| 74 61 74 65 4e 61 6d 65 | 28 29 20 21 3d 20 54 65 |tateName|() != Te|
|000028c0| 6d 70 6c 61 74 65 2e 48 | 54 5f 41 73 73 6f 63 69 |mplate.H|T_Associ|
|000028d0| 61 74 65 64 53 74 61 74 | 65 20 29 0d 0a 09 7b 0d |atedStat|e )...{.|
|000028e0| 0a 09 09 2f 2f 74 68 69 | 73 20 72 61 6e 67 65 20 |...//thi|s range |
|000028f0| 68 61 73 20 62 65 65 6e | 20 65 6e 74 65 72 65 64 |has been| entered|
|00002900| 20 62 65 66 6f 72 65 0d | 0a 09 09 2f 2f 69 74 20 | before.|...//it |
|00002910| 69 73 20 6e 6f 74 20 74 | 6f 20 65 61 72 6c 79 20 |is not t|o early |
|00002920| 74 6f 20 65 6e 74 65 72 | 20 74 68 65 20 72 61 6e |to enter| the ran|
|00002930| 67 65 20 61 67 61 69 6e | 0d 0a 09 09 2f 2f 74 68 |ge again|....//th|
|00002940| 65 20 61 63 74 6f 72 20 | 69 73 20 6e 6f 74 20 69 |e actor |is not i|
|00002950| 6e 20 74 68 65 20 61 73 | 73 6f 63 69 61 74 65 64 |n the as|sociated|
|00002960| 20 73 74 61 74 65 20 6f | 66 20 74 68 69 73 20 72 | state o|f this r|
|00002970| 61 6e 67 65 0d 0a 09 09 | 62 43 61 6e 45 6e 74 65 |ange....|bCanEnte|
|00002980| 72 52 61 6e 67 65 20 3d | 20 74 72 75 65 3b 0d 0a |rRange =| true;..|
|00002990| 09 7d 0d 0a 09 65 6c 73 | 65 20 69 66 28 20 21 54 |.}...els|e if( !T|
|000029a0| 65 6d 70 6c 61 74 65 2e | 48 54 5f 62 52 65 65 6e |emplate.|HT_bReen|
|000029b0| 74 72 61 6e 74 20 29 0d | 0a 09 7b 0d 0a 09 09 2f |trant ).|..{..../|
|000029c0| 2f 74 68 69 73 20 72 61 | 6e 67 65 20 68 61 73 20 |/this ra|nge has |
|000029d0| 62 65 65 6e 20 65 6e 74 | 65 72 65 64 20 62 65 66 |been ent|ered bef|
|000029e0| 6f 72 65 0d 0a 09 09 2f | 2f 69 74 20 69 73 20 6e |ore..../|/it is n|
|000029f0| 6f 74 20 74 6f 20 65 61 | 72 6c 79 20 74 6f 20 65 |ot to ea|rly to e|
|00002a00| 6e 74 65 72 20 74 68 65 | 20 72 61 6e 67 65 20 61 |nter the| range a|
|00002a10| 67 61 69 6e 0d 0a 09 09 | 2f 2f 74 68 65 20 61 63 |gain....|//the ac|
|00002a20| 74 6f 72 20 69 73 20 69 | 6e 20 74 68 65 20 61 73 |tor is i|n the as|
|00002a30| 73 6f 63 69 61 74 65 64 | 20 73 74 61 74 65 20 6f |sociated| state o|
|00002a40| 66 20 74 68 69 73 20 72 | 61 6e 67 65 0d 0a 09 09 |f this r|ange....|
|00002a50| 2f 2f 62 75 74 2c 20 74 | 68 65 20 72 61 6e 67 65 |//but, t|he range|
|00002a60| 20 69 73 20 6e 6f 74 20 | 64 65 73 69 67 6e 61 74 | is not |designat|
|00002a70| 65 64 20 61 73 20 72 65 | 65 6e 74 72 61 6e 74 0d |ed as re|entrant.|
|00002a80| 0a 09 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00002a90| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00002aa0| 20 45 6e 74 65 72 69 6e | 67 41 63 74 6f 72 2c 20 | Enterin|gActor, |
|00002ab0| 22 09 61 74 74 65 6d 70 | 74 69 6e 67 20 74 6f 20 |".attemp|ting to |
|00002ac0| 72 65 65 6e 74 65 72 20 | 69 6e 74 6f 20 6e 6f 6e |reenter |into non|
|00002ad0| 20 72 65 65 6e 74 72 61 | 6e 74 20 72 61 6e 67 65 | reentra|nt range|
|00002ae0| 22 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |", Debug|Category|
|00002af0| 4e 61 6d 65 20 29 3b 0d | 0a 09 09 62 43 61 6e 45 |Name );.|...bCanE|
|00002b00| 6e 74 65 72 52 61 6e 67 | 65 20 3d 20 66 61 6c 73 |nterRang|e = fals|
|00002b10| 65 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 20 69 66 |e;...}..|.else if|
|00002b20| 28 20 54 65 6d 70 6c 61 | 74 65 2e 48 54 5f 62 44 |( Templa|te.HT_bD|
|00002b30| 75 72 61 74 69 6f 6e 43 | 6f 6e 73 74 72 61 69 6e |urationC|onstrain|
|00002b40| 65 64 20 26 26 20 28 20 | 43 75 72 72 65 6e 74 44 |ed && ( |CurrentD|
|00002b50| 75 72 61 74 69 6f 6e 20 | 3e 20 54 65 6d 70 6c 61 |uration |> Templa|
|00002b60| 74 65 2e 48 54 5f 4d 61 | 78 44 75 72 61 74 69 6f |te.HT_Ma|xDuratio|
|00002b70| 6e 20 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 74 |n ) )...|{....//t|
|00002b80| 68 69 73 20 72 61 6e 67 | 65 20 68 61 73 20 62 65 |his rang|e has be|
|00002b90| 65 6e 20 65 6e 74 65 72 | 65 64 20 62 65 66 6f 72 |en enter|ed befor|
|00002ba0| 65 0d 0a 09 09 2f 2f 69 | 74 20 69 73 20 6e 6f 74 |e....//i|t is not|
|00002bb0| 20 74 6f 20 65 61 72 6c | 79 20 74 6f 20 65 6e 74 | to earl|y to ent|
|00002bc0| 65 72 20 74 68 65 20 72 | 61 6e 67 65 20 61 67 61 |er the r|ange aga|
|00002bd0| 69 6e 0d 0a 09 09 2f 2f | 74 68 65 20 61 63 74 6f |in....//|the acto|
|00002be0| 72 20 69 73 20 69 6e 20 | 74 68 65 20 61 73 73 6f |r is in |the asso|
|00002bf0| 63 69 61 74 65 64 20 73 | 74 61 74 65 20 6f 66 20 |ciated s|tate of |
|00002c00| 74 68 69 73 20 72 61 6e | 67 65 0d 0a 09 09 2f 2f |this ran|ge....//|
|00002c10| 74 68 65 20 72 61 6e 67 | 65 20 69 73 20 64 65 73 |the rang|e is des|
|00002c20| 69 67 6e 61 74 65 64 20 | 61 73 20 72 65 65 6e 74 |ignated |as reent|
|00002c30| 72 61 6e 74 0d 0a 09 09 | 2f 2f 62 75 74 2c 20 74 |rant....|//but, t|
|00002c40| 68 69 73 20 72 61 6e 67 | 65 20 68 61 73 20 62 65 |his rang|e has be|
|00002c50| 65 6e 20 6f 63 63 75 70 | 69 65 64 20 66 6f 72 20 |en occup|ied for |
|00002c60| 74 6f 20 6c 6f 6e 67 0d | 0a 09 09 63 6c 61 73 73 |to long.|...class|
|00002c70| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00002c80| 65 62 75 67 4c 6f 67 28 | 20 45 6e 74 65 72 69 6e |ebugLog(| Enterin|
|00002c90| 67 41 63 74 6f 72 2c 20 | 22 09 48 54 5f 4d 61 78 |gActor, |".HT_Max|
|00002ca0| 44 75 72 61 74 69 6f 6e | 3a 20 22 20 24 20 54 65 |Duration|: " $ Te|
|00002cb0| 6d 70 6c 61 74 65 2e 48 | 54 5f 4d 61 78 44 75 72 |mplate.H|T_MaxDur|
|00002cc0| 61 74 69 6f 6e 2c 20 44 | 65 62 75 67 43 61 74 65 |ation, D|ebugCate|
|00002cd0| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 09 09 62 |goryName| );....b|
|00002ce0| 43 61 6e 45 6e 74 65 72 | 52 61 6e 67 65 20 3d 20 |CanEnter|Range = |
|00002cf0| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |false;..|.}...els|
|00002d00| 65 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 74 68 69 73 20 |e...{...|.//this |
|00002d10| 72 61 6e 67 65 20 68 61 | 73 20 62 65 65 6e 20 65 |range ha|s been e|
|00002d20| 6e 74 65 72 65 64 20 62 | 65 66 6f 72 65 0d 0a 09 |ntered b|efore...|
|00002d30| 09 2f 2f 69 74 20 69 73 | 20 6e 6f 74 20 74 6f 20 |.//it is| not to |
|00002d40| 65 61 72 6c 79 20 74 6f | 20 65 6e 74 65 72 20 74 |early to| enter t|
|00002d50| 68 65 20 72 61 6e 67 65 | 20 61 67 61 69 6e 0d 0a |he range| again..|
|00002d60| 09 09 2f 2f 74 68 65 20 | 61 63 74 6f 72 20 69 73 |..//the |actor is|
|00002d70| 20 69 6e 20 74 68 65 20 | 61 73 73 6f 63 69 61 74 | in the |associat|
|00002d80| 65 64 20 73 74 61 74 65 | 20 6f 66 20 74 68 69 73 |ed state| of this|
|00002d90| 20 72 61 6e 67 65 0d 0a | 09 09 2f 2f 74 68 65 20 | range..|..//the |
|00002da0| 72 61 6e 67 65 20 69 73 | 20 64 65 73 69 67 6e 61 |range is| designa|
|00002db0| 74 65 64 20 61 73 20 72 | 65 65 6e 74 72 61 6e 74 |ted as r|eentrant|
|00002dc0| 0d 0a 09 09 2f 2f 61 6e | 64 2c 20 74 68 69 73 20 |....//an|d, this |
|00002dd0| 72 61 6e 67 65 20 68 61 | 73 20 6e 6f 74 20 62 65 |range ha|s not be|
|00002de0| 65 6e 20 6f 63 63 75 70 | 69 65 64 20 66 6f 72 20 |en occup|ied for |
|00002df0| 74 6f 20 6c 6f 6e 67 0d | 0a 09 09 62 43 61 6e 45 |to long.|...bCanE|
|00002e00| 6e 74 65 72 52 61 6e 67 | 65 20 3d 20 74 72 75 65 |nterRang|e = true|
|00002e10| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 63 6c 61 73 73 27 |;...}...|..class'|
|00002e20| 44 65 62 75 67 27 2e 73 | 74 61 74 69 63 2e 44 65 |Debug'.s|tatic.De|
|00002e30| 62 75 67 4c 6f 67 28 20 | 45 6e 74 65 72 69 6e 67 |bugLog( |Entering|
|00002e40| 41 63 74 6f 72 2c 20 22 | 43 61 6e 41 63 74 6f 72 |Actor, "|CanActor|
|00002e50| 45 6e 74 65 72 52 61 6e | 67 65 20 72 65 74 75 72 |EnterRan|ge retur|
|00002e60| 6e 69 6e 67 20 22 20 24 | 20 62 43 61 6e 45 6e 74 |ning " $| bCanEnt|
|00002e70| 65 72 52 61 6e 67 65 2c | 20 44 65 62 75 67 43 61 |erRange,| DebugCa|
|00002e80| 74 65 67 6f 72 79 4e 61 | 6d 65 20 29 3b 0d 0a 09 |tegoryNa|me );...|
|00002e90| 72 65 74 75 72 6e 20 62 | 43 61 6e 45 6e 74 65 72 |return b|CanEnter|
|00002ea0| 52 61 6e 67 65 3b 0d 0a | 7d 0d 0a 0d 0a 0d 0a 0d |Range;..|}.......|
|00002eb0| 0a 2f 2f 52 65 73 65 74 | 52 61 6e 67 65 45 6e 74 |.//Reset|RangeEnt|
|00002ec0| 72 79 54 69 6d 65 20 69 | 73 20 63 61 6c 6c 65 64 |ryTime i|s called|
|00002ed0| 20 62 79 20 54 72 61 6e | 73 69 74 69 6f 6e 54 6f | by Tran|sitionTo|
|00002ee0| 41 73 73 6f 63 69 61 74 | 65 64 53 74 61 74 65 20 |Associat|edState |
|00002ef0| 69 66 20 74 68 65 0d 0a | 2f 2f 73 74 61 74 65 20 |if the..|//state |
|00002f00| 62 65 69 6e 67 20 74 72 | 61 6e 73 69 74 69 6f 6e |being tr|ansition|
|00002f10| 65 64 20 74 6f 20 69 73 | 20 64 69 66 66 65 72 65 |ed to is| differe|
|00002f20| 6e 74 20 74 68 61 6e 20 | 74 68 65 20 73 74 61 74 |nt than |the stat|
|00002f30| 65 20 74 68 61 74 20 74 | 68 65 20 61 63 74 6f 72 |e that t|he actor|
|00002f40| 0d 0a 2f 2f 69 73 20 63 | 75 72 72 65 6e 74 6c 79 |..//is c|urrently|
|00002f50| 20 69 6e 0d 0a 66 75 6e | 63 74 69 6f 6e 20 52 65 | in..fun|ction Re|
|00002f60| 73 65 74 52 61 6e 67 65 | 45 6e 74 72 79 54 69 6d |setRange|EntryTim|
|00002f70| 65 28 20 41 63 74 6f 72 | 20 54 72 61 6e 73 69 74 |e( Actor| Transit|
|00002f80| 69 6f 6e 69 6e 67 41 63 | 74 6f 72 20 29 0d 0a 7b |ioningAc|tor )..{|
|00002f90| 0d 0a 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00002fa0| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00002fb0| 20 54 72 61 6e 73 69 74 | 69 6f 6e 69 6e 67 41 63 | Transit|ioningAc|
|00002fc0| 74 6f 72 2c 20 22 52 65 | 73 65 74 52 61 6e 67 65 |tor, "Re|setRange|
|00002fd0| 45 6e 74 72 79 54 69 6d | 65 22 2c 20 44 65 62 75 |EntryTim|e", Debu|
|00002fe0| 67 43 61 74 65 67 6f 72 | 79 4e 61 6d 65 20 29 3b |gCategor|yName );|
|00002ff0| 0d 0a 09 69 66 28 20 21 | 54 72 61 6e 73 69 74 69 |...if( !|Transiti|
|00003000| 6f 6e 69 6e 67 41 63 74 | 6f 72 2e 4c 65 76 65 6c |oningAct|or.Level|
|00003010| 2e 62 53 74 61 72 74 55 | 70 20 29 0d 0a 09 7b 0d |.bStartU|p )...{.|
|00003020| 0a 09 09 45 6e 74 72 79 | 54 69 6d 65 20 3d 20 54 |...Entry|Time = T|
|00003030| 72 61 6e 73 69 74 69 6f | 6e 69 6e 67 41 63 74 6f |ransitio|ningActo|
|00003040| 72 2e 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |r.Level.|TimeSeco|
|00003050| 6e 64 73 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |nds;...}|...else.|
|00003060| 0a 09 7b 0d 0a 09 09 45 | 6e 74 72 79 54 69 6d 65 |..{....E|ntryTime|
|00003070| 20 3d 20 30 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a | = 0;...|}..}....|
|00003080| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00003090| 6c 20 44 6f 41 63 74 6f | 72 41 6e 64 47 6f 61 6c |l DoActo|rAndGoal|
|000030a0| 43 79 6c 69 6e 64 65 72 | 73 54 6f 75 63 68 28 20 |Cylinder|sTouch( |
|000030b0| 41 63 74 6f 72 20 54 6f | 75 63 68 69 6e 67 41 63 |Actor To|uchingAc|
|000030c0| 74 6f 72 2c 0d 0a 09 09 | 47 6f 61 6c 41 62 73 74 |tor,....|GoalAbst|
|000030d0| 72 61 63 74 65 72 49 6e | 74 65 72 66 20 47 6f 61 |racterIn|terf Goa|
|000030e0| 6c 2c 0d 0a 09 09 42 65 | 68 61 76 69 6f 72 43 6f |l,....Be|haviorCo|
|000030f0| 6e 73 74 72 61 69 6e 65 | 72 20 43 6f 6e 73 74 72 |nstraine|r Constr|
|00003100| 61 69 6e 65 72 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ainer ).|.{...loc|
|00003110| 61 6c 20 62 6f 6f 6c 20 | 62 54 6f 75 63 68 69 6e |al bool |bTouchin|
|00003120| 67 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |g;...loc|al float|
|00003130| 20 44 79 6e 61 6d 69 63 | 52 61 64 69 75 73 45 78 | Dynamic|RadiusEx|
|00003140| 74 65 6e 73 69 6f 6e 2c | 20 44 79 6e 61 6d 69 63 |tension,| Dynamic|
|00003150| 48 65 69 67 68 74 45 78 | 74 65 6e 73 69 6f 6e 3b |HeightEx|tension;|
|00003160| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 54 |...local| float T|
|00003170| 65 73 74 48 65 69 67 68 | 74 2c 20 54 65 73 74 52 |estHeigh|t, TestR|
|00003180| 61 64 69 75 73 2c 20 44 | 69 73 74 61 6e 63 65 42 |adius, D|istanceB|
|00003190| 65 74 77 65 65 6e 3b 0d | 0a 09 0d 0a 09 47 65 74 |etween;.|.....Get|
|000031a0| 44 79 6e 61 6d 69 63 43 | 79 6c 69 6e 64 65 72 45 |DynamicC|ylinderE|
|000031b0| 78 74 65 6e 73 69 6f 6e | 28 20 44 79 6e 61 6d 69 |xtension|( Dynami|
|000031c0| 63 52 61 64 69 75 73 45 | 78 74 65 6e 73 69 6f 6e |cRadiusE|xtension|
|000031d0| 2c 20 44 79 6e 61 6d 69 | 63 48 65 69 67 68 74 45 |, Dynami|cHeightE|
|000031e0| 78 74 65 6e 73 69 6f 6e | 2c 20 54 6f 75 63 68 69 |xtension|, Touchi|
|000031f0| 6e 67 41 63 74 6f 72 2c | 20 43 6f 6e 73 74 72 61 |ngActor,| Constra|
|00003200| 69 6e 65 72 2c 20 47 6f | 61 6c 20 29 3b 0d 0a 09 |iner, Go|al );...|
|00003210| 2f 2f 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |//class'|Debug'.s|
|00003220| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00003230| 54 6f 75 63 68 69 6e 67 | 41 63 74 6f 72 2c 20 22 |Touching|Actor, "|
|00003240| 44 6f 41 63 74 6f 72 41 | 6e 64 47 6f 61 6c 43 79 |DoActorA|ndGoalCy|
|00003250| 6c 69 6e 64 65 72 73 54 | 6f 75 63 68 20 44 79 6e |lindersT|ouch Dyn|
|00003260| 61 6d 69 63 52 61 64 69 | 75 73 45 78 74 65 6e 73 |amicRadi|usExtens|
|00003270| 69 6f 6e 20 22 20 24 20 | 44 79 6e 61 6d 69 63 52 |ion " $ |DynamicR|
|00003280| 61 64 69 75 73 45 78 74 | 65 6e 73 69 6f 6e 20 2c |adiusExt|ension ,|
|00003290| 20 44 65 62 75 67 43 61 | 74 65 67 6f 72 79 4e 61 | DebugCa|tegoryNa|
|000032a0| 6d 65 20 29 3b 0d 0a 09 | 2f 2f 63 6c 61 73 73 27 |me );...|//class'|
|000032b0| 44 65 62 75 67 27 2e 73 | 74 61 74 69 63 2e 44 65 |Debug'.s|tatic.De|
|000032c0| 62 75 67 4c 6f 67 28 20 | 54 6f 75 63 68 69 6e 67 |bugLog( |Touching|
|000032d0| 41 63 74 6f 72 2c 20 22 | 44 6f 41 63 74 6f 72 41 |Actor, "|DoActorA|
|000032e0| 6e 64 47 6f 61 6c 43 79 | 6c 69 6e 64 65 72 73 54 |ndGoalCy|lindersT|
|000032f0| 6f 75 63 68 20 44 79 6e | 61 6d 69 63 48 65 69 67 |ouch Dyn|amicHeig|
|00003300| 68 74 45 78 74 65 6e 73 | 69 6f 6e 20 22 20 24 20 |htExtens|ion " $ |
|00003310| 44 79 6e 61 6d 69 63 48 | 65 69 67 68 74 45 78 74 |DynamicH|eightExt|
|00003320| 65 6e 73 69 6f 6e 20 2c | 20 44 65 62 75 67 43 61 |ension ,| DebugCa|
|00003330| 74 65 67 6f 72 79 4e 61 | 6d 65 20 29 3b 0d 0a 0d |tegoryNa|me );...|
|00003340| 0a 09 2f 2f 63 6c 61 73 | 73 27 44 65 62 75 67 27 |..//clas|s'Debug'|
|00003350| 2e 73 74 61 74 69 63 2e | 44 65 62 75 67 4c 6f 67 |.static.|DebugLog|
|00003360| 28 20 54 6f 75 63 68 69 | 6e 67 41 63 74 6f 72 2c |( Touchi|ngActor,|
|00003370| 20 22 44 6f 41 63 74 6f | 72 41 6e 64 47 6f 61 6c | "DoActo|rAndGoal|
|00003380| 43 79 6c 69 6e 64 65 72 | 73 54 6f 75 63 68 20 43 |Cylinder|sTouch C|
|00003390| 6f 6c 6c 69 73 69 6f 6e | 52 61 64 69 75 73 20 22 |ollision|Radius "|
|000033a0| 20 24 20 54 6f 75 63 68 | 69 6e 67 41 63 74 6f 72 | $ Touch|ingActor|
|000033b0| 2e 43 6f 6c 6c 69 73 69 | 6f 6e 52 61 64 69 75 73 |.Collisi|onRadius|
|000033c0| 20 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 | , Debug|Category|
|000033d0| 4e 61 6d 65 20 29 3b 0d | 0a 09 2f 2f 63 6c 61 73 |Name );.|..//clas|
|000033e0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|000033f0| 44 65 62 75 67 4c 6f 67 | 28 20 54 6f 75 63 68 69 |DebugLog|( Touchi|
|00003400| 6e 67 41 63 74 6f 72 2c | 20 22 44 6f 41 63 74 6f |ngActor,| "DoActo|
|00003410| 72 41 6e 64 47 6f 61 6c | 43 79 6c 69 6e 64 65 72 |rAndGoal|Cylinder|
|00003420| 73 54 6f 75 63 68 20 43 | 6f 6c 6c 69 73 69 6f 6e |sTouch C|ollision|
|00003430| 48 65 69 67 68 74 20 22 | 20 24 20 54 6f 75 63 68 |Height "| $ Touch|
|00003440| 69 6e 67 41 63 74 6f 72 | 2e 43 6f 6c 6c 69 73 69 |ingActor|.Collisi|
|00003450| 6f 6e 48 65 69 67 68 74 | 20 2c 20 44 65 62 75 67 |onHeight| , Debug|
|00003460| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00003470| 0a 0d 0a 09 54 65 73 74 | 52 61 64 69 75 73 20 3d |....Test|Radius =|
|00003480| 20 54 6f 75 63 68 69 6e | 67 41 63 74 6f 72 2e 43 | Touchin|gActor.C|
|00003490| 6f 6c 6c 69 73 69 6f 6e | 52 61 64 69 75 73 20 2b |ollision|Radius +|
|000034a0| 20 44 79 6e 61 6d 69 63 | 52 61 64 69 75 73 45 78 | Dynamic|RadiusEx|
|000034b0| 74 65 6e 73 69 6f 6e 3b | 0d 0a 09 54 65 73 74 48 |tension;|...TestH|
|000034c0| 65 69 67 68 74 20 3d 20 | 54 6f 75 63 68 69 6e 67 |eight = |Touching|
|000034d0| 41 63 74 6f 72 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |Actor.Co|llisionH|
|000034e0| 65 69 67 68 74 20 2b 20 | 44 79 6e 61 6d 69 63 48 |eight + |DynamicH|
|000034f0| 65 69 67 68 74 45 78 74 | 65 6e 73 69 6f 6e 3b 0d |eightExt|ension;.|
|00003500| 0a 0d 0a 09 69 66 28 20 | 47 6f 61 6c 2e 49 73 47 |....if( |Goal.IsG|
|00003510| 6f 61 6c 52 65 61 63 68 | 65 64 28 20 54 6f 75 63 |oalReach|ed( Touc|
|00003520| 68 69 6e 67 41 63 74 6f | 72 20 29 20 2f 2a 26 26 |hingActo|r ) /*&&|
|00003530| 20 28 20 54 65 73 74 52 | 61 64 69 75 73 20 3e 3d | ( TestR|adius >=|
|00003540| 20 30 20 29 20 26 26 20 | 28 20 54 65 73 74 48 65 | 0 ) && |( TestHe|
|00003550| 69 67 68 74 20 3e 3d 20 | 30 20 29 2a 2f 20 29 0d |ight >= |0 )*/ ).|
|00003560| 0a 09 7b 0d 0a 09 09 62 | 54 6f 75 63 68 69 6e 67 |..{....b|Touching|
|00003570| 20 3d 20 74 72 75 65 3b | 0d 0a 09 7d 0d 0a 2f 2a | = true;|...}../*|
|00003580| 0d 0a 09 65 6c 73 65 20 | 69 66 28 20 47 6f 61 6c |...else |if( Goal|
|00003590| 2e 47 65 74 47 6f 61 6c | 44 69 73 74 61 6e 63 65 |.GetGoal|Distance|
|000035a0| 54 6f 43 79 6c 69 6e 64 | 65 72 28 20 54 6f 75 63 |ToCylind|er( Touc|
|000035b0| 68 69 6e 67 41 63 74 6f | 72 2c 20 44 69 73 74 61 |hingActo|r, Dista|
|000035c0| 6e 63 65 42 65 74 77 65 | 65 6e 2c 0d 0a 09 09 09 |nceBetwe|en,.....|
|000035d0| 54 6f 75 63 68 69 6e 67 | 41 63 74 6f 72 2e 4c 6f |Touching|Actor.Lo|
|000035e0| 63 61 74 69 6f 6e 2c 20 | 2f 2a 74 68 65 20 6f 72 |cation, |/*the or|
|000035f0| 69 67 69 6e 20 6f 66 20 | 74 68 65 20 73 65 63 6f |igin of |the seco|
|00003600| 6e 64 20 63 79 6c 69 6e | 64 65 72 2a 2f 0d 0a 09 |nd cylin|der*/...|
|00003610| 09 09 54 65 73 74 52 61 | 64 69 75 73 2c 20 2f 2a |..TestRa|dius, /*|
|00003620| 74 68 65 20 72 61 64 69 | 75 73 20 6f 66 20 74 68 |the radi|us of th|
|00003630| 65 20 73 65 63 6f 6e 64 | 20 63 79 6c 69 6e 64 65 |e second| cylinde|
|00003640| 72 2a 2f 0d 0a 09 09 09 | 54 65 73 74 48 65 69 67 |r*/.....|TestHeig|
|00003650| 68 74 20 2f 2a 74 68 65 | 20 28 68 61 6c 66 29 20 |ht /*the| (half) |
|00003660| 68 65 69 67 68 74 20 6f | 66 20 74 68 65 20 73 65 |height o|f the se|
|00003670| 63 6f 6e 64 20 63 79 6c | 69 6e 64 65 72 2a 2f 20 |cond cyl|inder*/ |
|00003680| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 62 54 6f 75 63 |) )...{.|...bTouc|
|00003690| 68 69 6e 67 20 3d 20 28 | 20 44 69 73 74 61 6e 63 |hing = (| Distanc|
|000036a0| 65 42 65 74 77 65 65 6e | 20 3c 3d 20 43 6c 6f 73 |eBetween| <= Clos|
|000036b0| 65 45 6e 6f 75 67 68 54 | 6f 44 69 73 74 61 6e 63 |eEnoughT|oDistanc|
|000036c0| 65 20 29 3b 0d 0a 09 7d | 0d 0a 2a 2f 0d 0a 09 63 |e );...}|..*/...c|
|000036d0| 6c 61 73 73 27 44 65 62 | 75 67 27 2e 73 74 61 74 |lass'Deb|ug'.stat|
|000036e0| 69 63 2e 44 65 62 75 67 | 4c 6f 67 28 20 54 6f 75 |ic.Debug|Log( Tou|
|000036f0| 63 68 69 6e 67 41 63 74 | 6f 72 2c 20 22 44 6f 41 |chingAct|or, "DoA|
|00003700| 63 74 6f 72 41 6e 64 47 | 6f 61 6c 43 79 6c 69 6e |ctorAndG|oalCylin|
|00003710| 64 65 72 73 54 6f 75 63 | 68 20 54 6f 75 63 68 69 |dersTouc|h Touchi|
|00003720| 6e 67 41 63 74 6f 72 20 | 22 20 24 20 54 6f 75 63 |ngActor |" $ Touc|
|00003730| 68 69 6e 67 41 63 74 6f | 72 20 2c 20 44 65 62 75 |hingActo|r , Debu|
|00003740| 67 43 61 74 65 67 6f 72 | 79 4e 61 6d 65 20 29 3b |gCategor|yName );|
|00003750| 0d 0a 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00003760| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00003770| 20 54 6f 75 63 68 69 6e | 67 41 63 74 6f 72 2c 20 | Touchin|gActor, |
|00003780| 22 44 6f 41 63 74 6f 72 | 41 6e 64 47 6f 61 6c 43 |"DoActor|AndGoalC|
|00003790| 79 6c 69 6e 64 65 72 73 | 54 6f 75 63 68 20 44 69 |ylinders|Touch Di|
|000037a0| 73 74 61 6e 63 65 42 65 | 74 77 65 65 6e 20 20 22 |stanceBe|tween "|
|000037b0| 20 24 20 44 69 73 74 61 | 6e 63 65 42 65 74 77 65 | $ Dista|nceBetwe|
|000037c0| 65 6e 20 2c 20 44 65 62 | 75 67 43 61 74 65 67 6f |en , Deb|ugCatego|
|000037d0| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 63 6c 61 73 |ryName )|;...clas|
|000037e0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|000037f0| 44 65 62 75 67 4c 6f 67 | 28 20 54 6f 75 63 68 69 |DebugLog|( Touchi|
|00003800| 6e 67 41 63 74 6f 72 2c | 20 22 44 6f 41 63 74 6f |ngActor,| "DoActo|
|00003810| 72 41 6e 64 47 6f 61 6c | 43 79 6c 69 6e 64 65 72 |rAndGoal|Cylinder|
|00003820| 73 54 6f 75 63 68 20 72 | 65 74 75 72 6e 69 6e 67 |sTouch r|eturning|
|00003830| 20 22 20 24 20 62 54 6f | 75 63 68 69 6e 67 2c 20 | " $ bTo|uching, |
|00003840| 44 65 62 75 67 43 61 74 | 65 67 6f 72 79 4e 61 6d |DebugCat|egoryNam|
|00003850| 65 20 29 3b 0d 0a 09 72 | 65 74 75 72 6e 20 62 54 |e );...r|eturn bT|
|00003860| 6f 75 63 68 69 6e 67 3b | 0d 0a 7d 0d 0a 0d 0a 0d |ouching;|..}.....|
|00003870| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 44 65 62 75 |...funct|ion Debu|
|00003880| 67 4c 6f 67 28 20 4f 62 | 6a 65 63 74 20 49 6e 76 |gLog( Ob|ject Inv|
|00003890| 6f 6b 65 72 20 29 0d 0a | 7b 0d 0a 09 63 6c 61 73 |oker )..|{...clas|
|000038a0| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|000038b0| 44 65 62 75 67 4c 6f 67 | 28 20 49 6e 76 6f 6b 65 |DebugLog|( Invoke|
|000038c0| 72 2c 20 22 44 65 62 75 | 67 4c 6f 67 22 2c 20 44 |r, "Debu|gLog", D|
|000038d0| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|000038e0| 20 29 3b 0d 0a 09 63 6c | 61 73 73 27 44 65 62 75 | );...cl|ass'Debu|
|000038f0| 67 27 2e 73 74 61 74 69 | 63 2e 44 65 62 75 67 4c |g'.stati|c.DebugL|
|00003900| 6f 67 28 20 49 6e 76 6f | 6b 65 72 2c 20 22 09 48 |og( Invo|ker, ".H|
|00003910| 54 5f 41 73 73 6f 63 69 | 61 74 65 64 53 74 61 74 |T_Associ|atedStat|
|00003920| 65 3a 20 22 20 24 20 54 | 65 6d 70 6c 61 74 65 2e |e: " $ T|emplate.|
|00003930| 48 54 5f 41 73 73 6f 63 | 69 61 74 65 64 53 74 61 |HT_Assoc|iatedSta|
|00003940| 74 65 2c 20 44 65 62 75 | 67 43 61 74 65 67 6f 72 |te, Debu|gCategor|
|00003950| 79 4e 61 6d 65 20 29 3b | 0d 0a 09 63 6c 61 73 73 |yName );|...class|
|00003960| 27 44 65 62 75 67 27 2e | 73 74 61 74 69 63 2e 44 |'Debug'.|static.D|
|00003970| 65 62 75 67 4c 6f 67 28 | 20 49 6e 76 6f 6b 65 72 |ebugLog(| Invoker|
|00003980| 2c 20 22 09 48 54 5f 41 | 73 73 6f 63 69 61 74 65 |, ".HT_A|ssociate|
|00003990| 64 4c 61 62 65 6c 3a 20 | 22 20 24 20 54 65 6d 70 |dLabel: |" $ Temp|
|000039a0| 6c 61 74 65 2e 48 54 5f | 41 73 73 6f 63 69 61 74 |late.HT_|Associat|
|000039b0| 65 64 4c 61 62 65 6c 2c | 20 44 65 62 75 67 43 61 |edLabel,| DebugCa|
|000039c0| 74 65 67 6f 72 79 4e 61 | 6d 65 20 29 3b 0d 0a 09 |tegoryNa|me );...|
|000039d0| 63 6c 61 73 73 27 44 65 | 62 75 67 27 2e 73 74 61 |class'De|bug'.sta|
|000039e0| 74 69 63 2e 44 65 62 75 | 67 4c 6f 67 28 20 49 6e |tic.Debu|gLog( In|
|000039f0| 76 6f 6b 65 72 2c 20 22 | 09 48 54 5f 53 65 6c 65 |voker, "|.HT_Sele|
|00003a00| 63 74 6f 72 43 6c 61 73 | 73 57 70 74 3a 20 22 20 |ctorClas|sWpt: " |
|00003a10| 24 20 54 65 6d 70 6c 61 | 74 65 2e 48 54 5f 53 65 |$ Templa|te.HT_Se|
|00003a20| 6c 65 63 74 6f 72 43 6c | 61 73 73 57 70 74 2c 20 |lectorCl|assWpt, |
|00003a30| 44 65 62 75 67 43 61 74 | 65 67 6f 72 79 4e 61 6d |DebugCat|egoryNam|
|00003a40| 65 20 29 3b 0d 0a 09 63 | 6c 61 73 73 27 44 65 62 |e );...c|lass'Deb|
|00003a50| 75 67 27 2e 73 74 61 74 | 69 63 2e 44 65 62 75 67 |ug'.stat|ic.Debug|
|00003a60| 4c 6f 67 28 20 49 6e 76 | 6f 6b 65 72 2c 20 22 09 |Log( Inv|oker, ".|
|00003a70| 48 54 5f 53 65 6c 65 63 | 74 6f 72 43 6c 61 73 73 |HT_Selec|torClass|
|00003a80| 46 63 73 3a 20 22 20 24 | 20 54 65 6d 70 6c 61 74 |Fcs: " $| Templat|
|00003a90| 65 2e 48 54 5f 53 65 6c | 65 63 74 6f 72 43 6c 61 |e.HT_Sel|ectorCla|
|00003aa0| 73 73 46 63 73 2c 20 44 | 65 62 75 67 43 61 74 65 |ssFcs, D|ebugCate|
|00003ab0| 67 6f 72 79 4e 61 6d 65 | 20 29 3b 0d 0a 09 63 6c |goryName| );...cl|
|00003ac0| 61 73 73 27 44 65 62 75 | 67 27 2e 73 74 61 74 69 |ass'Debu|g'.stati|
|00003ad0| 63 2e 44 65 62 75 67 4c | 6f 67 28 20 49 6e 76 6f |c.DebugL|og( Invo|
|00003ae0| 6b 65 72 2c 20 22 09 48 | 54 5f 4f 62 6a 49 6e 74 |ker, ".H|T_ObjInt|
|00003af0| 65 72 73 65 63 74 52 65 | 71 3a 20 22 20 24 20 54 |ersectRe|q: " $ T|
|00003b00| 65 6d 70 6c 61 74 65 2e | 48 54 5f 4f 62 6a 49 6e |emplate.|HT_ObjIn|
|00003b10| 74 65 72 73 65 63 74 52 | 65 71 2c 20 44 65 62 75 |tersectR|eq, Debu|
|00003b20| 67 43 61 74 65 67 6f 72 | 79 4e 61 6d 65 20 29 3b |gCategor|yName );|
|00003b30| 0d 0a 09 63 6c 61 73 73 | 27 44 65 62 75 67 27 2e |...class|'Debug'.|
|00003b40| 73 74 61 74 69 63 2e 44 | 65 62 75 67 4c 6f 67 28 |static.D|ebugLog(|
|00003b50| 20 49 6e 76 6f 6b 65 72 | 2c 20 22 09 48 54 5f 4d | Invoker|, ".HT_M|
|00003b60| 6f 76 65 6d 65 6e 74 50 | 61 74 74 65 72 6e 43 6c |ovementP|atternCl|
|00003b70| 61 73 73 3a 20 22 20 24 | 20 54 65 6d 70 6c 61 74 |ass: " $| Templat|
|00003b80| 65 2e 48 54 5f 4d 6f 76 | 65 6d 65 6e 74 50 61 74 |e.HT_Mov|ementPat|
|00003b90| 74 65 72 6e 43 6c 61 73 | 73 2c 20 44 65 62 75 67 |ternClas|s, Debug|
|00003ba0| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00003bb0| 0a 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|00003bc0| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00003bd0| 49 6e 76 6f 6b 65 72 2c | 20 22 09 48 54 5f 62 52 |Invoker,| ".HT_bR|
|00003be0| 65 65 6e 74 72 61 6e 74 | 3a 20 22 20 24 20 54 65 |eentrant|: " $ Te|
|00003bf0| 6d 70 6c 61 74 65 2e 48 | 54 5f 62 52 65 65 6e 74 |mplate.H|T_bReent|
|00003c00| 72 61 6e 74 2c 20 44 65 | 62 75 67 43 61 74 65 67 |rant, De|bugCateg|
|00003c10| 6f 72 79 4e 61 6d 65 20 | 29 3b 0d 0a 09 63 6c 61 |oryName |);...cla|
|00003c20| 73 73 27 44 65 62 75 67 | 27 2e 73 74 61 74 69 63 |ss'Debug|'.static|
|00003c30| 2e 44 65 62 75 67 4c 6f | 67 28 20 49 6e 76 6f 6b |.DebugLo|g( Invok|
|00003c40| 65 72 2c 20 22 09 48 54 | 5f 4d 69 6e 45 6e 74 72 |er, ".HT|_MinEntr|
|00003c50| 79 49 6e 74 65 72 76 61 | 6c 3a 20 22 20 24 20 54 |yInterva|l: " $ T|
|00003c60| 65 6d 70 6c 61 74 65 2e | 48 54 5f 4d 69 6e 45 6e |emplate.|HT_MinEn|
|00003c70| 74 72 79 49 6e 74 65 72 | 76 61 6c 2c 20 44 65 62 |tryInter|val, Deb|
|00003c80| 75 67 43 61 74 65 67 6f | 72 79 4e 61 6d 65 20 29 |ugCatego|ryName )|
|00003c90| 3b 0d 0a 09 63 6c 61 73 | 73 27 44 65 62 75 67 27 |;...clas|s'Debug'|
|00003ca0| 2e 73 74 61 74 69 63 2e | 44 65 62 75 67 4c 6f 67 |.static.|DebugLog|
|00003cb0| 28 20 49 6e 76 6f 6b 65 | 72 2c 20 22 09 48 54 5f |( Invoke|r, ".HT_|
|00003cc0| 4d 61 78 44 75 72 61 74 | 69 6f 6e 3a 20 22 20 24 |MaxDurat|ion: " $|
|00003cd0| 20 54 65 6d 70 6c 61 74 | 65 2e 48 54 5f 4d 61 78 | Templat|e.HT_Max|
|00003ce0| 44 75 72 61 74 69 6f 6e | 2c 20 44 65 62 75 67 43 |Duration|, DebugC|
|00003cf0| 61 74 65 67 6f 72 79 4e | 61 6d 65 20 29 3b 0d 0a |ategoryN|ame );..|
|00003d00| 09 63 6c 61 73 73 27 44 | 65 62 75 67 27 2e 73 74 |.class'D|ebug'.st|
|00003d10| 61 74 69 63 2e 44 65 62 | 75 67 4c 6f 67 28 20 49 |atic.Deb|ugLog( I|
|00003d20| 6e 76 6f 6b 65 72 2c 20 | 22 09 48 54 5f 62 52 65 |nvoker, |".HT_bRe|
|00003d30| 71 75 69 72 65 56 61 6c | 69 64 47 6f 61 6c 3a 20 |quireVal|idGoal: |
|00003d40| 22 20 24 20 54 65 6d 70 | 6c 61 74 65 2e 48 54 5f |" $ Temp|late.HT_|
|00003d50| 62 52 65 71 75 69 72 65 | 56 61 6c 69 64 47 6f 61 |bRequire|ValidGoa|
|00003d60| 6c 2c 20 44 65 62 75 67 | 43 61 74 65 67 6f 72 79 |l, Debug|Category|
|00003d70| 4e 61 6d 65 20 29 3b 0d | 0a 0d 0a 09 63 6c 61 73 |Name );.|....clas|
|00003d80| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00003d90| 44 65 62 75 67 4c 6f 67 | 28 20 49 6e 76 6f 6b 65 |DebugLog|( Invoke|
|00003da0| 72 2c 20 22 09 4d 6f 76 | 65 6d 65 6e 74 50 61 74 |r, ".Mov|ementPat|
|00003db0| 74 65 72 6e 3a 20 22 20 | 24 20 4d 6f 76 65 6d 65 |tern: " |$ Moveme|
|00003dc0| 6e 74 50 61 74 74 65 72 | 6e 2c 20 44 65 62 75 67 |ntPatter|n, Debug|
|00003dd0| 43 61 74 65 67 6f 72 79 | 4e 61 6d 65 20 29 3b 0d |Category|Name );.|
|00003de0| 0a 09 63 6c 61 73 73 27 | 44 65 62 75 67 27 2e 73 |..class'|Debug'.s|
|00003df0| 74 61 74 69 63 2e 44 65 | 62 75 67 4c 6f 67 28 20 |tatic.De|bugLog( |
|00003e00| 49 6e 76 6f 6b 65 72 2c | 20 22 09 45 6e 74 72 79 |Invoker,| ".Entry|
|00003e10| 54 69 6d 65 3a 20 22 20 | 24 20 45 6e 74 72 79 54 |Time: " |$ EntryT|
|00003e20| 69 6d 65 2c 20 44 65 62 | 75 67 43 61 74 65 67 6f |ime, Deb|ugCatego|
|00003e30| 72 79 4e 61 6d 65 20 29 | 3b 0d 0a 09 63 6c 61 73 |ryName )|;...clas|
|00003e40| 73 27 44 65 62 75 67 27 | 2e 73 74 61 74 69 63 2e |s'Debug'|.static.|
|00003e50| 44 65 62 75 67 4c 6f 67 | 28 20 49 6e 76 6f 6b 65 |DebugLog|( Invoke|
|00003e60| 72 2c 20 22 09 50 72 65 | 76 69 6f 75 73 53 74 61 |r, ".Pre|viousSta|
|00003e70| 74 65 4e 61 6d 65 3a 20 | 22 20 24 20 50 72 65 76 |teName: |" $ Prev|
|00003e80| 69 6f 75 73 53 74 61 74 | 65 4e 61 6d 65 2c 20 44 |iousStat|eName, D|
|00003e90| 65 62 75 67 43 61 74 65 | 67 6f 72 79 4e 61 6d 65 |ebugCate|goryName|
|00003ea0| 20 29 3b 0d 0a 7d 0d 0a | 0d 0a 00 | );..}..|... |
+--------+-------------------------+-------------------------+--------+--------+