예제 #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
 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());
 }
예제 #3
0
        public void LoadObject(StreamReader inStream)
        {
            setMap(new RegionMap());
            setPlayer(new Monster());
            messages = new MessageManager();

            getPlayer().LoadObject(inStream);
            getMap().LoadObject(inStream);
            messages.LoadObject(inStream);
            setTicks(Int64.Parse(inStream.ReadLine()));

            loadRegionFiles(inStream);

            getMap().changeCurrentRegion(getMap().getCurrentRegionID());
            actions.insertPlayerInRegion(getPlayer().x, getPlayer().y);
        }