Beispiel #1
0
        public void ManualPrintFOV()
        {
            var map = new ArrayMap <bool>(10, 10);

            RectangleMapGenerator.Generate(map);
            var resMap = new ResMap(map);

            FOV myFov = new FOV(resMap);

            myFov.Calculate(5, 5, 3);

            Console.WriteLine(myFov);
            Console.WriteLine();
            Console.WriteLine(myFov.ToString(3));
        }
Beispiel #2
0
        public void ManualPrintSenseMap()
        {
            var map = new ArrayMap <bool>(30, 30);

            QuickGenerators.GenerateRectangleMap(map);

            var resMap   = new ResMap(map);
            var senseMap = new SenseMap(resMap);

            var source  = new SenseSource(SourceType.SHADOW, 12, 15, 10, Radius.CIRCLE);
            var source2 = new SenseSource(SourceType.SHADOW, 18, 15, 10, Radius.CIRCLE);

            senseMap.AddSenseSource(source);
            senseMap.AddSenseSource(source2);

            senseMap.Calculate();

            Console.WriteLine(senseMap);
            Console.WriteLine();
            Console.WriteLine(senseMap.ToString(3));
            Console.WriteLine();
            Console.WriteLine(source);
        }