From 52c5fb6048b3de914a0b2a05140c94878ea4ded1 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 16 Mar 2014 13:03:24 +0200 Subject: [PATCH] Add game client --- src/com/annimon/turrets/GameClient.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/com/annimon/turrets/GameClient.java diff --git a/src/com/annimon/turrets/GameClient.java b/src/com/annimon/turrets/GameClient.java new file mode 100644 index 0000000..ad756d3 --- /dev/null +++ b/src/com/annimon/turrets/GameClient.java @@ -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; + } +}