hedgewars/uTypes.pas
author Henek
Tue, 28 Dec 2010 23:53:37 +0100
changeset 4748 ce9b48de1f52
parent 4611 445d382cd401
child 4772 02370ca8e92c
permissions -rw-r--r--
sudden death, now with visual and audial effects :D
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     1
{$INCLUDE "options.inc"}
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     2
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     3
unit uTypes;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     4
interface
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     5
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
     6
uses SDLh, uFloat, GLunit, uConsts, Math;
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     7
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     8
type
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
     9
    HwColor4f = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    10
        r, g, b, a: byte
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    11
        end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    12
4454
42bfc1a70968 more retina support and multitasking support
koda
parents: 4422
diff changeset
    13
    TGameState = (gsLandGen, gsStart, gsGame, gsChat, gsConfirm, gsExit, gsSuspend);
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    14
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    15
    TGameType = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview, gmtSyntax);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    16
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    17
    TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    18
            ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts,
4748
ce9b48de1f52 sudden death, now with visual and audial effects :D
Henek
parents: 4611
diff changeset
    19
            ptLocale, ptAmmoMenu, ptHedgehog, ptVoices, ptHats, ptFlags, ptMissionMaps, ptSuddenDeath);
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    20
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    21
    TSprite = (sprWater, sprCloud, sprBomb, sprBigDigit, sprFrame,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    22
            sprLag, sprArrow, sprBazookaShell, sprTargetP, sprBee,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    23
            sprSmokeTrace, sprRopeHook, sprExplosion50, sprMineOff,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    24
            sprMineOn, sprMineDead, sprCase, sprFAid, sprDynamite, sprPower,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    25
            sprClusterBomb, sprClusterParticle, sprFlame, sprHorizont,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    26
            sprHorizontL, sprHorizontR, sprSky, sprSkyL,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    27
            sprSkyR, sprAMBorderHorizontal, sprAMBorderVertical, sprAMSlot, sprAMAmmos,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    28
            sprAMSlotKeys, sprAMCorners, sprFinger, sprAirBomb,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    29
            sprAirplane, sprAmAirplane, sprAmGirder, sprHHTelepMask,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    30
            sprSwitch, sprParachute, sprTarget, sprRopeNode,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    31
            sprQuestion, sprPowerBar, sprWindBar, sprWindL, sprWindR,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    32
            sprFlake, sprHandRope, sprHandBazooka, sprHandShotgun,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    33
            sprHandDEagle, sprHandAirAttack, sprHandBaseball, sprPHammer,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    34
            sprHandBlowTorch, sprBlowTorch, sprTeleport, sprHHDeath,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    35
            sprShotgun, sprDEagle, sprHHIdle, sprMortar, sprTurnsLeft,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    36
            sprKamikaze, sprWhip, sprKowtow, sprSad, sprWave,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    37
            sprHurrah, sprLemonade, sprShrug, sprJuggle, sprExplPart, sprExplPart2,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    38
            sprCakeWalk, sprCakeDown, sprAMAmmosBW, sprWatermelon,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    39
            sprEvilTrace, sprHellishBomb, sprSeduction, sprDress,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    40
            sprCensored, sprDrill, sprHandDrill, sprHandBallgun, sprBalls,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    41
            sprPlane, sprHandPlane, sprUtility, sprInvulnerable, sprVampiric, sprGirder,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    42
            sprSpeechCorner, sprSpeechEdge, sprSpeechTail,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    43
            sprThoughtCorner, sprThoughtEdge, sprThoughtTail,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    44
            sprShoutCorner, sprShoutEdge, sprShoutTail,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    45
            sprSniperRifle, sprBubbles, sprJetpack, sprHealth, sprHandMolotov, sprMolotov,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    46
            sprSmoke, sprSmokeWhite, sprShell, sprDust, sprExplosives, sprExplosivesRoll,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    47
            sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    48
            sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    49
            sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    50
            sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    51
            sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    52
            sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk, sprNote,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    53
            sprSMineOff, sprSMineOn, sprHandSMine, sprHammer,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    54
            sprHandResurrector, sprCross, sprAirDrill, sprNapalmBomb,
4748
ce9b48de1f52 sudden death, now with visual and audial effects :D
Henek
parents: 4611
diff changeset
    55
            sprBulletHit, sprSnowball, sprHandSnowball, sprSnow, sprSDFlake, sprSDWater
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    56
            );
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    57
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    58
    // Gears that interact with other Gears and/or Land
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    59
    TGearType = (gtBomb, gtHedgehog, gtShell, gtGrave, gtBee, // 4
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    60
            gtShotgunShot, gtPickHammer, gtRope, gtMine, gtCase, // 9
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    61
            gtDEagleShot, gtDynamite, gtClusterBomb, gtCluster, gtShover, // 14
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    62
            gtFlame, gtFirePunch, gtATStartGame, gtATSmoothWindCh, // 18
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    63
            gtATFinishGame, gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, // 23
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    64
            gtGirder, gtTeleport, gtSwitcher, gtTarget, gtMortar, // 28
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    65
            gtWhip, gtKamikaze, gtCake, gtSeduction, gtWatermelon, gtMelonPiece, // 34
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    66
            gtHellishBomb, gtWaterUp, gtDrill, gtBallGun, gtBall, gtRCPlane, // 40
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    67
            gtSniperRifleShot, gtJetpack, gtMolotov, gtExplosives, gtBirdy, // 45
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    68
            gtEgg, gtPortal, gtPiano, gtGasBomb, gtSineGunShot, gtFlamethrower, // 51
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    69
            gtSMine, gtPoisonCloud, gtHammer, gtHammerHit, gtResurrector, // 56
4611
445d382cd401 A very very basic snow implementation
nemo
parents: 4602
diff changeset
    70
            gtNapalmBomb, gtSnowball, gtFlake); // 58
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    71
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    72
    // Gears that are _only_ of visual nature (e.g. background stuff, visual effects, speechbubbles, etc.)
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    73
    TVisualGearType = (vgtFlake, vgtCloud, vgtExplPart, vgtExplPart2, vgtFire,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    74
            vgtSmallDamageTag, vgtTeamHealthSorter, vgtSpeechBubble, vgtBubble,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    75
            vgtSteam, vgtAmmo, vgtSmoke, vgtSmokeWhite, vgtHealth, vgtShell,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    76
            vgtDust, vgtSplash, vgtDroplet, vgtSmokeRing, vgtBeeTrace, vgtEgg,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    77
            vgtFeather, vgtHealthTag, vgtSmokeTrace, vgtEvilTrace, vgtExplosion,
4420
6be946bcd17a Add a visual gear for drawing circles. Intent is to allow specifying areas on map for lua scripts (such as to indicate a location to go to). Could also be used to, say, circle a hog in CTF. Also add a "Critical" flag for visual gears so a gear flagges as such will always be created.
nemo
parents: 4379
diff changeset
    78
            vgtBigExplosion, vgtChunk, vgtNote, vgtLineTrail, vgtBulletHit, vgtCircle);
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    79
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    80
    TGearsType = set of TGearType;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    81
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    82
    TDamageSource = (dsUnknown, dsFall, dsBullet, dsExplosion, dsShove, dsPoison);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    83
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    84
    TSound = (sndNone,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    85
            sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    86
            sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    87
            sndMineTick, sndPickhammer, sndGun, sndBee, sndJump1, sndJump2,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    88
            sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    89
            sndMissed, sndStupid, sndFirstBlood, sndBoring, sndByeBye,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    90
            sndSameTeam, sndNutter, sndReinforce, sndTraitor, sndRegret,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    91
            sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    92
            sndCake, sndOw1, sndOw2, sndOw3, sndOw4, sndFirePunch1, sndFirePunch2,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    93
            sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    94
            sndMelon, sndHellish, sndYoohoo, sndRCPlane, sndWhipCrack,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    95
            sndRideOfTheValkyries, sndDenied, sndPlaced, sndBaseballBat,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    96
            sndVaporize, sndWarp, sndSuddenDeath, sndMortar, sndShutter,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    97
            sndHomerun, sndMolotov, sndCover, sndUhOh, sndOops,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    98
            sndNooo, sndHello, sndRopeShot, sndRopeAttach, sndRopeRelease,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
    99
            sndSwitchHog, sndVictory, sndSniperReload, sndSteps, sndLowGravity,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   100
            sndHellishImpact1, sndHellishImpact2, sndHellishImpact3, sndHellishImpact4,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   101
            sndMelonImpact, sndDroplet1, sndDroplet2, sndDroplet3, sndEggBreak, sndDrillRocket,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   102
            sndPoisonCough, sndPoisonMoan, sndBirdyLay, sndWhistle, sndBeeWater,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   103
            sndPiano0, sndPiano1, sndPiano2, sndPiano3, sndPiano4, sndPiano5, sndPiano6, sndPiano7, sndPiano8,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   104
            sndSkip, sndSineGun, sndOoff1, sndOoff2, sndOoff3, sndWhack,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   105
            sndComeonthen, sndParachute, sndBump, sndResurrector);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   106
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   107
    TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer, // 6
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   108
            amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, amWhip, // 13
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   109
            amBaseballBat, amParachute, amAirAttack, amMineStrike, amBlowTorch, // 18
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   110
            amGirder, amTeleport, amSwitch, amMortar, amKamikaze, amCake, // 24
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   111
            amSeduction, amWatermelon, amHellishBomb, amNapalm, amDrill, amBallgun, // 30
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   112
            amRCPlane, amLowGravity, amExtraDamage, amInvulnerable, amExtraTime, // 35
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   113
            amLaserSight, amVampiric, amSniperRifle, amJetpack, amMolotov, amBirdy, amPortalGun, // 42
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   114
            amPiano, amGasBomb, amSineGun, amFlamethrower, amSMine, amHammer, // 48
