hedgewars/uCommandHandlers.pas
changeset 4528 630f4ab0c926
parent 4522 0f590eefd531
child 4531 4ea193b0e378
equal deleted inserted replaced
4526:38afca1e4248 4528:630f4ab0c926
   510 end;
   510 end;
   511 
   511 
   512 
   512 
   513 procedure initModule;
   513 procedure initModule;
   514 begin
   514 begin
       
   515 //////// Begin top sorted by freq analysis not including chatmsg
       
   516     RegisterVariable('+right'  , vtCommand, @chRight_p      , false);
       
   517     RegisterVariable('-right'  , vtCommand, @chRight_m      , false);
       
   518     RegisterVariable('+up'     , vtCommand, @chUp_p         , false);
       
   519     RegisterVariable('-up'     , vtCommand, @chUp_m         , false);
       
   520     RegisterVariable('+left'   , vtCommand, @chLeft_p       , false);
       
   521     RegisterVariable('-left'   , vtCommand, @chLeft_m       , false);
       
   522     RegisterVariable('+attack' , vtCommand, @chAttack_p     , false);
       
   523     RegisterVariable('+down'   , vtCommand, @chDown_p       , false);
       
   524     RegisterVariable('-down'   , vtCommand, @chDown_m       , false);
       
   525     RegisterVariable('hjump'   , vtCommand, @chHJump        , false);
       
   526     RegisterVariable('ljump'   , vtCommand, @chLJump        , false);
       
   527     RegisterVariable('nextturn', vtCommand, @chNextTurn     , false);
       
   528     RegisterVariable('-attack' , vtCommand, @chAttack_m     , false);
       
   529     RegisterVariable('slot'    , vtCommand, @chSlot         , false);
       
   530     RegisterVariable('setweap' , vtCommand, @chSetWeapon    , false);
       
   531 //////// End top by freq analysis
   515     RegisterVariable('flag'    , vtCommand, @chFlag         , false);
   532     RegisterVariable('flag'    , vtCommand, @chFlag         , false);
   516     RegisterVariable('script'  , vtCommand, @chScript       , false);
   533     RegisterVariable('script'  , vtCommand, @chScript       , false);
   517     RegisterVariable('proto'   , vtCommand, @chCheckProto   , true );
   534     RegisterVariable('proto'   , vtCommand, @chCheckProto   , true );
   518     RegisterVariable('spectate', vtBoolean, @fastUntilLag   , false);
   535     RegisterVariable('spectate', vtBoolean, @fastUntilLag   , false);
   519     RegisterVariable('capture' , vtCommand, @chCapture      , true );
   536     RegisterVariable('capture' , vtCommand, @chCapture      , true );
   553     RegisterVariable('zoomout' , vtCommand, @chZoomOut      , true );
   570     RegisterVariable('zoomout' , vtCommand, @chZoomOut      , true );
   554     RegisterVariable('zoomreset',vtCommand, @chZoomReset    , true );
   571     RegisterVariable('zoomreset',vtCommand, @chZoomReset    , true );
   555     RegisterVariable('ammomenu', vtCommand, @chAmmoMenu     , true);
   572     RegisterVariable('ammomenu', vtCommand, @chAmmoMenu     , true);
   556     RegisterVariable('+precise', vtCommand, @chPrecise_p    , false);
   573     RegisterVariable('+precise', vtCommand, @chPrecise_p    , false);
   557     RegisterVariable('-precise', vtCommand, @chPrecise_m    , false);
   574     RegisterVariable('-precise', vtCommand, @chPrecise_m    , false);
   558     RegisterVariable('+left'   , vtCommand, @chLeft_p       , false);
       
   559     RegisterVariable('-left'   , vtCommand, @chLeft_m       , false);
       
   560     RegisterVariable('+right'  , vtCommand, @chRight_p      , false);
       
   561     RegisterVariable('-right'  , vtCommand, @chRight_m      , false);
       
   562     RegisterVariable('+up'     , vtCommand, @chUp_p         , false);
       
   563     RegisterVariable('-up'     , vtCommand, @chUp_m         , false);
       
   564     RegisterVariable('+down'   , vtCommand, @chDown_p       , false);
       
   565     RegisterVariable('-down'   , vtCommand, @chDown_m       , false);
       
   566     RegisterVariable('+attack' , vtCommand, @chAttack_p     , false);
       
   567     RegisterVariable('-attack' , vtCommand, @chAttack_m     , false);
       
   568     RegisterVariable('switch'  , vtCommand, @chSwitch       , false);
   575     RegisterVariable('switch'  , vtCommand, @chSwitch       , false);
   569     RegisterVariable('nextturn', vtCommand, @chNextTurn     , false);
       
   570     RegisterVariable('timer'   , vtCommand, @chTimer        , false);
   576     RegisterVariable('timer'   , vtCommand, @chTimer        , false);
   571     RegisterVariable('taunt'   , vtCommand, @chTaunt        , false);
   577     RegisterVariable('taunt'   , vtCommand, @chTaunt        , false);
   572     RegisterVariable('setweap' , vtCommand, @chSetWeapon    , false);
       
   573     RegisterVariable('slot'    , vtCommand, @chSlot         , false);
       
   574     RegisterVariable('put'     , vtCommand, @chPut          , false);
   578     RegisterVariable('put'     , vtCommand, @chPut          , false);
   575     RegisterVariable('ljump'   , vtCommand, @chLJump        , false);
       
   576     RegisterVariable('hjump'   , vtCommand, @chHJump        , false);
       
   577     RegisterVariable('+volup'  , vtCommand, @chVol_p        , true );
   579     RegisterVariable('+volup'  , vtCommand, @chVol_p        , true );
   578     RegisterVariable('-volup'  , vtCommand, @chVol_m        , true );
   580     RegisterVariable('-volup'  , vtCommand, @chVol_m        , true );
   579     RegisterVariable('+voldown', vtCommand, @chVol_m        , true );
   581     RegisterVariable('+voldown', vtCommand, @chVol_m        , true );
   580     RegisterVariable('-voldown', vtCommand, @chVol_p        , true );
   582     RegisterVariable('-voldown', vtCommand, @chVol_p        , true );
   581     RegisterVariable('findhh'  , vtCommand, @chFindhh       , true );
   583     RegisterVariable('findhh'  , vtCommand, @chFindhh       , true );