Britbot
static bool Britbot.Extensions.IsInMap ( this IPirateGame  game,
Location  testLocation 
) [inline, static]

Definition at line 114 of file Extentions.cs.

        {
            int mapRow = game.GetRows();
            int mapCol = game.GetCols();

            //check if outside of the map
            if (testLocation.Row >= mapRow || testLocation.Col >= mapCol ||
                testLocation.Row < 0 || testLocation.Col < 0)
                return false;

            return true;
        }