4578
f3cf226fad16 Snowball weapon
nemo
parents: 4454
diff changeset
   115
            amResurrector, amDrillStrike, amSnowball);
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   116
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   117
    TCrateType = (HealthCrate, AmmoCrate, UtilityCrate);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   118
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   119
    THWFont = (fnt16, fntBig, fntSmall {$IFNDEF IPHONEOS}, CJKfnt16, CJKfntBig, CJKfntSmall{$ENDIF});
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   120
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   121
    TCapGroup = (capgrpGameState, capgrpAmmoinfo, capgrpVolume,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   122
            capgrpMessage, capgrpAmmostate);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   123
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   124
    TStatInfoType = (siGameResult, siMaxStepDamage, siMaxStepKills, siKilledHHs,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   125
            siClanHealth, siTeamStats, siPlayerKills, siMaxTeamDamage,
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   126
            siMaxTeamKills, siMaxTurnSkips );
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   127
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   128
    TWave = (waveRollup, waveSad, waveWave, waveHurrah, waveLemonade, waveShrug, waveJuggle);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   129
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   130
    THHFont = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   131
            Handle: PTTF_Font;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   132
            Height: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   133
            style: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   134
            Name: string[21];
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   135
            end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   136
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   137
    PAmmo = ^TAmmo;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   138
    TAmmo = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   139
            Propz: LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   140
            Count: LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   141
