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(); }
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()); }
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); }