Engines/FlatRedBallXNA/FlatRedBall/AI/LineOfSight/VisibilityGrid.cs
/// <summary>
/// Adds a block (or wall) at a given world location.
/// </summary>
/// <param name="worldX">The world coordinate X.</param>
/// <param name="worldY">The world coordinate Y.</param>
Adds a block (or wall) at a given world location.
Adds a block ( or wall ) at a given world location .
public void BlockWorld(float worldX, float worldY)
        {
            int xIndex;
            int yIndex;
            WorldToIndex(worldX, worldY, out xIndex, out yIndex);
            mBlockedTiles[xIndex][yIndex] = 1;
        }
public void BlockWorld ( float worldX , float worldY ) { int xIndex ; int yIndex ; WorldToIndex ( worldX , worldY , out xIndex , out yIndex ) ; mBlockedTiles [ xIndex ] [ yIndex ] = 1 ; }
Adds a block (or wall) at a given world location.
Adds a block ( or wall ) at a given world location .
worldX
float
The world coordinate X.
The world coordinate X .
worldY
float
The world coordinate Y.
The world coordinate Y .