public class GameServer extends SinglePlayer
Modifier and Type | Class and Description |
---|---|
class |
GameServer.Client |
Modifier and Type | Field and Description |
---|---|
static int |
ADD_USER |
static int |
CODE_ERROR |
static int |
CODE_OK |
static int |
CONN_CANCELLED |
static byte |
CONNECT_REQUEST |
static java.lang.String |
KEY_SERVER_NAME |
static int |
PING_CLIENT |
static int |
REMOVE_USER |
static int |
SEND_PLAY_EVENT |
static int |
SEND_USER |
static int |
START_PLAY |
HOSTNAME, MSG_KEY, PORT, SERVICE_TYPE
Constructor and Description |
---|
GameServer(MainActivity activity) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<GameServer.Client> |
getUsers() |
protected void |
onConnected() |
protected void |
paramsReady() |
void |
stop() |
botsSelected, getGameMap, getMyUser, getRobots, start
createNetwork, getAvailableAddresses, inBG, inUI, isGameRunning, setGameRunning, showSelectBotsDialog, stopMulticastReceiving, toast, toast
public static final byte CONNECT_REQUEST
public static final int START_PLAY
public static final int CONN_CANCELLED
public static final int ADD_USER
public static final int REMOVE_USER
public static final int PING_CLIENT
public static final int SEND_USER
public static final int SEND_PLAY_EVENT
public static final int CODE_ERROR
public static final int CODE_OK
public static final java.lang.String KEY_SERVER_NAME
public GameServer(MainActivity activity)
protected void paramsReady()
paramsReady
in class SinglePlayer
protected void onConnected()
onConnected
in class SinglePlayer
public void stop()
stop
in class SinglePlayer
public java.util.ArrayList<GameServer.Client> getUsers()
getUsers
in class SinglePlayer