1 /* 2 * Created on 2004-12-23 3 * 4 * TODO To change the template for this generated file go to 5 * Window - Preferences - Java - Code Style - Code Templates 6 */ 7 package org.sourceforge.jvb3d.Control; 8 9 import java.util.TimerTask; 10 import org.sourceforge.jvb3d.Network.*; 11 12 /*** 13 * @author spootnick 14 * 15 * Klasa realizująca automatyczną funkcjonalność po stronie klienta 16 */ 17 public class ClientTask extends ControlTask { 18 19 20 /* Wysyła do serwera aktualne dane o postaci kontrolowanej 21 * przez klienta 22 */ 23 public void run() { 24 // TODO Auto-generated method stub 25 try{ 26 network.sendUpdate(localPlayerID); 27 28 }catch(Exception ex){ 29 System.err.println(ex); 30 System.exit(0); 31 } 32 //System.out.println("Client update self"); 33 } 34 35 }