hedgewars/uVariables.pas
changeset 9768 08799c901a42
parent 9723 31d10d684e90
child 9769 5814e0c47c99
equal deleted inserted replaced
9767:17df4c8201f6 9768:08799c901a42
    44     PathPrefix         : shortstring;
    44     PathPrefix         : shortstring;
    45     UserPathPrefix     : shortstring;
    45     UserPathPrefix     : shortstring;
    46     cShowFPS           : boolean;
    46     cShowFPS           : boolean;
    47     cFlattenFlakes     : boolean;
    47     cFlattenFlakes     : boolean;
    48     cFlattenClouds     : boolean;
    48     cFlattenClouds     : boolean;
       
    49     cIce               : boolean;
       
    50     cSnow              : boolean;
       
    51 
    49     cAltDamage         : boolean;
    52     cAltDamage         : boolean;
    50     cReducedQuality    : LongWord;
    53     cReducedQuality    : LongWord;
    51     UserNick           : shortstring;
    54     UserNick           : shortstring;
    52     recordFileName     : shortstring;
    55     recordFileName     : shortstring;
    53     cReadyDelay        : Longword;
    56     cReadyDelay        : Longword;
   677             (FileName:  'icetexture'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   680             (FileName:  'icetexture'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   678             Width: 128; Height: 128; imageWidth: 128; imageHeight: 128; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: true), // sprIceTexture
   681             Width: 128; Height: 128; imageWidth: 128; imageHeight: 128; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: true), // sprIceTexture
   679             (FileName:  'amIceGun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   682             (FileName:  'amIceGun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   680             Width: 32; Height: 32; imageWidth: 32; imageHeight: 32; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprIceGun
   683             Width: 32; Height: 32; imageWidth: 32; imageHeight: 32; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprIceGun
   681             (FileName:  'amFrozenHog'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   684             (FileName:  'amFrozenHog'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   682             Width: 64; Height: 64; imageWidth: 64; imageHeight: 64; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false) // sprFrozenHog
   685             Width: 64; Height: 64; imageWidth: 64; imageHeight: 64; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprFrozenHog
       
   686             (FileName:   'amRubber'; Path: ptCurrTheme; AltPath: ptGraphics; Texture: nil; Surface: nil;
       
   687             Width: 160; Height:160; imageWidth: 0; imageHeight: 0; saveSurf:  true; priority: tpMedium; getDimensions: false; getImageDimensions: true) // sprAmRubber
   683             );
   688             );
   684 
   689 
   685 const
   690 const
   686     Wavez: array [TWave] of record
   691     Wavez: array [TWave] of record
   687             Sprite: TSprite;
   692             Sprite: TSprite;
  1870                 Timer: 0;
  1875                 Timer: 0;
  1871                 Pos: 0;
  1876                 Pos: 0;
  1872                 AmmoType: amPortalGun;
  1877                 AmmoType: amPortalGun;
  1873                 AttackVoice: sndNone;
  1878                 AttackVoice: sndNone;
  1874                 Bounciness: 1000);
  1879                 Bounciness: 1000);
  1875             Slot: 6;
  1880             Slot: 7;
  1876             TimeAfterTurn: 0;
  1881             TimeAfterTurn: 0;
  1877             minAngle: 0;
  1882             minAngle: 0;
  1878             maxAngle: 0;
  1883             maxAngle: 0;
  1879             isDamaging: false;
  1884             isDamaging: false;
  1880             SkipTurns: 0;
  1885             SkipTurns: 0;
  2135                 Timer: 0;
  2140                 Timer: 0;
  2136                 Pos: 0;
  2141                 Pos: 0;
  2137                 AmmoType: amTardis;
  2142                 AmmoType: amTardis;
  2138                 AttackVoice: sndNone;
  2143                 AttackVoice: sndNone;
  2139                 Bounciness: 1000);
  2144                 Bounciness: 1000);
  2140             Slot: 7;
  2145             Slot: 8;
  2141             TimeAfterTurn: 0;
  2146             TimeAfterTurn: 0;
  2142             minAngle: 0;
  2147             minAngle: 0;
  2143             maxAngle: 0;
  2148             maxAngle: 0;
  2144             isDamaging: false;
  2149             isDamaging: false;
  2145             SkipTurns: 0;
  2150             SkipTurns: 0;
  2247             maxAngle: 0;
  2252             maxAngle: 0;
  2248             isDamaging: true;
  2253             isDamaging: true;
  2249             SkipTurns: 0;
  2254             SkipTurns: 0;
  2250             PosCount: 1;
  2255             PosCount: 1;
  2251             PosSprite: sprWater;
  2256             PosSprite: sprWater;
       
  2257             ejectX: 0;
       
  2258             ejectY: 0),
       
  2259 // Rubber
       
  2260             (NameId: sidRubber;
       
  2261             NameTex: nil;
       
  2262             Probability: 150;
       
  2263             NumberInCase: 1;
       
  2264             Ammo: (Propz: ammoprop_NoRoundEnd or
       
  2265                           ammoprop_NoCrosshair or
       
  2266                           ammoprop_NeedTarget or
       
  2267                           ammoprop_Utility or
       
  2268                           ammoprop_AttackingPut;
       
  2269                     Count: 1;
       
  2270                     NumPerTurn: 0;
       
  2271                     Timer: 0;
       
  2272                     Pos: 0;
       
  2273                     AmmoType: amRubber;
       
  2274                     AttackVoice: sndNone;
       
  2275                 Bounciness: 1000);
       
  2276             Slot: 6;
       
  2277             TimeAfterTurn: 3000;
       
  2278             minAngle: 0;
       
  2279             maxAngle: 0;
       
  2280             isDamaging: false;
       
  2281             SkipTurns: 0;
       
  2282             PosCount: 4;
       
  2283             PosSprite: sprAmRubber;
  2252             ejectX: 0;
  2284             ejectX: 0;
  2253             ejectY: 0)
  2285             ejectY: 0)
  2254         );
  2286         );
  2255 
  2287 
  2256 var
  2288 var
  2386     // TODO: we could just have one cLocale variables and drop strutils
  2418     // TODO: we could just have one cLocale variables and drop strutils
  2387     cLocale:= ExtractDelimited(1, cLocaleFName, StdWordDelims);
  2419     cLocale:= ExtractDelimited(1, cLocaleFName, StdWordDelims);
  2388 
  2420 
  2389     cFlattenFlakes      := false;
  2421     cFlattenFlakes      := false;
  2390     cFlattenClouds      := false;
  2422     cFlattenClouds      := false;
       
  2423     cIce                := false;
       
  2424     cSnow               := false;
  2391     lastVisualGearByUID := nil;
  2425     lastVisualGearByUID := nil;
  2392     lastGearByUID       := nil;
  2426     lastGearByUID       := nil;
  2393     cReadyDelay         := 5000;
  2427     cReadyDelay         := 5000;
  2394 
  2428 
  2395         {*  REFERENCE
  2429         {*  REFERENCE