-  , 
-    skill_model
-   ,     
      
-       

 12.01.2009 (  - 1.003)

==    global.pfs==
   :
(       unit_events.pfs)
-  OnUnitGetTurn -  ,     (   ).       unit_events.pfs.
-  OnUnitDeath -    .       unit_events.pfs.
-  OnGetDamage -               unit_events.pfs. 
-  isDamageCritical -        .        unit_events.pfs. 
-  OnUnitSkipTurn - ,     <_>   .        unit_events.pfs.

==    ==
 -   ExecuteGlobalMethod( : String,  : BasicType/Array) : BasicType   /    global.pfs

==WorldCity==
 -   SetDefaultMap( : String)      (),      .
 -   GetDefaultMap(): String    ,       .

==MapBuilder==
 -   GetMapName(): String     
 -   IncWorldTime( : Number)         .
 -   SortObjects()      .        
 -   RemoveBypassPoint(x : Number, y : Number)         
 -   RemoveObjects()    (,    )   - .      . 
 -   GetObjectsCount():Number -      ()
 -   GetObjectName(index : Number) : String -        ( 0  GetObjectsCount()-1)

==WorldMap==
 -   SetDefaultMapName( : String)    ,        (      ). 

==MapObject==
 -  SetDiscriptionID   SetDescription
 -  GetDiscriptionID   GetDescription	
 -   ClearInventory()      
 -   GetDefaultImage() : String       
 -   AddAsAnimation(_ : String, 
_ : String, _x : Number, 
_y : Number, _x : Number, _y : Number)     .
 -   SetAnimationParam( : AnimationParamType,  : Number)      .
 -   SentToBack( : Boolean)       .
 -   DoHit( : Number,  : Boolean)       . 
-   DoTrade() -      .  ,    .
-   isUnitDead():Boolean -  true,    

====
 -    AnimationParamType    
    - AnimationParamType.AnimateLoop	 -   
    - AnimationParamType.AnimateBackward   --
    - AnimationParamType.AnimateForward   
    - AnimationParamType.AnimateEnabled   
    - AnimationParamType.EventOnAnimateEnd    OnUnitActionWithObject()    (  = ActionType.ActionOnObject)

-     UnitParam.TradeState -  /   .      true,     /.


==InventoryItem==
-	 SetDiscription   SetDescription

    Collection
==Collection==
-	 Add(<> :String, <> : BasicType)     
-	 Get(<> :String  <> : Number) : BasicType          
-	 Clear()    
-	 isExists(<> :String) : Boolean        .  true        .
-	 Count() : Number      
-	 Free()
 -        (   - R,   = vkB).    .
 -     

MapObject.DoTrade() -      .  ,    .
MapObject.isUnitDead() : Boolean -  true,    
UnitParam.TradeState -  /   .      true,     /.

-- 
  -        
  -          ,     
  -       
  -  -           


== ==
 -   ExecuteGlobalMethod( : String,  : BasicType/Array) : BasicType   /    global.pfs

==WorldCity==
 -   SetDefaultMap( : String)      (),      .
 -   GetDefaultMap(): String    ,       .

==MapBuilder==
 -   GetMapName(): String     
 -   IncWorldTime( : Number)         .
 -   SortObjects()      .        
 -   RemoveBypassPoint(x : Number, y : Number)         
 -   RemoveObjects()    (,    )   - .      . 
 -   GetObjectsCount():Number -      ()
 -   GetObjectName(index : Number) : String -        ( 0  GetObjectsCount()-1)

==WorldMap==
 -   SetDefaultMapName( : String)    ,       .		

==MapObject==
 -  SetDiscriptionID   SetDescription
 -  GetDiscriptionID   GetDescription	
 -   ClearInventory()      
 -   GetDefaultImage() : String       
 -   AddAsAnimation(_ : String, 
_ : String, _x : Number, 
_y : Number, _x : Number, _y : Number)     .
 -   SetAnimationParam( : AnimationParamType,  : Number)      .
 -   SentToBack( : Boolean)       .
 -   DoHit( : Number,  : Boolean)       . 

