Add game client
This commit is contained in:
parent
47423703a9
commit
52c5fb6048
21
src/com/annimon/turrets/GameClient.java
Normal file
21
src/com/annimon/turrets/GameClient.java
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package com.annimon.turrets;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.Socket;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author aNNiMON
|
||||||
|
*/
|
||||||
|
public class GameClient implements Constants {
|
||||||
|
|
||||||
|
private final SocketHelper helper;
|
||||||
|
|
||||||
|
public GameClient(String host) throws IOException {
|
||||||
|
helper = new SocketHelper(new Socket(host, PORT));
|
||||||
|
}
|
||||||
|
|
||||||
|
public SocketHelper getHelper() {
|
||||||
|
return helper;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user