hedgewars/uConsts.pas
author unc0rr
Mon, 22 Aug 2005 21:38:06 +0000
changeset 3 ffe4ad26a64c
parent 2 4eeab397c3c6
child 4 bcbd7adb4e4b
permissions -rw-r--r--
- On every frame there was made one superfluous game tick resulting in variable game speed - Removed comment written in russian
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     1
(*
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2004, 2005 Andrey Korotaev <unC0Rr@gmail.com>
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     4
 *
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     5
 * Distributed under the terms of the BSD-modified licence:
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     6
 *
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     8
 * of this software and associated documentation files (the "Software"), to deal
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
     9
 * with the Software without restriction, including without limitation the
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    10
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    11
 * sell copies of the Software, and to permit persons to whom the Software is
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    12
 * furnished to do so, subject to the following conditions:
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    13
 *
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    14
 * 1. Redistributions of source code must retain the above copyright notice,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    15
 *    this list of conditions and the following disclaimer.
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    16
 * 2. Redistributions in binary form must reproduce the above copyright notice,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    17
 *    this list of conditions and the following disclaimer in the documentation
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    18
 *    and/or other materials provided with the distribution.
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    19
 * 3. The name of the author may not be used to endorse or promote products
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    20
 *    derived from this software without specific prior written permission.
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    21
 *
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    22
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    23
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    24
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    25
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    27
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    28
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    29
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    30
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    31
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    32
 *)
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    33
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    34
unit uConsts;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    35
interface
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    36
uses SDLh;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    37
{$INCLUDE options.inc}
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    38
type TStuff     = (sHorizont, sSky, sConsoleBG, sPowerBar, sQuestion);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    39
     TGameState = (gsLandGen, gsStart, gsGame, gsConsole, gsExit);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    40
     TGameType  = (gmtLocal, gmtDemo, gmtNet);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    41
     TPathType  = (ptData, ptGraphics, ptThemes, ptThemeCurrent, ptTeams, ptMaps,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    42
                   ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    43
     TSprite    = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    44
                   sprLag, sprArrow, sprGrenade, sprTargetP, sprUFO,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    45
                   sprSmokeTrace, sprRopeHook);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    46
     TGearType  = (gtCloud, gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    47
                   gtGrave, gtUFO, gtShotgunShot, gtActionTimer, gtPickHammer, gtRope,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    48
                   gtSmokeTrace);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    49
     TSound     = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease, sndSplash,
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    50
                   sndShotgunReload, sndShotgunFire, sndGraveImpact);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    51
     TAmmoType  = (amGrenade, amBazooka, amUFO, amShotgun, amPickHammer, amSkip, amRope);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    52
     THWFont    = (fnt16, fntBig);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    53
     THHFont    = record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    54
                  Handle: PTTF_Font;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    55
                  Height: integer;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    56
                  Name: string[15];
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    57
                  end;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    58
     TAmmo = record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    59
             Propz: LongWord;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    60
             Count: LongWord;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    61
             NumPerTurn: LongWord;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    62
             Timer: LongWord;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    63
             AmmoType: TAmmoType;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    64
             end;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    65
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    66
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    67
resourcestring
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    68
      errmsgCreateSurface   = 'Error creating DirectDraw7 surface';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    69
      errmsgNoDesc          = 'Unknown error';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    70
      errmsgTransparentSet  = 'Error setting transparent color';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    71
      errmsgDynamicVar      = 'Error working with dynamic memory';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    72
      errmsgUnknownCommand  = 'Unknown command';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    73
      errmsgUnknownVariable = 'Unknown variable';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    74
      errmsgIncorrectUse    = 'Incorrect use';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    75
      errmsgShouldntRun     = 'This program shouldn''t be run manually';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    76
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    77
      msgLoading           = 'Loading ';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    78
      msgOK                = 'ok';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    79
      msgFailed            = 'failed';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    80
      msgGettingConfig     = 'Getting game config...';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    81
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    82
const
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    83
      cAppName  = 'hw';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    84
      cAppTitle = 'hw';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    85
      cNetProtoVersion = 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    86
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    87
      rndfillstr = 'hw';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    88
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    89
      cTransparentColor: Cardinal = $000000;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    90
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    91
      cMaxHHIndex = 9;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    92
      cMaxHHs     = 20;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    93
      cHHSurfaceWidth     = 512;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    94
      cHHSurfaceHeigth    = 256;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    95
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    96
      cHHHalfHeight = 11;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    97
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    98
      cKeyMaxIndex = 322;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
    99
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   100
      cMaxCaptions         = 4;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   101
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   102
      cInactDelay = 1500;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   103
