hedgewars/uVariables.pas
changeset 7730 2013733f9ca9
parent 7660 8398faa1e628
child 7754 e81dc9bef8b8
equal deleted inserted replaced
7729:c374746bb56e 7730:2013733f9ca9
   659             (FileName:  'TARDIS'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   659             (FileName:  'TARDIS'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   660             Width:  48; Height: 79; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprTardis
   660             Width:  48; Height: 79; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprTardis
   661             (FileName:  'slider'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   661             (FileName:  'slider'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   662             Width: 3; Height: 17; imageWidth: 3; imageHeight: 17; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprSlider
   662             Width: 3; Height: 17; imageWidth: 3; imageHeight: 17; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprSlider
   663             (FileName:  'botlevels'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   663             (FileName:  'botlevels'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   664             Width: 22; Height: 15; imageWidth: 22; imageHeight: 15; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: false) // sprBotlevels
   664             Width: 22; Height: 15; imageWidth: 22; imageHeight: 15; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: false), // sprBotlevels
       
   665             (FileName:  'amKnife'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
       
   666             Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHandKnife
       
   667             (FileName:  'knife'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
       
   668             Width: 29; Height: 14; imageWidth: 64; imageHeight: 64; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: false) // sprKnife
   665             );
   669             );
   666 
   670 
   667 const
   671 const
   668     Wavez: array [TWave] of record
   672     Wavez: array [TWave] of record
   669             Sprite: TSprite;
   673             Sprite: TSprite;
  2319             isDamaging: true;
  2323             isDamaging: true;
  2320             SkipTurns: 0;
  2324             SkipTurns: 0;
  2321             PosCount: 1;
  2325             PosCount: 1;
  2322             PosSprite: sprWater;
  2326             PosSprite: sprWater;
  2323             ejectX: 0; //20;
  2327             ejectX: 0; //20;
  2324             ejectY: -3)
  2328             ejectY: -3),
       
  2329 // Knife
       
  2330             (NameId: sidKnife;
       
  2331             NameTex: nil;
       
  2332             Probability: 100;
       
  2333             NumberInCase: 1;
       
  2334             Ammo: (Propz: ammoprop_Power or
       
  2335                           ammoprop_NeedUpDown; //FIXME: enable multishoot at altuse, until then removed ammoprop_AltUse
       
  2336                 Count: 1;
       
  2337                 NumPerTurn: 3;
       
  2338                 Timer: 0;
       
  2339                 Pos: 0;
       
  2340                 AmmoType: amKnife;
       
  2341                 AttackVoice: sndNone;
       
  2342                 Bounciness: 1000);
       
  2343             Slot: 6;
       
  2344             TimeAfterTurn: 3000;
       
  2345             minAngle: 0;
       
  2346             maxAngle: 0;
       
  2347             isDamaging: true;
       
  2348             SkipTurns: 0;
       
  2349             PosCount: 1;
       
  2350             PosSprite: sprWater;
       
  2351             ejectX: 0;
       
  2352             ejectY: 0)
  2325         );
  2353         );
  2326 
  2354 
  2327 const
  2355 const
  2328     GearKindAmmoTypeMap : array [TGearType] of TAmmoType = (    
  2356     GearKindAmmoTypeMap : array [TGearType] of TAmmoType = (    
  2329 (*          gtFlame *)   amNothing
  2357 (*          gtFlame *)   amNothing
  2389 (*        gtLandGun *) , amLandGun
  2417 (*        gtLandGun *) , amLandGun
  2390 (*         gtTardis *) , amTardis
  2418 (*         gtTardis *) , amTardis
  2391 (*         gtIceGun *) , amIceGun
  2419 (*         gtIceGun *) , amIceGun
  2392 (*        gtAddAmmo *) , amNothing
  2420 (*        gtAddAmmo *) , amNothing
  2393 (*  gtGenericFaller *) , amNothing
  2421 (*  gtGenericFaller *) , amNothing
       
  2422 (*          gtKnife *) , amKnife
  2394     );
  2423     );
  2395 
  2424 
  2396 var
  2425 var
  2397     Land: TCollisionArray;
  2426     Land: TCollisionArray;
  2398     LandPixels: TLandArray;
  2427     LandPixels: TLandArray;