====
 -    AnimationParamType    
    - AnimationParamType.AnimateLoop	 -   
    - AnimationParamType.AnimateBackward   --
    - AnimationParamType.AnimateForward   
    - AnimationParamType.AnimateEnabled   
    - AnimationParamType.EventOnAnimateEnd    OnUnitActionWithObject()    (  ActionType.ActionOnObject)

==InventoryItem==
  -  SetDiscription   SetDescription

 24.10.2008 (- - 1.003)

------ ,  :
-       ,   .
    ,    (      )
-      
-      
-          
-      
-      "".      
-       
-       
-          
-     ( cfg-)    +     
-  config.cfg   draw_tile_coord={0  1} -    .      

-     :
  -     MISSED_ATTACK   OnGetDamage.   OnGetDamage   ,
     ,       .     .
     OnGetDamage   :
      -  > 0 = Fighter  Target   
      -  < 0 = Fighter      
      -  = 0 = Fighter   
      -  = MISSED_ATTACK - Fighter    

  ==  ==
  -      UnitParam
    - UnitParam.MeleeDamage -  
  -      WeaponParam :
    - WeaponParam.DamageType -   .   /   -
        SetWeaponParam.           WeaponDamageType.
  -    WeaponDamageType.      .
	- WeaponDamageType.Simple - //   
	- WeaponDamageType.Laser -  
	- WeaponDamageType.Fire -  
	- WeaponDamageType.Plasma -  
	- WeaponDamageType.Explosion -  
	- WeaponDamageType.Electric -  

  ==      ==
  -  GetPlayerName():String -   
  -  SetDefaultMessagesState( : Boolean) -    (/)    
  -  AddFormattedMessage(_ : Number,  : Array) -   . 
      <>   .
             Resource\data\messages.txt. 
             <>       "%s",  :
    2002={%s     %s}    

             
  == MapObject ==
  -   CalculateSkillValues() -       ,    S.P.E.C.I.A.L
  -   GetTitle() : String -    

  == InventoryItem ==   
  -   GetAmmunition(): String -    /   
  -   SetAmmunition(<_>:String) -  /   .
     :    <_>     .

  ==   unit_events.pfs ==
  -   OnUnitSkipTurn(<_>:String).  ,     <_>   

------  :
-         (-)
-   ,    
-     ""  -
-        
-   ,     
-          
-      .       (. default->map_build->mCreateMegaGopnik())
-         
-          
 
 25.09.2008 (-)

------ ,  :
 -     /    
 -        
 -       
 -   " "  - 
 -   " "  -  
 -      
 -     (   1 -) -       (  )

 -     :
   -   MathModel.isObjectNearObject -     <_> : . 
       :
     isObjectNearObject(objectName : String, targetName : String[,<_> : Number]):Boolean
   -   MapBuilder.AddExitArea -     _:Number  _Y:Number 
       :
     AddExitArea(x:Number, y:Number, _:String, [_:Number, _Y:Number]);
   ==  ==
      : WaitCursorType.       (.  ShowWaitCursor)
     :
    - WaitCursorType.WorldMap -     
    - WaitCursorType.Clock -     
   
   ==InventoryItem==    
   -   SetAttackFileNames(<> : String, <> : String) -     , 
       (     : attackmain  attackalt)
   
   ==      ==
   -  CheckFightStack()   ""     (   ) (    )
   -  GetCurrentFighter() : String -      (    )
   -  ShowWaitCursor(<_>:WaitCursorType) -  (   )  .
      !           (,  ,   .   ..).
   -  HideWaitCursor() -   .
   -  GetWalkAreaValue(x : Number, y : Number) : Number -       .
           wmap_events.pfs OnGetUnitPath.
      :
     1 -    
     0 -    
     -1 -  
   -  SetWalkStep(x : Number, y : Number) -         .
           wmap_events.pfs OnGetUnitPath.
   ==  ==  
   -    wmap_events.pfs :
     - procedure OnGetUnitPath(_ : String, ex : Number, ey : Number) -   ,    
          <_>      (ex, ey). 
        !      wmap_events.pfs,        
        .
     - procedure OnTurnToTarget(_ : String, _ : String) -    ,   
           <_>     <_>.
        :   ,      .
     - function isNearObject(_ : String, _ : String,  : Number) : Boolean -     
        :      <_>  <_>    <>.
	  !      wmap_events.pfs,         
         !
         :
       true - <_>    <_>
       false -   
        

