hedgewars/uCollisions.pas
changeset 9737 f0769402350c
parent 9731 953197ac43d8
child 9950 2759212a27de
child 9998 736015b847e3
equal deleted inserted replaced
9736:d2b01d350035 9737:f0769402350c
    58 function  CalcSlopeBelowGear(Gear: PGear): hwFloat;
    58 function  CalcSlopeBelowGear(Gear: PGear): hwFloat;
    59 function  CalcSlopeNearGear(Gear: PGear; dirX, dirY: LongInt): hwFloat;
    59 function  CalcSlopeNearGear(Gear: PGear; dirX, dirY: LongInt): hwFloat;
    60 function  CalcSlopeTangent(Gear: PGear; collisionX, collisionY: LongInt; var outDeltaX, outDeltaY: LongInt; TestWord: LongWord): boolean;
    60 function  CalcSlopeTangent(Gear: PGear; collisionX, collisionY: LongInt; var outDeltaX, outDeltaY: LongInt; TestWord: LongWord): boolean;
    61 
    61 
    62 implementation
    62 implementation
    63 uses uConsts, uLandGraphics, uVariables, uDebug, uGearsList;
    63 uses uConsts, uLandGraphics, uVariables, uDebug;
    64 
    64 
    65 type TCollisionEntry = record
    65 type TCollisionEntry = record
    66     X, Y, Radius: LongInt;
    66     X, Y, Radius: LongInt;
    67     cGear: PGear;
    67     cGear: PGear;
    68     end;
    68     end;