Exemple #1
0
 public void InitGroupTest()
 {
     Controller.InitGroups();
     Assert.Contains(Controller.AllLights[0], Controller.UntouchedLights);
     Assert.Contains(Controller.AllLights[1], Controller.UntouchedLights);
     Assert.Contains(Controller.AllLights[2], Controller.UntouchedLights);
 }
Exemple #2
0
        public void Start()
        {
            //Initializations
            _occupant = new Occupant(Map, Window, 'W', 'S', 'A', 'D');
            gEngine   = new GEngine(Window, Map, SimulationRoom);
            CreateLightUnit();
            Controller = new DALIController(LightUnitCoordinates);
            Controller.InitGroups();
            InfoScreen   = new InfoScreen(Window, Controller);
            ControlPanel = new ControlPanel(Window, Controller, LightUnitCoordinates, InfoScreen, SimulationRoom);


            //Draw info
            Info = new InfoDrawing(Window);
            Info.initWattInfo();
            Info.InitBrugerPosWiFi();
            Info.InitBrugerPos();

            //Quadtree, initialize the graphics engine and load the visual level
            _tree.CreateQuadTree(LightUnitCoordinates);
            gEngine.init();
            gEngine.LoadLevel(LightUnitCoordinates, Router1, Router2);
        }