hedgewars/uConsts.pas
changeset 3693 09892cdb8f95
parent 3689 e2be39ee19f0
child 3697 d5b30d6373fc
equal deleted inserted replaced
3680:aaf832c6fbd7 3693:09892cdb8f95
    71             sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction,
    71             sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction,
    72             sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster,
    72             sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster,
    73             sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp,
    73             sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp,
    74             sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee, 
    74             sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee, 
    75             sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal,
    75             sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal,
    76             sprCheese, sprHandCheese, sprHandFlamethrower
    76             sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk
    77             );
    77             );
    78     
    78     
    79     // Gears that interact with other Gears and/or Land
    79     // Gears that interact with other Gears and/or Land
    80     TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtGrave, gtBee, // 4
    80     TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtGrave, gtBee, // 4
    81             gtShotgunShot, gtPickHammer, gtRope, gtMine, gtCase, // 9
    81             gtShotgunShot, gtPickHammer, gtRope, gtMine, gtCase, // 9
    92     TVisualGearType = (vgtFlake, vgtCloud, vgtExplPart, vgtExplPart2, vgtFire,
    92     TVisualGearType = (vgtFlake, vgtCloud, vgtExplPart, vgtExplPart2, vgtFire,
    93             vgtSmallDamageTag, vgtTeamHealthSorter, vgtSpeechBubble, vgtBubble,
    93             vgtSmallDamageTag, vgtTeamHealthSorter, vgtSpeechBubble, vgtBubble,
    94             vgtSteam, vgtAmmo, vgtSmoke, vgtSmokeWhite, vgtHealth, vgtShell,
    94             vgtSteam, vgtAmmo, vgtSmoke, vgtSmokeWhite, vgtHealth, vgtShell,
    95             vgtDust, vgtSplash, vgtDroplet, vgtSmokeRing, vgtBeeTrace, vgtEgg,
    95             vgtDust, vgtSplash, vgtDroplet, vgtSmokeRing, vgtBeeTrace, vgtEgg,
    96             vgtFeather, vgtHealthTag, vgtSmokeTrace, vgtEvilTrace, vgtExplosion,
    96             vgtFeather, vgtHealthTag, vgtSmokeTrace, vgtEvilTrace, vgtExplosion,
    97             vgtBigExplosion);
    97             vgtBigExplosion, vgtChunk);
    98 
    98 
    99     TGearsType = set of TGearType;
    99     TGearsType = set of TGearType;
       
   100 
       
   101     TDamageSource = (dsUnknown, dsFall, dsBullet, dsExplosion, dsShove, dsPoison);
   100 
   102 
   101     TSound = (sndNone,
   103     TSound = (sndNone,
   102             sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
   104             sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
   103             sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
   105             sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
   104             sndMineTick, sndPickhammer, sndGun, sndBee, sndJump1, sndJump2,
   106             sndMineTick, sndPickhammer, sndGun, sndBee, sndJump1, sndJump2,
   105             sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming,
   107             sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming,
   106             sndMissed, sndStupid, sndFirstBlood, sndBoring, sndByeBye,
   108             sndMissed, sndStupid, sndFirstBlood, sndBoring, sndByeBye,
   107             sndSameTeam, sndNutter, sndReinforce, sndTraitor, sndRegret,
   109             sndSameTeam, sndNutter, sndReinforce, sndTraitor, sndRegret,
   108             sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze,
   110             sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze,
   109             sndCake, sndOw1, sndOw4, sndFirePunch1, sndFirePunch2,
   111             sndCake, sndOw1, sndOw2, sndOw3, sndOw4, sndFirePunch1, sndFirePunch2,
   110             sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6,
   112             sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6,
   111             sndMelon, sndHellish, sndYoohoo, sndRCPlane, sndWhipCrack,
   113             sndMelon, sndHellish, sndYoohoo, sndRCPlane, sndWhipCrack,
   112             sndRideOfTheValkyries, sndDenied, sndPlaced, sndBaseballBat,
   114             sndRideOfTheValkyries, sndDenied, sndPlaced, sndBaseballBat,
   113             sndVaporize, sndWarp, sndSuddenDeath, sndMortar, sndShutter,
   115             sndVaporize, sndWarp, sndSuddenDeath, sndMortar, sndShutter,
   114             sndHomerun, sndMolotov, sndCover, sndUhOh, sndOops,
   116             sndHomerun, sndMolotov, sndCover, sndUhOh, sndOops,
   116             sndSwitchHog, sndVictory, sndSniperReload, sndSteps, sndLowGravity,
   118             sndSwitchHog, sndVictory, sndSniperReload, sndSteps, sndLowGravity,
   117             sndHellishImpact1, sndHellishImpact2, sndHellishImpact3, sndHellishImpact4,
   119             sndHellishImpact1, sndHellishImpact2, sndHellishImpact3, sndHellishImpact4,
   118             sndMelonImpact, sndDroplet1, sndDroplet2, sndDroplet3, sndEggBreak, sndDrillRocket,
   120             sndMelonImpact, sndDroplet1, sndDroplet2, sndDroplet3, sndEggBreak, sndDrillRocket,
   119             sndPoisonCough, sndPoisonMoan, sndBirdyLay, sndWhistle, sndBeeWater,
   121             sndPoisonCough, sndPoisonMoan, sndBirdyLay, sndWhistle, sndBeeWater,
   120             sndPiano0, sndPiano1, sndPiano2, sndPiano3, sndPiano4, sndPiano5, sndPiano6, sndPiano7, sndPiano8,
   122             sndPiano0, sndPiano1, sndPiano2, sndPiano3, sndPiano4, sndPiano5, sndPiano6, sndPiano7, sndPiano8,
   121             sndSkip, sndSineGun);
   123             sndSkip, sndSineGun, sndOoff1, sndOoff2, sndOoff3);
   122 
   124 
   123     TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer,
   125     TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer,
   124             amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, amWhip,
   126             amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, amWhip,
   125             amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch,
   127             amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch,
   126             amGirder, amTeleport, amSwitch, amMortar, amKamikaze, amCake,
   128             amGirder, amTeleport, amSwitch, amMortar, amKamikaze, amCake,
   557             (FileName:       'SkyL'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   559             (FileName:       'SkyL'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   558             Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: true; getImageDimensions: true),// sprSky
   560             Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: true; getImageDimensions: true),// sprSky
   559             (FileName:       'SkyR'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   561             (FileName:       'SkyR'; Path: ptCurrTheme;AltPath: ptNone; Texture: nil; Surface: nil;
   560             Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: true; getImageDimensions: true),// sprSky
   562             Width:   0; Height:  0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: true; getImageDimensions: true),// sprSky
   561             (FileName:  'BorderHorizontal'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   563             (FileName:  'BorderHorizontal'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   562             Width: 33; Height:  2; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: true),// sprAMBorderHorizontal
   564             Width: 33; Height:  2; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: true),// sprAMBorderHorizontal
   563             (FileName:  'BorderVertical'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   565             (FileName:  'BorderVertical'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   564             Width: 2; Height: 33; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpLow; getDimensions: false; getImageDimensions: true),// sprAMBorderVertical
   566             Width: 2; Height: 33; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpLow; getDimensions: false; getImageDimensions: true),// sprAMBorderVertical
   565             (FileName:   'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   567             (FileName:   'Slot'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   566             Width: 33; Height: 33; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMSlot
   568             Width: 33; Height: 33; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMSlot
   567             (FileName:      'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   569             (FileName:      'Ammos'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   568             Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMAmmos
   570             Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMAmmos
   569             (FileName:   'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   571             (FileName:   'SlotKeys'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   570             Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMSlotKeys
   572             Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMSlotKeys
   571             (FileName:  'Corners'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   573             (FileName:  'Corners'; Path: ptAmmoMenu; AltPath: ptNone; Texture: nil; Surface: nil;
   572             Width:  2; Height: 2; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMCorners
   574             Width:  2; Height: 2; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAMCorners
   573             (FileName:     'Finger'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   575             (FileName:     'Finger'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   574             Width:  32; Height: 48; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprFinger
   576             Width:  32; Height: 48; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprFinger
   575             (FileName:    'AirBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   577             (FileName:    'AirBomb'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   576             Width:  16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAirBomb
   578             Width:  16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAirBomb
   577             (FileName:   'Airplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   579             (FileName:   'Airplane'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   793             (FileName:  'cheese'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   795             (FileName:  'cheese'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   794             Width:  16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprCheese
   796             Width:  16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprCheese
   795             (FileName:  'amCheese'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   797             (FileName:  'amCheese'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   796             Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHandCheese
   798             Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHandCheese
   797             (FileName:  'amFlamethrower'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   799             (FileName:  'amFlamethrower'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
   798             Width:  128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true) // sprHandFlamethrower
   800             Width:  128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHandFlamethrower
       
   801             (FileName:  'Chunk'; Path: ptCurrTheme; AltPath: ptGraphics; Texture: nil; Surface: nil;
       
   802             Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true) // sprChunk
   799             );
   803             );
   800 
   804 
   801     Wavez: array [TWave] of record
   805     Wavez: array [TWave] of record
   802             Sprite: TSprite;
   806             Sprite: TSprite;
   803             FramesCount: Longword;
   807             FramesCount: Longword;
   854             (FileName:                'Hurry.ogg'; Path: ptVoices),// sndHurry
   858             (FileName:                'Hurry.ogg'; Path: ptVoices),// sndHurry
   855             (FileName:              'Watchit.ogg'; Path: ptVoices),// sndWatchIt
   859             (FileName:              'Watchit.ogg'; Path: ptVoices),// sndWatchIt
   856             (FileName:             'Kamikaze.ogg'; Path: ptVoices),// sndKamikaze
   860             (FileName:             'Kamikaze.ogg'; Path: ptVoices),// sndKamikaze
   857             (FileName:                'cake2.ogg'; Path: ptSounds),// sndCake
   861             (FileName:                'cake2.ogg'; Path: ptSounds),// sndCake
   858             (FileName:                  'Ow1.ogg'; Path: ptVoices),// sndOw1
   862             (FileName:                  'Ow1.ogg'; Path: ptVoices),// sndOw1
       
   863             (FileName:                  'Ow2.ogg'; Path: ptVoices),// sndOw2
       
   864             (FileName:                  'Ow3.ogg'; Path: ptVoices),// sndOw3
   859             (FileName:                  'Ow4.ogg'; Path: ptVoices),// sndOw4
   865             (FileName:                  'Ow4.ogg'; Path: ptVoices),// sndOw4
   860             (FileName:           'Firepunch1.ogg'; Path: ptVoices),// sndFirepunch1
   866             (FileName:           'Firepunch1.ogg'; Path: ptVoices),// sndFirepunch1
   861             (FileName:           'Firepunch2.ogg'; Path: ptVoices),// sndFirepunch2
   867             (FileName:           'Firepunch2.ogg'; Path: ptVoices),// sndFirepunch2
   862             (FileName:           'Firepunch3.ogg'; Path: ptVoices),// sndFirepunch3
   868             (FileName:           'Firepunch3.ogg'; Path: ptVoices),// sndFirepunch3
   863             (FileName:           'Firepunch4.ogg'; Path: ptVoices),// sndFirepunch4
   869             (FileName:           'Firepunch4.ogg'; Path: ptVoices),// sndFirepunch4
   915             (FileName:                   '6A.ogg'; Path: ptSounds),// sndPiano5
   921             (FileName:                   '6A.ogg'; Path: ptSounds),// sndPiano5
   916             (FileName:                   '7B.ogg'; Path: ptSounds),// sndPiano6
   922             (FileName:                   '7B.ogg'; Path: ptSounds),// sndPiano6
   917             (FileName:                   '8C.ogg'; Path: ptSounds),// sndPiano7
   923             (FileName:                   '8C.ogg'; Path: ptSounds),// sndPiano7
   918             (FileName:                   '9D.ogg'; Path: ptSounds),// sndPiano8
   924             (FileName:                   '9D.ogg'; Path: ptSounds),// sndPiano8
   919             (FileName:                 'skip.ogg'; Path: ptSounds),// sndSkip
   925             (FileName:                 'skip.ogg'; Path: ptSounds),// sndSkip
   920             (FileName:          'shotgunfire.ogg'; Path: ptSounds) // sndSineGun
   926             (FileName:          'shotgunfire.ogg'; Path: ptSounds),// sndSineGun
       
   927             (FileName:                'Ooff1.ogg'; Path: ptVoices),// sndOoff1
       
   928             (FileName:                'Ooff2.ogg'; Path: ptVoices),// sndOoff2
       
   929             (FileName:                'Ooff3.ogg'; Path: ptVoices) // sndOoff3
   921             );
   930             );
   922 
   931 
   923     Ammoz: array [TAmmoType] of record
   932     Ammoz: array [TAmmoType] of record
   924             NameId: TAmmoStrId;
   933             NameId: TAmmoStrId;
   925             NameTex: PTexture;
   934             NameTex: PTexture;