(* Using for place hedgehogs mode, but for any other situation where the initial count would be needed I guess.
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   142
For example, say, a mode where the weaponset is reset each turn, or on sudden death *)
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   143
            NumPerTurn: LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   144
            Timer: LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   145
            Pos: LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   146
            AmmoType: TAmmoType;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   147
            AttackVoice: TSound;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   148
            end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   149
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   150
    TVertex2f = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   151
        X, Y: GLfloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   152
        end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   153
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   154
    TVertex2i = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   155
        X, Y: GLint;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   156
        end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   157
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   158
    PTexture = ^TTexture;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   159
    TTexture = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   160
            id: GLuint;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   161
            w, h, scale: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   162
            rx, ry: GLfloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   163
            priority: GLfloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   164
            vb, tb: array [0..3] of TVertex2f;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   165
            PrevTexture, NextTexture: PTexture;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   166
            end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   167
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   168
    THogEffect = (heInvulnerable, heResurrectable, hePoisoned, heResurrected);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   169
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   170
    TScreenFade = (sfNone, sfInit, sfToBlack, sfFromBlack, sfToWhite, sfFromWhite);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   171
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   172
    PGear = ^TGear;
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   173
    PHedgehog = ^THedgehog;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   174
    PTeam     = ^TTeam;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   175
    PClan     = ^TClan;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   176
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   177
    TGearStepProcedure = procedure (Gear: PGear);
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   178
    TGear = record
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   179
            NextGear, PrevGear: PGear;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   180
            Active: Boolean;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   181
            AdvBounce: Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   182
            Invulnerable: Boolean;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   183
            RenderTimer: Boolean;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   184
            AmmoType : TAmmoType;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   185
            State : Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   186
            X : hwFloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   187
            Y : hwFloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   188
            dX: hwFloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   189
            dY: hwFloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   190
            Kind: TGearType;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   191
            Pos: Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   192
            doStep: TGearStepProcedure;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   193
            Radius: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   194
            Angle, Power : Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   195
            DirAngle: real;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   196
            Timer : LongWord;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   197
            Elasticity: hwFloat;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   198
            Friction  : hwFloat;
