Package zombie.network
Class GameFileClient
java.lang.Object
zombie.network.GameFileClient
public class GameFileClient
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GameFileClient.ChunkRequest
-
Field Summary
Fields Modifier and Type Field Description boolean
bNeedsReboot
boolean
bQuitting
boolean
canTimeout
java.util.ArrayList
ChunkRequests
java.util.ArrayList
ChunkRequestsSent
java.util.ArrayList
deleteFiles
static GameFileClient
instance
java.util.ArrayList
LastChunkRequests
int
maxx
int
maxy
int
port
int
wx
int
wy
int
x
int
y
-
Constructor Summary
Constructors Constructor Description GameFileClient()
-
Method Summary
Modifier and Type Method Description void
abandon(java.nio.ByteBuffer bb)
void
abandonZip(java.nio.ByteBuffer bb)
void
accept(java.nio.ByteBuffer bb)
void
finished(java.nio.ByteBuffer bb)
boolean
isWaitingForChunkZip()
void
notRequiredInZip(java.nio.ByteBuffer bb)
void
quit()
void
requestChunkZip(int wx, int wy, int range)
void
requestChunkZipArray()
boolean
runConnectionTest(boolean useTCP)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
bNeedsReboot
public boolean bNeedsReboot -
bQuitting
public boolean bQuitting -
x
public int x -
y
public int y -
maxx
public int maxx -
maxy
public int maxy -
wx
public int wx -
wy
public int wy -
port
public int port -
canTimeout
public boolean canTimeout -
deleteFiles
public java.util.ArrayList deleteFiles -
LastChunkRequests
public final java.util.ArrayList LastChunkRequests -
ChunkRequests
public final java.util.ArrayList ChunkRequests -
ChunkRequestsSent
public final java.util.ArrayList ChunkRequestsSent
-
-
Constructor Details
-
GameFileClient
public GameFileClient()
-
-
Method Details
-
isWaitingForChunkZip
public boolean isWaitingForChunkZip() -
requestChunkZipArray
public void requestChunkZipArray() -
requestChunkZip
public void requestChunkZip(int wx, int wy, int range) -
abandonZip
public void abandonZip(java.nio.ByteBuffer bb) -
notRequiredInZip
public void notRequiredInZip(java.nio.ByteBuffer bb) -
abandon
public void abandon(java.nio.ByteBuffer bb) -
accept
public void accept(java.nio.ByteBuffer bb) -
finished
public void finished(java.nio.ByteBuffer bb) -
runConnectionTest
public boolean runConnectionTest(boolean useTCP) -
quit
public void quit()
-