예제 #1
0
 private void processKeys(Move m)
 {
     currentSquare.X -= m.left;
     currentSquare.X += m.right;
     currentSquare.Y -= m.front;
     currentSquare.Y += m.down;
 }
예제 #2
0
        private void processChannel()
        {
            Move reply = JsonConvert.DeserializeObject <Move>(client.Receive(Encoding.ASCII));

            processKeys(reply);
        }