static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); f = new Form1(); Loop l = new Loop(f); t = new Thread(l.doLoop); t.Start(); Application.Run(f); }
public GuiManager(Loop loop, DrawManager drawManager) { this.loop = loop; this.drawManager = drawManager; activeGui = null; optionsGui = new Options(this); drawManager.addDrawable(optionsGui); loop.getForm().registerMouseListener(optionsGui); inGameLabel = new InGameLabel(this, 2); drawManager.addDrawable(inGameLabel); }
public Control(Map m, Intelligence p1, Intelligence p2, Loop l) { this.m = m; this.l = l; l.addToUpdateList(this); if (!isHuman(p1) || !isHuman(p2)) { AI = new RandomAI(); } p1.Color = Intelligence.eColor.black; pList.Add(p1); p2.Color = Intelligence.eColor.white; pList.Add(p2); act = pList.ElementAt(0); AINext(null); }