public PlayerAppState(WaitingRoom waitingRoom) { privateKey = rsa.ToXmlString(true); publicKey = rsa.ToXmlString(false); this.waitingRoom = waitingRoom; waitingRoom.appState = this; planningScreen = waitingRoom.planningScreen; planningScreen.appState = this; gameScreen = waitingRoom.gameScreen; gameScreen.appState = this; InitPlanningGrid(); }
static void Main() { XmlConfigurator.Configure(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); WaitingRoom waitingRoom = new WaitingRoom(); PlayerAppState appState = new PlayerAppState(waitingRoom); ConversationFactory conFact = new ConversationFactory(); //Create conversation factory SubSystem subsystem = new SubSystem(conFact, appState); appState.subSystem = subsystem; subsystem.start(); Application.Run(waitingRoom); //Conversation conversation2 = conFact.CreateFromConversationType<Board>(); //conversation2.RemoteEndPoint = appState.GMEndPoint; //conversation2.Launch(); //Needs ConversationFactory implementation //ConversationFactory conFact = new ConversationFactory(subsystem); }