2
4eeab397c3c6 - Support for forts game mode option. Works for demos, frontend doesn't support it.
unc0rr
parents: 1
diff changeset
   104
      gfForts = $00000001;
4eeab397c3c6 - Support for forts game mode option. Works for demos, frontend doesn't support it.
unc0rr
parents: 1
diff changeset
   105
1
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   106
      gstDrowning       = $00000001;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   107
      gstHHDriven       = $00000002;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   108
      gstMoving         = $00000004;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   109
      gstAttacked       = $00000008;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   110
      gstAttacking      = $00000010;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   111
      gstCollision      = $00000020;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   112
      gstHHChooseTarget = $00000040;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   113
      gstFalling        = $00000080;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   114
      gstHHJumping      = $00000100;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   115
      gsttmpFlag        = $00000200;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   116
      gstOutOfHH        = $00000400;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   117
      gstHHThinking     = $00000800;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   118
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   119
      gtsStartGame      = 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   120
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   121
      gm_Left   = $00000001;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   122
      gm_Right  = $00000002;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   123
      gm_Up     = $00000004;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   124
      gm_Down   = $00000008;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   125
      gm_Switch = $00000010;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   126
      gm_Attack = $00000020;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   127
      gm_LJump  = $00000040;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   128
      gm_HJump  = $00000080;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   129
      gm_Destroy= $00000100;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   130
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   131
      cMaxSlot            = 4;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   132
      cMaxSlotAmmo        = 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   133
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   134
      ammoprop_Timerable    = $00000001;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   135
      ammoprop_Power        = $00000002;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   136
      ammoprop_NeedTarget   = $00000004;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   137
      ammoprop_ForwMsgs     = $00000008;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   138
      ammoprop_AttackInFall = $00000010;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   139
      ammoprop_AttackInJump = $00000020;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   140
      AMMO_INFINITE = High(LongWord);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   141
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   142
      capgrpStartGame     = 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   143
      capgrpAmmoinfo      = 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   144
      capgrpNetSay        = 2;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   145
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   146
      EXPLAllDamageInRadius = 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   147
      EXPLAutoSound         = 2;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   148
      EXPLNoDamage          = 4;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   149
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   150
      cToggleConsoleKey     = 39;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   151
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   152
      NoPointX = Low(Integer); // êîíñòàíòà äëÿ TargetPoint, ïîêàçûâàåò, ÷òî öåëü íå óêàçàíà
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   153
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   154
      cLandFileName = 'Land.bmp';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   155
      cHHFileName   = 'Hedgehog.png';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   156
      cCHFileName   = 'Crosshair.png';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   157
      cThemeCFGFilename = 'theme.cfg';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   158
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   159
      Fontz: array[THWFont] of THHFont = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   160
                                         (Height: 12;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   161
                                          Name: 'UN1251N.TTF'),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   162
                                         (Height: 24;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   163
                                          Name: 'UN1251N.TTF')
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   164
                                         );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   165
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   166
      Pathz: array[TPathType] of string[ 64] = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   167
                                               'Data/',                         // ptData
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   168
                                               'Data/Graphics/',                // ptGraphics
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   169
                                               'Data/Themes/',                  // ptThemes
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   170
                                               'Data/Themes/Default/',          // ptThemeCurrent
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   171
                                               'Data/Teams/',                   // ptTeams
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   172
                                               'Data/Maps/',                    // ptMaps
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   173
                                               'Data/Maps/Current/',            // ptMapCurrent
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   174
                                               'Data/Demos/',                   // ptDemos
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   175
                                               'Data/Sounds/',                  // ptSounds
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   176
                                               'Data/Graphics/Graves/',         // ptGraves
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   177
                                               'Data/Fonts/',                   // ptFonts
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   178
                                               'Data/Forts/'                    // ptForts
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   179
                                               );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   180
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   181
      StuffLoadData: array[TStuff] of record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   182
                                     FileName: String[31];
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   183
                                     Path    : TPathType;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   184
                                     end = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   185
                                     (FileName: 'horizont.png'; Path: ptThemeCurrent ),    // sHorizont
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   186
                                     (FileName:      'Sky.png'; Path: ptThemeCurrent ),    // sSky
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   187
                                     (FileName:  'Console.png'; Path: ptGraphics     ),    // sConsoleBG
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   188
                                     (FileName: 'PowerBar.png'; Path: ptGraphics     ),    // sPowerBar
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   189
                                     (FileName: 'thinking.png'; Path: ptGraphics     )     // sQuestion
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   190
                                     );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   191
      StuffPoz: array[TStuff] of TSDL_Rect = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   192
                                      (x:   0; y:   0; w: 512; h: 256), // sHorizont
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   193
                                      (x: 512; y:   0; w:  64; h:1024), // sSky
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   194
                                      (x: 256; y: 256; w: 256; h: 256), // sConsoleBG
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   195
                                      (x: 256; y: 768; w: 256; h:  32), // sPowerBar
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   196
                                      (x: 256; y: 512; w:  32; h:  32)  // sQuestion
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   197
                                      );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   198
      SpritesData: array[TSprite] of record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   199
                                         FileName: String[31];
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   200
                                         Path    : TPathType;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   201
                                         Surface : PSDL_Surface;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   202
                                         Width, Height: integer;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   203
                                         end = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   204
                                         (FileName: 'BlueWater.png'; Path: ptGraphics; Width: 256; Height: 48),// sprWater
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   205
                                         (FileName:    'Clouds.png'; Path: ptGraphics; Width: 256; Height:128),// sprCloud
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   206
                                         (FileName:      'Bomb.png'; Path: ptGraphics; Width:  16; Height: 16),// sprBomb
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   207
                                         (FileName: 'BigDigits.png'; Path: ptGraphics; Width:  32; Height: 32),// sprBigDigit
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   208
                                         (FileName:     'Frame.png'; Path: ptGraphics; Width:   4; Height: 32),// sprFrame
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   209
                                         (FileName:       'Lag.png'; Path: ptGraphics; Width:  64; Height: 64),// sprLag
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   210
                                         (FileName:     'Arrow.png'; Path: ptGraphics; Width:  16; Height: 16),// sprCursor
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   211
                                         (FileName:   'Grenade.png'; Path: ptGraphics; Width:  32; Height: 32),// sprGrenade
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   212
                                         (FileName:   'Targetp.png'; Path: ptGraphics; Width:  32; Height: 32),// sprTargetP
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   213
                                         (FileName:       'UFO.png'; Path: ptGraphics; Width:  32; Height: 32),// sprUFO
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   214
                                         (FileName:'SmokeTrace.png'; Path: ptGraphics; Width:  32; Height: 32),// sprSmokeTrace
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   215
                                         (FileName:  'RopeHook.png'; Path: ptGraphics; Width:  32; Height: 32) // sprRopeHook
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   216
                                         );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   217
      Soundz: array[TSound] of record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   218
                                       FileName: String[31];
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   219
                                       Path    : TPathType;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   220
                                       id      : PMixChunk;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   221
                                       end = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   222
                                       (FileName: 'grenadeimpact.ogg'; Path: ptSounds  ),// sndGrenadeImpact
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   223
                                       (FileName:     'explosion.ogg'; Path: ptSounds  ),// sndExplosion
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   224
                                       (FileName:  'throwpowerup.ogg'; Path: ptSounds  ),// sndThrowPowerUp
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   225
                                       (FileName:  'throwrelease.ogg'; Path: ptSounds  ),// sndThrowRelease
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   226
                                       (FileName:        'splash.ogg'; Path: ptSounds  ),// sndSplash
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   227
                                       (FileName: 'shotgunreload.ogg'; Path: ptSounds  ),// sndShotgunReload
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   228
                                       (FileName:   'shotgunfire.ogg'; Path: ptSounds  ),// sndShotgunFire
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   229
                                       (FileName:   'graveimpact.ogg'; Path: ptSounds  ) // sndGraveImpact
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   230
                                       );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   231
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   232
      Ammoz: array [TAmmoType] of record
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   233
                                  Name: string[32];
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   234
                                  Ammo: TAmmo;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   235
                                  Slot: Longword;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   236
                                  TimeAfterTurn: Longword;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   237
                                  end = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   238
                                  (Name: 'Grenade';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   239
                                   Ammo: (Propz: ammoprop_Timerable or ammoprop_Power;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   240
                                          Count: AMMO_INFINITE;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   241
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   242
                                          Timer: 3000;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   243
                                          AmmoType: amGrenade);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   244
                                   Slot: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   245
                                   TimeAfterTurn: 3000),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   246
                                  (Name: 'Bazooka';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   247
                                   Ammo: (Propz: ammoprop_Power;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   248
                                          Count: AMMO_INFINITE;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   249
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   250
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   251
                                          AmmoType: amBazooka);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   252
                                   Slot: 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   253
                                   TimeAfterTurn: 3000),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   254
                                  (Name: 'UFO';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   255
                                   Ammo: (Propz: ammoprop_Power or ammoprop_NeedTarget;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   256
                                          Count: 4;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   257
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   258
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   259
                                          AmmoType: amUFO);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   260
                                   Slot: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   261
                                   TimeAfterTurn: 3000),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   262
                                  (Name: 'Shotgun';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   263
                                   Ammo: (Propz: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   264
                                          Count: AMMO_INFINITE;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   265
                                          NumPerTurn: 1;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   266
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   267
                                          AmmoType: amShotgun);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   268
                                   Slot: 2;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   269
                                   TimeAfterTurn: 3000),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   270
                                  (Name: 'Pneumatic pick';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   271
                                   Ammo: (Propz: ammoprop_ForwMsgs or ammoprop_AttackInFall or ammoprop_AttackInJump;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   272
                                          Count: 2;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   273
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   274
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   275
                                          AmmoType: amPickHammer);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   276
                                   Slot: 3;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   277
                                   TimeAfterTurn: 0),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   278
                                  (Name: 'Skip turn';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   279
                                   Ammo: (Propz: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   280
                                          Count: AMMO_INFINITE;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   281
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   282
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   283
                                          AmmoType: amSkip);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   284
                                   Slot: 4;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   285
                                   TimeAfterTurn: 0),
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   286
                                  (Name: 'Rope';
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   287
                                   Ammo: (Propz: ammoprop_ForwMsgs or ammoprop_AttackInFall or ammoprop_AttackInJump;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   288
                                          Count: 5;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   289
                                          NumPerTurn: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   290
                                          Timer: 0;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   291
                                          AmmoType: amRope);
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   292
                                   Slot: 3;
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   293
                                   TimeAfterTurn: 0)
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   294
                                  );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   295
                                  
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   296
      Resolutions: array[0..3] of String = (
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   297
                                           '640 480',
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   298
                                           '800 600',
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   299
                                           '1024 768',
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   300
                                           '1280 1024'
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   301
                                           );
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   302
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   303
implementation
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   304
30f2d1037d5d Add current sources.
unc0rr
parents:
diff changeset
   305
end.