4602
ec84fb564bab added density for gears used in gfMoreWind, needs alot of tweaking
Henek
parents: 4578
diff changeset
   199
            Density   : hwFloat;
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   200
            Message, MsgParam : Longword;
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   201
            Hedgehog: PHedgehog;
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   202
            Health, Damage, Karma: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   203
            CollisionIndex: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   204
            Tag: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   205
            Tex: PTexture;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   206
            Z: Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   207
            IntersectGear: PGear;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   208
            FlightTime: Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   209
            uid: Longword;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   210
            ImpactSound: TSound; // first sound, others have to be after it in the sounds def.
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   211
            nImpactSounds: Word; // count of ImpactSounds
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   212
            SoundChannel: LongInt;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   213
            PortalCounter: LongWord  // Hopefully temporary, but avoids infinite portal loops in a guaranteed fashion.
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   214
        end;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   215
    TPGearArray = Array of PGear;
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   216
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   217
    PVisualGear = ^TVisualGear;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   218
    TVGearStepProcedure = procedure (Gear: PVisualGear; Steps: Longword);
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   219
    TVisualGear = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   220
        NextGear, PrevGear: PVisualGear;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   221
        Frame,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   222
        FrameTicks: Longword;
4379
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   223
        X : real;
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   224
        Y : real;
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   225
        dX: real;
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   226
        dY: real;
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   227
        tdX: real;
6cd6b77df8b8 No need for Extended data type just to draw some visual gears. It's a shame we have Math unit dependency
unC0Rr
parents: 4367
diff changeset
   228
        tdY: real;
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   229
        State : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   230
        Timer: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   231
        Angle, dAngle: real;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   232
        Kind: TVisualGearType;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   233
        doStep: TVGearStepProcedure;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   234
        Tex: PTexture;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   235
        alpha, scale: GLfloat;
4365
4f2b1a152979 Remove ugly PHedgehog(Gear^.Hedgehog) cast
unc0rr
parents: 4361
diff changeset
   236
        Hedgehog: PHedgehog;
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   237
        Text: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   238
        Tint: Longword;
4422
5e8cfef25ccb add a uid to VGs for purpose of Lua manipulation
nemo
parents: 4420
diff changeset
   239
        uid: Longword;
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   240
        end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   241
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   242
    TStatistics = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   243
        DamageRecv,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   244
        DamageGiven: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   245
        StepDamageRecv,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   246
        StepDamageGiven,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   247
        StepKills: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   248
        MaxStepDamageRecv,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   249
        MaxStepDamageGiven,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   250
        MaxStepKills: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   251
        FinishedTurns: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   252
        end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   253
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   254
    TTeamStats = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   255
        Kills : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   256
        AIKills : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   257
        TeamKills : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   258
        TurnSkips : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   259
        TeamDamage : Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   260
        end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   261
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   262
    TBinds = array[0..cKeyMaxIndex] of shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   263
    TKeyboardState = array[0..cKeyMaxIndex] of Byte;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   264
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   265
    PVoicepack = ^TVoicepack;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   266
    TVoicepack = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   267
        name: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   268
        chunks: array [TSound] of PMixChunk;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   269
        end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   270
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   271
    PHHAmmo = ^THHAmmo;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   272
    THHAmmo = array[0..cMaxSlotIndex, 0..cMaxSlotAmmoIndex] of TAmmo;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   273
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   274
    THedgehog = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   275
            Name: string[MAXNAMELEN];
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   276
            Gear: PGear;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   277
            SpeechGear: PVisualGear;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   278
            NameTagTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   279
            HealthTagTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   280
            HatTex: PTexture;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   281
            Ammo: PHHAmmo;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   282
            CurAmmoType: TAmmoType;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   283
            AmmoStore: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   284
            Team: PTeam;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   285
            MultiShootAttacks: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   286
            visStepPos: LongWord;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   287
            BotLevel  : Byte; // 0 - Human player
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   288
            HatVisibility: GLfloat;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   289
            stats: TStatistics;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   290
            Hat: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   291
            InitialHealth: LongInt; // used for gfResetHealth
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   292
            King: boolean;  // Flag for a bunch of hedgehog attributes
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   293
            Unplaced: boolean;  // Flag for hog placing mode
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   294
            Timer: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   295
            Effects: Array[THogEffect] of boolean;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   296
            end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   297
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   298
    TTeam = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   299
            Clan: PClan;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   300
            TeamName: string[MAXNAMELEN];
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   301
            ExtDriven: boolean;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   302
            Binds: TBinds;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   303
            Hedgehogs: array[0..cMaxHHIndex] of THedgehog;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   304
            CurrHedgehog: LongWord;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   305
            NameTagTex: PTexture;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   306
            CrosshairTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   307
            GraveTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   308
            HealthTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   309
            AIKillsTex,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   310
            FlagTex: PTexture;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   311
            Flag: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   312
            GraveName: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   313
            FortName: shortstring;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   314
            TeamHealth: LongInt;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   315
            TeamHealthBarWidth,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   316
            NewTeamHealthBarWidth: LongInt;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   317
            DrawHealthY: LongInt;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   318
            AttackBar: LongWord;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   319
            HedgehogsNumber: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   320
            hasGone: boolean;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   321
            voicepack: PVoicepack;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   322
            PlayerHash: shortstring;   // md5 hash of player name. For temporary enabling of hats as thank you. Hashed for privacy of players
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   323
            stats: TTeamStats;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   324
            end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   325
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   326
    TClan = record
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   327
            Color: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   328
            Teams: array[0..Pred(cMaxTeams)] of PTeam;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   329
            TeamsNumber: Longword;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   330
            CurrTeam: LongWord;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   331
            ClanHealth: LongInt;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   332
            ClanIndex: LongInt;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   333
            TurnNumber: LongWord;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   334
            end;
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   335
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   336
     TAmmoStrId = (sidNothing, sidGrenade, sidClusterBomb, sidBazooka, sidBee, sidShotgun,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   337
            sidPickHammer, sidSkip, sidRope, sidMine, sidDEagle,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   338
            sidDynamite, sidBaseballBat, sidFirePunch, sidSeconds,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   339
            sidParachute, sidAirAttack, sidMineStrike, sidBlowTorch,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   340
            sidGirder, sidTeleport, sidSwitch, sidMortar, sidWhip,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   341
            sidKamikaze, sidCake, sidSeduction, sidWatermelon,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   342
            sidHellishBomb, sidDrill, sidBallgun, sidNapalm, sidRCPlane,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   343
            sidLowGravity, sidExtraDamage, sidInvulnerable, sidExtraTime,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   344
            sidLaserSight, sidVampiric, sidSniperRifle, sidJetpack,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   345
            sidMolotov, sidBirdy, sidPortalGun, sidPiano, sidGasBomb, sidSineGun, sidFlamethrower,
4578
f3cf226fad16 Snowball weapon
nemo
parents: 4454
diff changeset
   346
            sidSMine, sidHammer, sidResurrector, sidDrillStrike, sidSnowball);
