Exemplo n.º 1
0
 public Party(Account user, int partyId)
 {
     userList = new List<Account>();
     this.userList.Add(user);
     partyLeader = user.accountId;
     this.partyId = partyId;
     domainController = DomainController.getInstance();
 }
Exemplo n.º 2
0
        private GuiController()
        {
            fpsCounter = false;
            debugQueue = new Queue<string>();
            receiveQueue = new Queue<string>();
            LocalizedStrings.SetLanguage("en");
            DomainController.getInstance().setMode(-1);
            domainController = DomainController.getInstance();
            domainController.SetNetworkController();
            persistenceController = PersistenceController.getInstance();
            persistenceController.getLoginServer();

            screen = new Vector2(Screen.width, Screen.height); //width is x, height is y
            scale = new Vector2(screen.x / optimalWidth, screen.y / optimalHeight);

            SetDebugText("Profit, het programma start!");
            activeChannel = 0;
        }
        public ClientHomeHandler()
        {
            isActive = true;
            udpClient = new UdpClient();
            udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
            sendingEndPoint = new IPEndPoint(IPAddress.Parse("193.190.225.147"), 27000);

            receiveThread = new Thread(new ThreadStart(ReceiveThread));
            receiveThread.IsBackground = true;
            receiveThread.Name = "HomeReceiveThread";
            receiveThread.Start();

            sendThread = new Thread(new ThreadStart(SendThread));
            sendThread.IsBackground = true;
            sendThread.Name = "HomeSendThread";
            sendThread.Start();

            domainController = DomainController.getInstance();
        }
Exemplo n.º 4
0
 public static DomainController getInstance()
 {
     if (domainController == null)
     {
         domainController = new DomainController();
     }
     return domainController;
 }