Exemplo n.º 1
0
        public LANGameLocalPlayer(MouseX mX, MouseY mY, ClientToView ctv, IPAddress opponentIPAddress)
        {
            port = 5555; // TODO: move this somewhere better since it's used in a few spots...

            mouseX = mX;
            mouseY = mY;
            clientToView = ctv;

            client = new UdpClient();

            client.Connect(opponentIPAddress, port);
        }
Exemplo n.º 2
0
 public LocalPlayer(MouseX mX, MouseY mY, ClientToView ctv)
 {
     mouseX = mX;
     mouseY = mY;
     clientToView = ctv;
 }