4361
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   347
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   348
    TMsgStrId = (sidStartFight, sidDraw, sidWinner, sidVolume, sidPaused,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   349
            sidConfirm, sidSuddenDeath, sidRemaining, sidFuel, sidSync,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   350
            sidNoEndTurn, sidNotYetAvailable, sidRoundSD, sidRoundsSD, sidReady);
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   351
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   352
    TEventId = (eidDied, eidDrowned, eidRoundStart, eidRoundWin, eidRoundDraw,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   353
            eidNewHealthPack, eidNewAmmoPack, eidNewUtilityPack, eidTurnSkipped, eidHurtSelf,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   354
            eidHomerun, eidGone);
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   355
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   356
    TGoalStrId = (gidCaption, gidSubCaption, gidForts, gidLowGravity, gidInvulnerable,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   357
            gidVampiric, gidKarma, gidKing, gidPlaceHog, gidArtillery,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   358
            gidSolidLand, gidSharedAmmo, gidMineTimer, gidNoMineTimer, gidRandomMineTimer,
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   359
            gidDamageModifier, gidResetHealth, gidAISurvival, gidInfAttack, gidResetWeps, gidPerHogAmmo);
64ea345ab655 Move variables from uConsts to uVariables
unc0rr
parents: 4357
diff changeset
   360
4367
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   361
    TLandArray = packed array of array of LongWord;
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   362
    TCollisionArray = packed array of array of Word;
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   363
    TPreview  = packed array[0..127, 0..31] of byte;
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   364
    TDirtyTag = packed array of array of byte;
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   365
f4a0ec067601 uLand isn't that important to them
unc0rr
parents: 4365
diff changeset
   366
4357
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   367
implementation
a1fcfc341a52 Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
diff changeset
   368
4420
6be946bcd17a Add a visual gear for drawing circles. Intent is to allow specifying areas on map for lua scripts (such as to indicate a location to go to). Could also be used to, say, circle a hog in CTF. Also add a "Critical" flag for visual gears so a gear flagges as such will always be created.
nemo
parents: 4379
diff changeset
   369
end.