------  :
 -          
 -     ,    
 -        
 -      (   SPECIAL)
 -    ""  
 -    ""    
 -         (     ,    )
 -          / .
      ,  ,    :(.
     WM5 !!!

 14.09.2008 (-)
------ ,  :
- !!    !!
-     .      (  )     "noweapon".
      :
  Run, Action, Take,FrontDeath, BackDeath, FrontHit, BackHit, FrontUprise, BackUprise, FrontFall, BackFall, FrontUprise, BackUprise,FrontMiss, BackMiss
-      show_map_coord={1  0}. 
   = 1,          
-      
-       .     > 0
-    ,    
-  cfg-   /   legs_offset. 
            
   :
  legs_offset={northeast_coords; east_coords; southeast_coords; southwest_coords; west_coords; northwest_coords}
-  cfg-   /   move_offset (  ). 
     2  (  X   Y)
   :
  move_offset={x,y}
-  cfg-    action_frame=<_____>
           
  ( -    ,      )
-       
-     (   +   )
-     :
  - putout   takeout
  - putinto   putback

-     :
  -    MathModel.      .
  ==   MathModel==
  -  GetStepCount(<x> : Number, <y> : Number, <xe> : Number, <ye> : Number): Number -     (x,y)  (xe, ye)
  -  isObjectNearObject(<> : String, <> : String):Boolean -         
  -  GetTickCount(): Number -    
  -  PointInRect(<x> : Number, <y> : Number, <xRect> : Number, <yRect> : Number, <width> : Number, <height> : Number) : Boolean -     (x, y)       (xRect, yRect).  PointInRect    PointInPolygon
  -  PointInPolygon(<x> : Number, <y> : Number, <X> : Array, <Y> : Array ):Boolean -     (x, y)         <X>  <Y>

  ==  ==
  -   : UnitAction.Fight (  2 )
  -   CoordClass.ScreenPosition  CoordClass.Pixel
  -   UnitAction.GunPutInto  UnitAction.PutBackWeapon (   /)
  -   UnitAction.GunPutOut  UnitAction.TakeOutWeapon (   /)
  -   UnitActionTurn   OnUnitGetTurn() :
    - UnitActionTurn.SkipAction -  
    - UnitActionTurn.ContinueAction -   (  )
    - UnitActionTurn.WaitForObject -        

  -      UnitParam :
    - UnitParam.CriticalChance -    (Number,  %)
    - UnitParam.PoisonResistance -    (Number,  %)
    - UnitParam.RadiationResistance -    (Number,  %)
    - UnitParam.DoctorLevel -   (Number)
    - UnitParam.Poisoning -  (Boolean)
    - UnitParam.Irradiation -  (Boolean)
    - UnitParam.EyeWound -    (Boolean)
    - UnitParam.RightHandWound -     (Boolean)
    - UnitParam.LeftHandWound -     (Boolean)
    - UnitParam.RightLegWound -     (Boolean)
    - UnitParam.LeftLegWound -     (Boolean)
    - UnitParam.Scrapper -  "". -    ,        (Boolean)

  -      SkillType
    - SkillType.ColdSteel -  
    - SkillType.LiteWeapon -  
    - SkillType.HardWeapon -  
    - SkillType.EnergyWeapon -  
    - SkillType.HandToHand - 
    - SkillType.DartWeapon -  
    - SkillType.Talk - 	
    - SkillType.Trade - 
    - SkillType.Game - 
    - SkillType.Wanderer - 	

  ==InventoryItem==    
  -   SetAttackCaptions(<> : String, <> : String) -    ,   (     : attackmain  attackalt)
  -   SetDeterioration(<> : Number) -   () 
  -   GetDeterioration() -  () 

  ==WorldCity==
  -   SetVisible(<> : Boolean) -     
  -   GetVisible() : Boolean -     

  ==MapObject==
  -   SetDefaultImage(<_> : String)  /     
  -   BeginFight() : Boolean -     .  true,   ;
  -   EndFight() : Boolean -     .  true,   ;
  -   AddToFight() -     
  -   RemoveFromFight() -     
  -   DisplayText(<> : Number) -    .  -     dialog_<_>.txt
  -   SetTitle(<> : Number) -       ( - "").  -     dialog_<_>.txt
  -   GetObjectDirection() : Direction -    
  -   GetActiveHand() : Hands -    
  -   GetItemFromHand(<> : Hands) : String -        
  -   SetArmour(<> : String) -      _ ( ..   )
  -   GetArmour():String -    ,         
  -   SetMoveState(<>:Boolean) -      ( ,   )
  -   GetMoveState():Boolean -    
  -   SetObjectActionPoints(<> : UnitActPoints, <> : Number) -      
  -   GetObjectActionPoints(<> : UnitActPoints):Number -      
  -   SetSkillLevel(<> : SkillType, <> : Number) -      
  -   GetSkillLevel(<> : SkillType) : Number -      
  -   DoAttack(<> : String) : Boolean -        (         )

  ==   unit_events.pfs==
  - function OnUnitGetTurn(unitName) : UnitActionTurn - ,   ,     unitName   (   )
  - procedure OnUnitDeath(unitName) - ,     
  - function isDamageCritical(fighterName, targetName) : Boolean - ,         .     OnGetDamage
  - function OnGetDamage(fighterName, targetName) : Number - ,        

  ==   map_events.pfs==
  - procedure OnBeginFight(unitName) - ,    ,      unitName
  - procedure OnEndFight(unitName) - ,    ,       unitName

------  :
-     ""   
-          (    )

 22.06.2008 ( )
------ ,  :
-  About (   )
-     
-          . 
       " +-*/|!";%:?*!"
-      
-    
-     :
  -   ,      - UserModule. 
          "Resource\modules\user\".
      :
    var <_> = CreateObject("UserModule.<___>")
    <_>.<___>([_])
       maps\default
-       :
     :
  - Chr(<> : Number) : String -   (  )  
  - Ord(<> : String) : Number -     (  )
    :
  - DbgLogValue(<> : Ordinal, <> : String) -     dbgscript.log   

------  :
-        

 02.06.2008 (003)
------ ,  :
-    mp3    (22 , 80 /). 
     -   WAV (PCM  , 22 , 16 , ) 
       20%
-      
-        
        +       Resource.
    /     Graphics/Objects
-      (global.pfs, default->map_build.pfs)
-    OnRandomMapSfx()  OnRandomMapAction() (. map_events.pfs)
-       (    )
-     .        
-      (FATH     )
-        (FATH     )
-       :
     :
	log(<> : Number) : Number -  
	log10(<> : Number) : Number -  
	exp(<> : Number) : Number -    
	tan(<> : Number) : Number -  
	Pow(<> : Number, <> : Number) : Number -     
      :
      Length(<> : String  Array) : Number -     
	RemoveValue(<_>) -       
	YesNoMessage(<_> : Number) : Boolean -       "/".  true,    ""
       :
 	Pos(<_> : String, <> : String) : Number -  ,    _  
	SubStr(<> : String, <_> : Number, <> : Number) : String -     <>, 
		     <_>,  = <>
    MapObject:
	SetActiveHand(<> : Hands) -    
	SetItemToHand(<> : Hands, <_> : String) -          
-    :
	- Hands - . (Hands.Left -  ; Hands.Right -  )

------  :
-       (    ,     ) 
-       
-       PC    fps    
-     ( ..     )
-      
-   ,     

 10.05.2008
------ ,  :
-       - disable_random_actions. 
       1,         (   ).
       (      )
-       -      .
    ( )  ( )   
-   : WorldCity.CreateCity(<__>, <_>, <>) (. global.pfs)
-   : AddQuest(<_>, <__>) (. default\unit_events.pfs)
-       
-       :
  1.    - memory_status = {1  0}
  2.    - battery_status = {1  0}
-      
-         
-     +    "/" +    (..       )
-     ,   S.P.E.C.I.A.L (        )
          . 
-       PocketHAL 1.0.5.      
-  PocketFrog.   PC- ,      +     

------  :
-      -   
-        (   )
-         +   
-       
-        

 23.04.2008
------ ,  :
-    ,     -    
    ;
-    !          . ,   
     ,     ;
-  MessageBox    Faloout-
-     hx4700
-     -  ,   +  
-       

------  :
-    ""     
-       (        )
      ,     320240     
   ,     ,    
-        (     )
-          

 04.04.2008
------ ,  :
-     ;
-    ,     ;
-    error.log.   ,     

------  :
-      - 
-        

 24.03.2008
------ ,  :
-   .      ,   =   +/-4  
-     
-   
-  ()  

------  :
-      
-     
-          (  )

 24.02.2008
------ ,  :
-   WorldMap.  GetCityNameByCoords, SetWorldHeroPosition, GetWorldHeroY     ; 
      
-   "InventoryItem"   UseItemFrom(<_>, <_>)  ,      .
      true
-         (WorldMap->SetWorldSpeed / GetWorldSpeed)
-    (SetMapCellPaint)   (GetMapCellPaint)     (. global->OnInitialization())
-     
-    
-   .  :  "|"  "/"      
  PocketFallout.exe [-debug |  -map _ | -load _ | -nofps | -grid ]

------  :
-    ,      
-      ,     ;
-     
-      ,    (    )
-    -  ,     
-       

 13.02.2008
------ ,  :
-       :  , . , . . 
      .   : , , 
-        (   ).    ,       .
-     (   50    )
-        
-  !    ,    .     /   ,      

------  :
-    ""     
-            
-    ""  ,   
-     
-       


 29.01.2008
------ ,  :
-        .    SetUnitParam.     UnitParam   :
  UnitParam.Sex -  (  - SexType ->    : SexType.Male   SexType.Female)
  UnitParam.AttitudeToHero -   . 0 = ,  < 0,   .   >0 -  .
-    ,   -          
-        (  240240).      
        cfg- :  screen_width={}  screen_height={}
-    , 
-    - AddExitPoint,   MapBuilder  ,       . 
  ..         ,   AddExitPoint (  AddExitArea,   )
-        
-      
-     ,         ,        
-       
-     ,  ,          
-   /      (   )
-   SetShowPopupState(true/false)   MapObject
-         ,       
     (OnInitialization)     - OnConclusion.      (  ) /
-         ("" ).     wmap_events.pfs->OnGetRandomLocation()
-  ,         (unit->GoToCell - . default->unit_events)
-  ,      (unit->SetUnitAction - . default->unit_events)

------  :
-      (   )
-        (   )
-       
-        
-     ,       
-     ""
-    "  "
-     
-  ,      
-         
-    SkillType ""  SkillType.Science (  )
- .. ""      ( ),    ,            :(

  19.11.2007

------ ,  :
-        debug- (    .    debug_mode={1})
-   
-    
-        (    )
-         
-    
-     

------  :
-  ,    
-     
-    "" 
-     
-        
-       


  31.10.2007

-      (,  )
-    
-      
-     (    )
-  ,    
-      
-   ,     ,  , 
-    
-    
-     
- -     ,   --   WasterlanWolf
-         (    )  
