|
|
@ -32,6 +32,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
package com.jme3.network.service; |
|
|
|
package com.jme3.network.service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.jme3.network.Client; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Convenient base class for ClientServices providing some default ClientService |
|
|
|
* Convenient base class for ClientServices providing some default ClientService |
|
|
@ -48,4 +49,13 @@ public abstract class AbstractClientService extends AbstractService<ClientServic |
|
|
|
protected AbstractClientService() { |
|
|
|
protected AbstractClientService() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns the client for this client service or null if |
|
|
|
|
|
|
|
* the service is not yet attached. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected Client getClient() { |
|
|
|
|
|
|
|
ClientServiceManager csm = getServiceManager(); |
|
|
|
|
|
|
|
return csm == null ? null : csm.getClient(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|