Esempio n. 1
0
        private object Run_MapDrainage(LispRuntimeCommand cmd, LispList list)
        {
            CheckParameterCount(cmd, list, 2);
            int c            = 1;
            Map map          = Run <Map>(list.items[c++]);
            int lookDistance = Run <int>(list.items[c++]);

            return(CaveFinderAlgorithm.MapDrainage(this.Logger, map, lookDistance));
        }
Esempio n. 2
0
        private object Run_FindCavesByFlood(LispRuntimeCommand cmd, LispList list)
        {
            CheckParameterCount(cmd, list, 2);
            Map         map   = Run <Map>(list.items[1]);
            double      depth = Run <double>(list.items[2]);
            List <Cave> caves = CaveFinderAlgorithm.FindCaves(this.Logger, map, depth);

            return(caves);
        }