예제 #1
0
        private IQuinoaUI ui; //UI currently connected

        #endregion Fields

        #region Constructors

        public Quinoa()
        {
            ticks = 0;
            map = new RegionMap();
            messages = new MessageManager();
            actions = new QuinoaActions(this);
            lightMap = new LightMap(this);
            pathFinder = new PathFinder(this, new ClosestSquaredHeuristic());

            ui = new formQuinoaWindow();
            ui.register(this);
            ui.setInterfaceMode(InterfaceMode.MENU);
            ui.refresh();
        }
예제 #2
0
 /**
  * @param map the map to set
  */
 public void setMap(RegionMap map)
 {
     this.map = map;
 }
예제 #3
0
 public void reset()
 {
     ticks = 0;
     map = new RegionMap();
     messages = new MessageManager();
     actions = new QuinoaActions(this);
     lightMap = new LightMap(this);
     pathFinder = new PathFinder(this, new ClosestSquaredHeuristic());
 }