1   /*
2    * Created on 2004-12-11
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.Network;
8   
9   /***
10   * @author Develop
11   *
12   * TODO To change the template for this generated type comment go to
13   * Window - Preferences - Java - Code Style - Code Templates
14   */
15  public class TestServerFacade extends NetworkServerFacade {
16  	TestClientFactory clientFactory = new TestClientFactory();
17  	UpdatePacket lastUpdate = null;
18  	String lastDisconnectedAvatar = null;
19  	int clientsCount = 0;
20  	/* (non-Javadoc)
21  	 * @see org.sourceforge.jvb3d.Network.NetworkServerFacade#createAvatar()
22  	 */
23  	public String createAvatar() {
24  		return "avatar"+clientsCount++;
25  	}
26  
27  	public ClientFactory getClientFactory() {
28  		return clientFactory;
29  	}
30  	
31  	public void forwardUpdate(UpdatePacket packet) {
32  		lastUpdate = packet;
33  	}
34  	
35  	public UpdatePacket getLastUpdate() {
36  		return lastUpdate;
37  	}
38  	
39  	public void forwardClientTimeout(String clientAvatar) {
40  		lastDisconnectedAvatar = clientAvatar;
41  	}
42  	
43  	public void sendUpdate(String avatarID) {
44  		
45  	}
46  	
47  	public void sendAllUpdate() {
48  		
49  	}
50  	
51  	public void start(int i) {
52  		
53  	}
54  }