hedgewars/uConsts.pas
changeset 799 71ba310da909
parent 793 c4a790225799
child 800 e95f16b7ec80
equal deleted inserted replaced
798:02753868d459 799:71ba310da909
    27 
    27 
    28      TGameType  = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview);
    28      TGameType  = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview);
    29 
    29 
    30      TPathType  = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps,
    30      TPathType  = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps,
    31                    ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts,
    31                    ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts,
    32                    ptLocale, ptAmmoMenu);
    32                    ptLocale, ptAmmoMenu, ptVoices);
    33 
    33 
    34      TSprite    = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
    34      TSprite    = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
    35                    sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO,
    35                    sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO,
    36                    sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff,
    36                    sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff,
    37                    sprMineOn, sprCase, sprFAid, sprDynamite, sprPower,
    37                    sprMineOn, sprCase, sprFAid, sprDynamite, sprPower,
    53 
    53 
    54      TGearsType = set of TGearType;
    54      TGearsType = set of TGearType;
    55 
    55 
    56      TSound     = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
    56      TSound     = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
    57                    sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
    57                    sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
    58                    sndMineTick, sndPickhammer, sndGun, sndUFO);
    58                    sndMineTick, sndPickhammer, sndGun, sndUFO, sndJump1, sndJump2,
       
    59                    sndJump3);
    59 
    60 
    60      TAmmoType  = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer,
    61      TAmmoType  = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer,
    61                    amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch,
    62                    amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch,
    62                    amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch,
    63                    amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch,
    63                    amGirder, amTeleport, amSwitch);
    64                    amGirder, amTeleport, amSwitch);
   232                                                'Sounds',                        // ptSounds
   233                                                'Sounds',                        // ptSounds
   233                                                'Graphics/Graves',               // ptGraves
   234                                                'Graphics/Graves',               // ptGraves
   234                                                'Fonts',                         // ptFonts
   235                                                'Fonts',                         // ptFonts
   235                                                'Forts',                         // ptForts
   236                                                'Forts',                         // ptForts
   236                                                'Locale',                        // ptLocale
   237                                                'Locale',                        // ptLocale
   237                                                'Graphics/AmmoMenu'              // ptAmmoMenu
   238                                                'Graphics/AmmoMenu',             // ptAmmoMenu
       
   239                                                'Sounds/voices'                  // ptVoices
   238                                                );
   240                                                );
   239 
   241 
   240       SpritesData: array[TSprite] of record
   242       SpritesData: array[TSprite] of record
   241                      FileName: String[31];
   243                      FileName: String[31];
   242                      Path, AltPath: TPathType;
   244                      Path, AltPath: TPathType;
   338                      (FileName:      'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   340                      (FileName:      'WindR'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
   339                       Width:  80; Height: 13; saveSurf: false) // sprWindR
   341                       Width:  80; Height: 13; saveSurf: false) // sprWindR
   340                      );
   342                      );
   341 
   343 
   342       Soundz: array[TSound] of record
   344       Soundz: array[TSound] of record
   343                                        FileName: String[31];
   345                 FileName: String[31];
   344                                        Path    : TPathType;
   346                 Path    : TPathType;
   345                                        id      : PMixChunk;
   347                 id      : PMixChunk;
   346                                        lastChan: LongInt;
   348                 lastChan: LongInt;
   347                                        end = (
   349                 end = (
   348                                        (FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact
   350                 (FileName: 'grenadeimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGrenadeImpact
   349                                        (FileName:     'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion
   351                 (FileName:     'explosion.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndExplosion
   350                                        (FileName:  'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp
   352                 (FileName:  'throwpowerup.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowPowerUp
   351                                        (FileName:  'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease
   353                 (FileName:  'throwrelease.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndThrowRelease
   352                                        (FileName:        'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash
   354                 (FileName:        'splash.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndSplash
   353                                        (FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload
   355                 (FileName: 'shotgunreload.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunReload
   354                                        (FileName:   'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire
   356                 (FileName:   'shotgunfire.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndShotgunFire
   355                                        (FileName:   'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact
   357                 (FileName:   'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact
   356                                        (FileName:      'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks
   358                 (FileName:      'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks
   357                                        (FileName:    'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer
   359                 (FileName:    'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer
   358                                        (FileName:           'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun
   360                 (FileName:           'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun
   359                                        (FileName:           'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndUFO
   361                 (FileName:           'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndUFO
   360                                        );
   362                 (FileName:         'Jump1.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump1
       
   363                 (FileName:         'Jump2.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndJump2
       
   364                 (FileName:         'Jump3.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndJump3
       
   365 );
   361 
   366 
   362       Ammoz: array [TAmmoType] of record
   367       Ammoz: array [TAmmoType] of record
   363                                   NameId: TAmmoStrId;
   368                                   NameId: TAmmoStrId;
   364                                   Probability, NumberInCase: Longword;
   369                                   Probability, NumberInCase: Longword;
   365                                   Ammo: TAmmo;
   370                                   Ammo: TAmmo;