hedgewars/uConsts.pas
changeset 6982 8d41d22a291d
parent 6975 2587acdf0d23
child 7191 9419294e5f33
equal deleted inserted replaced
6981:045e8162c9cd 6982:8d41d22a291d
    49     cNearBlackColorChannels : TSDL_Color = (r:$00; g:$00; b:$10; unused:$FF);
    49     cNearBlackColorChannels : TSDL_Color = (r:$00; g:$00; b:$10; unused:$FF);
    50 
    50 
    51     cWhiteColor           : Longword = $FFFFFFFF;
    51     cWhiteColor           : Longword = $FFFFFFFF;
    52     cYellowColor          : Longword = $FFFFFF00;
    52     cYellowColor          : Longword = $FFFFFF00;
    53     cNearBlackColor       : Longword = $FF000010;
    53     cNearBlackColor       : Longword = $FF000010;
    54     cExplosionBorderColor : LongWord = $FF808080;
       
    55 
    54 
    56 {$WARNINGS OFF}
    55 {$WARNINGS OFF}
    57     cAirPlaneSpeed: hwFloat = (isNegative: false; QWordValue:   3006477107); // 1.4
    56     cAirPlaneSpeed: hwFloat = (isNegative: false; QWordValue:   3006477107); // 1.4
    58     cBombsSpeed   : hwFloat = (isNegative: false; QWordValue:    429496729);
    57     cBombsSpeed   : hwFloat = (isNegative: false; QWordValue:    429496729);
    59 {$WARNINGS ON}
    58 {$WARNINGS ON}
   113 
   112 
   114     cSendCursorPosTime  : LongWord = 50;
   113     cSendCursorPosTime  : LongWord = 50;
   115     cVisibleWater       : LongInt = 128;
   114     cVisibleWater       : LongInt = 128;
   116     cCursorEdgesDist    : LongInt = 100;
   115     cCursorEdgesDist    : LongInt = 100;
   117     cTeamHealthWidth    : LongInt = 128;
   116     cTeamHealthWidth    : LongInt = 128;
   118     cWaterOpacity       : byte = $80;
       
   119     cSDWaterOpacity     : byte = $80;
       
   120 
   117 
   121     cifRandomize = $00000001;
   118     cifRandomize = $00000001;
   122     cifTheme     = $00000002;
   119     cifTheme     = $00000002;
   123     cifMap       = $00000002; // either theme or map (or map+theme)
   120     cifMap       = $00000002; // either theme or map (or map+theme)
   124     cifAllInited = cifRandomize or cifTheme or cifMap;
   121     cifAllInited = cifRandomize or cifTheme or cifMap;
   125 
   122 
   126     cTransparentColor: Longword = $00000000;
   123     cTransparentColor: Longword = $00000000;
   127     cGrayScale: Boolean = false;
       
   128 
   124 
   129     RGB_LUMINANCE_RED    = 0.212671;
   125     RGB_LUMINANCE_RED    = 0.212671;
   130     RGB_LUMINANCE_GREEN  = 0.715160;
   126     RGB_LUMINANCE_GREEN  = 0.715160;
   131     RGB_LUMINANCE_BLUE   = 0.072169;
   127     RGB_LUMINANCE_BLUE   = 0.072169;
   132 (*
       
   133     RGB_LUMINANCE_RED    = 0.3333333333;
       
   134     RGB_LUMINANCE_GREEN  = 0.3333333333;
       
   135     RGB_LUMINANCE_BLUE   = 0.3333333333;
       
   136 *)
       
   137 
   128 
   138     cMaxTeams        = 8;
   129     cMaxTeams        = 8;
   139     cMaxHHIndex      = 7;
   130     cMaxHHIndex      = 7;
   140     cMaxHHs          = 48;
   131     cMaxHHs          = 48;
   141     cMaxSpawnPoints  = 1024;
   132     cMaxSpawnPoints  = 1024;
   155     cShotgunRadius = 22;
   146     cShotgunRadius = 22;
   156     cBlowTorchC    = 6;
   147     cBlowTorchC    = 6;
   157 
   148 
   158     cKeyMaxIndex = 1023;
   149     cKeyMaxIndex = 1023;
   159 
   150 
       
   151     cHHFileName = 'Hedgehog';
       
   152     cCHFileName = 'Crosshair';
       
   153     cThemeCFGFilename = 'theme.cfg';
       
   154 
       
   155     cFontBorder = 2;
   160 
   156 
   161     // do not change this value
   157     // do not change this value
   162     cDefaultZoomLevel = 2.0;
   158     cDefaultZoomLevel = 2.0;
   163 
   159 
   164 {$IFDEF MOBILE}
   160 {$IFDEF MOBILE}
   314 
   310 
   315 {$IFDEF USE_TOUCH_INTERFACE}
   311 {$IFDEF USE_TOUCH_INTERFACE}
   316     FADE_ANIM_TIME = 500;
   312     FADE_ANIM_TIME = 500;
   317     MOVE_ANIM_TIME = 500;
   313     MOVE_ANIM_TIME = 500;
   318 {$ENDIF}
   314 {$ENDIF}
       
   315 
       
   316     cTagsMasks : array[0..15] of byte = (7, 0, 0, 0, 15, 6, 4, 5, 0, 0, 0, 0, 0, 14, 12, 13);
       
   317     cTagsMasksNoHealth: array[0..15] of byte = (3, 2, 11, 1, 0, 0, 0, 0, 0, 10, 0, 9, 0, 0, 0, 0);
       
   318        
   319 implementation
   319 implementation
   320 
   320 
   321 end.
   321 end.