コード例 #1
0
 public void Init()
 {
     ObjectLayer = ObjectLayer.GroundPlaceable;
     _map        = new FacilityMap(new InMemoryWorld());
     _layer      = new FacilityLayer(2, 2);
     _map.Add(_layer);
 }
コード例 #2
0
        public void Init()
        {
            _routeProposal = new PatrolRouteProposal(_map, new XYZ(0, 0, 0), path => { });
            var builder = new LayerBuilder(3, 3);

            builder.PutFloor(new XY(0, 0), new XY(2, 2));
            _map.Add(_layer = builder.Build());
        }
コード例 #3
0
        private FacilityMap CreateEmptyMap()
        {
            var map = new FacilityMap(new InMemoryWorld());

            _layer = new FacilityLayer(3, 3);
            map.Add(_layer);
            return(map);
        }
コード例 #4
0
        public void Init()
        {
            _thief = new Thief(this, _map);
            _thief.Subscribe(this);
            var builder = new LayerBuilder(3, 3);

            builder.PutFloor(new XY(0, 0), new XY(2, 2));
            AddPortals(builder);
            _map.Add(_layer = builder.Build());
            _upFacingContainer.Put(_upFacingValuable);
            _rightFacingContainer.Put(_valuable2);
        }
コード例 #5
0
 public void Init()
 {
     _map = new FacilityMap(new InMemoryWorld());
     _map.Add(new FacilityLayer(3, 3));
 }
コード例 #6
0
        public void FacilityMap_AddLayer_CanGetLayer()
        {
            _map.Add(_sampleLayer);

            Assert.AreEqual(_sampleLayer, _map[0]);
        }
コード例 #7
0
 public void Init()
 {
     _map   = new FacilityMap(new InMemoryWorld());
     _layer = new FacilityLayer(2, 2);
     _map.Add(_layer);
 }
コード例 #8
0
 public void Init()
 {
     _layer = CreateFacilityLayer();
     _map.Add(_layer);
     _pathFinder = new LayeredPathFinder(_map);
 }