hedgewars/uConsts.pas
changeset 8145 6408c0ba4ba1
parent 8143 3f2ba6debbdd
child 8204 9a6030d96273
equal deleted inserted replaced
8143:3f2ba6debbdd 8145:6408c0ba4ba1
   110     GL_BGRA             = $80E1;
   110     GL_BGRA             = $80E1;
   111     GL_CLAMP_TO_EDGE    = $812F;
   111     GL_CLAMP_TO_EDGE    = $812F;
   112     GL_TEXTURE_PRIORITY = $8066;
   112     GL_TEXTURE_PRIORITY = $8066;
   113     {$ENDIF}
   113     {$ENDIF}
   114 
   114 
   115     cSendCursorPosTime  : LongWord = 50;
       
   116     cVisibleWater       : LongInt = 128;
   115     cVisibleWater       : LongInt = 128;
   117     cCursorEdgesDist    : LongInt = 100;
       
   118     cTeamHealthWidth    : LongInt = 128;
   116     cTeamHealthWidth    : LongInt = 128;
   119 
   117 
   120     cifRandomize = $00000001;
   118     cifRandomize = $00000001;
   121     cifTheme     = $00000002;
   119     cifTheme     = $00000002;
   122     cifMap       = $00000002; // either theme or map (or map+theme)
   120     cifMap       = $00000002; // either theme or map (or map+theme)
   133     cMaxEdgePoints = 16384;
   131     cMaxEdgePoints = 16384;
   134 
   132 
   135     cHHRadius = 9;
   133     cHHRadius = 9;
   136     cHHStepTicks = 29;
   134     cHHStepTicks = 29;
   137 
   135 
   138     cUsualZ = 500;
       
   139     cSmokeZ = 499;
       
   140     cHHZ = 1000;
   136     cHHZ = 1000;
   141     cCurrHHZ = Succ(cHHZ);
   137     cCurrHHZ = Succ(cHHZ);
   142     cOnHHZ = 2000;
       
   143 
   138 
   144     cBarrelHealth = 60;
   139     cBarrelHealth = 60;
   145     cShotgunRadius = 22;
   140     cShotgunRadius = 22;
   146     cBlowTorchC    = 6;
   141     cBlowTorchC    = 6;
   147     cakeDmg =   75;
   142     cakeDmg =   75;
   148 
   143 
   149     cKeyMaxIndex = 1023;
   144     cKeyMaxIndex = 1023;
   150     cKbdMaxIndex = 65536;//need more room for the modifier keys
   145     cKbdMaxIndex = 65536;//need more room for the modifier keys
   151 
   146 
   152     cHHFileName = 'Hedgehog';
       
   153     cCHFileName = 'Crosshair';
       
   154     cThemeCFGFilename = 'theme.cfg';
       
   155 
       
   156     cFontBorder = 2;
   147     cFontBorder = 2;
   157 
   148 
   158     // do not change this value
   149     // do not change this value
   159     cDefaultZoomLevel = 2.0;
   150     cDefaultZoomLevel = 2.0;
   160 
       
   161     cSendEmptyPacketTime = 1000;
       
   162 
   151 
   163     // game flags
   152     // game flags
   164     gfAny                = $FFFFFFFF;
   153     gfAny                = $FFFFFFFF;
   165     gfOneClanMode        = $00000001;           // used in trainings
   154     gfOneClanMode        = $00000001;           // used in trainings
   166     gfMultiWeapon        = $00000002;           // used in trainings
   155     gfMultiWeapon        = $00000002;           // used in trainings
   284     posCasePoison  = $00000020;
   273     posCasePoison  = $00000020;
   285 
   274 
   286     NoPointX = Low(LongInt);
   275     NoPointX = Low(LongInt);
   287     cTargetPointRef : TPoint = (X: NoPointX; Y: 0);
   276     cTargetPointRef : TPoint = (X: NoPointX; Y: 0);
   288 
   277 
   289     // hog tag mask
       
   290     htNone        = $00;
       
   291     htTeamName    = $01;
       
   292     htName        = $02;
       
   293     htHealth      = $04;
       
   294     htTransparent = $08;
       
   295 
       
   296     AMAnimDuration = 200;
       
   297     AMHidden    = 0;//AMState values
       
   298     AMShowingUp = 1;
       
   299     AMShowing   = 2;
       
   300     AMHiding    = 3;
       
   301 
       
   302     AMTypeMaskX     = $00000001;
       
   303     AMTypeMaskY     = $00000002;
       
   304     AMTypeMaskAlpha = $00000004;
       
   305     AMTypeMaskSlide = $00000008;
       
   306 
       
   307 {$IFDEF MOBILE}
       
   308     AMSlotSize = 48;
       
   309     AMTITLE = 30;
       
   310 {$ELSE}
       
   311     AMSlotSize = 32;
       
   312 {$ENDIF}
       
   313     AMSlotPadding = (AMSlotSize - 32) shr 1;
       
   314 
       
   315 {$IFDEF USE_TOUCH_INTERFACE}
       
   316     FADE_ANIM_TIME = 500;
       
   317     MOVE_ANIM_TIME = 500;
       
   318 {$ENDIF}
       
   319 
       
   320     cTagsMasks : array[0..15] of byte = (7, 0, 0, 0, 15, 6, 4, 5, 0, 0, 0, 0, 0, 14, 12, 13);
       
   321     cTagsMasksNoHealth: array[0..15] of byte = (3, 2, 11, 1, 0, 0, 0, 0, 0, 10, 0, 9, 0, 0, 0, 0);
       
   322        
       
   323 implementation
   278 implementation
   324 
   279 
   325 end.
   280 end.