Project

General

Profile

Revision 648

working on robot point and click - kinda works

View differences:

ColonetServerInterface.java
362 362
	* Order a robot to move to an absolute coordinate point.
363 363
	*/
364 364
	public void sendAbsoluteMove (int id, int x, int y) {
365
			sendData(MOVE_TO_ABSOLUTE_POSITION + " " + x + " " + y, "" + id);
365
      int x_high = (x>>8) & 0xff;
366
      int x_low = x & 0xff;
367
      int y_high = (y>>8) & 0xff;
368
      int y_low = y & 0xff;
369

  
370
			sendData(MOVE_TO_ABSOLUTE_POSITION + " " + x_high + " " + x_low + " " + y_high + " " + y_low, "" + id);
366 371
	}
367 372

  
368 373
	/*

Also available in: Unified diff