Index

Package: Physics

Description

package Physics is

Types

Clip_Type

type Clip_Type is (
        Passive,
        OneWay,
        Wall,

        Slope_45_Up_Floor,   Slope_45_Up_Ceiling,
        Slope_45_Down_Floor, Slope_45_Down_Ceiling,

        Slope_22_Up_Floor_Thin,   Slope_22_Up_Floor_Wide,
        Slope_22_Up_Ceiling_Wide, Slope_22_Up_Ceiling_Thin,

        Slope_22_Down_Floor_Wide,   Slope_22_Down_Floor_Thin,
        Slope_22_Down_Ceiling_Thin, Slope_22_Down_Ceiling_Wide
    );

References:

physics.ads:6:10 (declaration)
physics-clip_maps.adb:50:18 (reference)
physics-clip_maps.adb:64:41 (reference)
physics-clip_maps.adb:79:43 (reference)
physics-clip_maps.ads:24:41 (reference)
physics-clip_maps.ads:29:43 (reference)
physics-clip_maps.ads:55:52 (reference)
physics-drawing.adb:5:31 (reference)
physics-drawing.ads:10:31 (reference)
physics.adb:6:35 (reference)
physics.adb:34:27 (reference)
physics.adb:34:46 (reference)
physics.adb:46:40 (reference)
physics.adb:87:38 (reference)
physics.adb:129:41 (reference)
physics.adb:132:17 (reference)
physics.adb:136:21 (reference)
physics.adb:141:21 (reference)
physics.ads:22:27 (reference)
physics.ads:22:46 (reference)
physics.ads:34:40 (reference)
physics.ads:53:38 (reference)
physics.ads:66:41 (reference)
tiles-libraries.adb:291:48 (reference)
tiles-libraries.ads:64:48 (reference)
tiles.adb:207:78 (reference)
tiles.adb:360:25 (reference)
tiles.adb:374:9 (reference)
tiles.ads:113:25 (reference)
tiles.ads:130:78 (reference)
Combines two Clip_Type values and returns the most occlusive one.

Subprograms & Entries

or

function "or"
( l, r: Clip_Type )
return Clip_Type;

References:

physics.ads:22:14 (declaration)
physics-clip_maps.adb:54:30 (reference)
physics.adb:34:14 (body)
physics.adb:42:9 (label)

Called by:

Physics.Clip_Maps.Calculate_Clipping defined at physics-clip_maps.ads:70:15
Combines two Clip_Type values and returns the most occlusive one.

Clip_Downward

procedure Clip_Downward
( clip: Clip_Type;
size: Positive;
x, y: Natural;
adjustY: out Integer );

References:

physics.ads:34:15 (declaration)
physics-bodies.adb:172:17 (reference)
physics.adb:46:15 (body)
physics.adb:83:9 (label)

Called by:

Physics.Bodies.Clip.Clip_Feet.Clip_Down defined at physics-bodies.adb:169:22
Clips a point to a tile as though the point is moving in the downward direction. The amount which the point should be adjusted upward is returned in 'adjustY'. 'size' is the size of the tile in pixels and 'x', 'y' is the point's location within the area of the tile. 'x' and 'y' must be in the range of 0..size-1. clip : the clipping type of the tile size : the width/height of the tile x, y : the location of the point to clip within the tile adjustY : the distance the point should be moved in the y axis (negative)

Clip_Upward

procedure Clip_Upward
( clip: Clip_Type;
size: Positive;
x, y: Natural;
adjustY: out Integer );

References:

physics.ads:53:15 (declaration)
physics-bodies.adb:274:13 (reference)
physics.adb:87:15 (body)
physics.adb:124:9 (label)

Called by:

Physics.Bodies.Clip.Clip_Head defined at physics-bodies.adb:266:19
Clips a point to a tile as though the point is moving in the upward direction. The amount which the point should be adjusted downward is returned in 'adjustY'. 'size' is the size of the tile in pixels and 'x', 'y' is the point's location within the area of the tile. 'x' and 'y' must be in the range of 0..size-1. clip : the clipping type of the tile size : the width/height of the tile x, y : the location of the point to clip within the tile adjustY : the distance the point should be moved in the y axis (positive)

To_Clip_Type

procedure To_Clip_Type
( str: String;
clip: out Clip_Type;
valid: out Boolean );

References:

physics.ads:65:15 (declaration)
physics.adb:128:15 (body)
physics.adb:143:9 (label)
tiles.adb:288:13 (reference)

Called by:

Tiles.Set_Attribute defined at tiles.ads:76:15
Returns the matching Clip_Type value for a string. The string should be the exact name of the enumeration value. 'valid' will return False if 'str' is not a valid Clip_Type value.