Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

Action - Enum in brownshome.scriptwars.game.tanks
 
addBetaType(Class<? extends Game>, Difficulty) - Static method in class brownshome.scriptwars.game.GameType
 
addGlobalViewer(Consumer<ByteBuffer>) - Static method in class brownshome.scriptwars.game.DisplayHandler
 
addPlayer(Player<?>) - Method in class brownshome.scriptwars.game.Game
Attempts to add a player to the game.
addPlayer() - Method in class brownshome.scriptwars.game.Player
 
addPlayer(Player<?>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
addType(Class<? extends Game>, Difficulty) - Static method in class brownshome.scriptwars.game.GameType
 
addViewer(Consumer<ByteBuffer>) - Method in class brownshome.scriptwars.game.DisplayHandler
Returns true if the viewer was added
AggressiveAI - Class in brownshome.scriptwars.game.tanks
 
AggressiveAI() - Constructor for class brownshome.scriptwars.game.tanks.AggressiveAI
 
ammoPickedUp() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
antiClockwise() - Method in enum brownshome.scriptwars.game.tanks.Direction
 

B

BotFunction - Interface in brownshome.scriptwars.game
 
brownshome.scriptwars.connection - package brownshome.scriptwars.connection
 
brownshome.scriptwars.game - package brownshome.scriptwars.game
 
brownshome.scriptwars.game.tanks - package brownshome.scriptwars.game.tanks
 
brownshome.scriptwars.game.tanks.ai - package brownshome.scriptwars.game.tanks.ai
 
brownshome.scriptwars.server - package brownshome.scriptwars.server
 
brownshome.scriptwars.site - package brownshome.scriptwars.site
 
brownshome.scriptwars.site.servlet - package brownshome.scriptwars.site.servlet
 
bufferToString(ByteBuffer) - Static method in class brownshome.scriptwars.connection.ConnectionUtil
 
BULLET - Static variable in class brownshome.scriptwars.game.tanks.Shot
 

C

canSee(Coordinates, Coordinates) - Method in class brownshome.scriptwars.game.tanks.World
 
channel - Variable in class brownshome.scriptwars.connection.COBSChannel
The underlying network channel
clearPlayersFlag() - Method in class brownshome.scriptwars.game.Game
 
clearScoreFlag() - Method in class brownshome.scriptwars.game.Game
 
clientID() - Method in class brownshome.scriptwars.game.tanks.Tank
Returns a unique ID that can be used to identify tanks.
clockwise() - Method in enum brownshome.scriptwars.game.tanks.Direction
 
close() - Method in class brownshome.scriptwars.connection.COBSChannel
 
close() - Method in class brownshome.scriptwars.site.GameViewerSocket
 
closeConnectionHandler() - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
closeConnectionHandler() - Method in class brownshome.scriptwars.connection.MemoryConnectionHandler
 
closeConnectionHandler() - Method in class brownshome.scriptwars.connection.TCPConnectionHandler
 
closeConnectionHandler() - Method in class brownshome.scriptwars.connection.UDPConnectionHandler
 
COBSChannel - Class in brownshome.scriptwars.connection
This class performs COBS encoding on the underlying channel.
COBSChannel(SocketChannel) - Constructor for class brownshome.scriptwars.connection.COBSChannel
 
code() - Method in interface brownshome.scriptwars.game.GridItem
 
colours - Static variable in class brownshome.scriptwars.game.Player
 
CONNECTED - Static variable in class brownshome.scriptwars.connection.ConnectionStatus
 
ConnectionException - Exception in brownshome.scriptwars.connection
 
ConnectionException(ConnectionStatus, Throwable) - Constructor for exception brownshome.scriptwars.connection.ConnectionException
 
ConnectionException(ConnectionStatus) - Constructor for exception brownshome.scriptwars.connection.ConnectionException
 
ConnectionHandler<CONNECTION> - Class in brownshome.scriptwars.connection
This class is a singleton that handles one specific connection type.
ConnectionHandler() - Constructor for class brownshome.scriptwars.connection.ConnectionHandler
 
ConnectionStatus - Class in brownshome.scriptwars.connection
 
ConnectionUtil - Class in brownshome.scriptwars.connection
 
ConnectionUtil() - Constructor for class brownshome.scriptwars.connection.ConnectionUtil
 
contextDestroyed(ServletContextEvent) - Method in class brownshome.scriptwars.site.StartupHooks
 
contextInitialized(ServletContextEvent) - Method in class brownshome.scriptwars.site.StartupHooks
 
Coordinates - Class in brownshome.scriptwars.game.tanks
 
Coordinates(int, int) - Constructor for class brownshome.scriptwars.game.tanks.Coordinates
 
Coordinates(Network) - Constructor for class brownshome.scriptwars.game.tanks.Coordinates
 
createJudgingGame(int, int) - Method in class brownshome.scriptwars.game.GameType
 

D

death() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
Difficulty - Enum in brownshome.scriptwars.game
 
Direction - Enum in brownshome.scriptwars.game.tanks
 
DISCONNECTED - Static variable in class brownshome.scriptwars.connection.ConnectionStatus
 
displayGame() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
DisplayHandler - Class in brownshome.scriptwars.game
 
DisplayHandler(Game) - Constructor for class brownshome.scriptwars.game.DisplayHandler
 
doNothing() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Sets the tank to do nothing on the tick.
DROPPED - Static variable in class brownshome.scriptwars.connection.ConnectionStatus
 
droppedPacket() - Method in class brownshome.scriptwars.game.Player
 

E

end() - Method in interface brownshome.scriptwars.game.GridItem
 
endGame() - Method in class brownshome.scriptwars.game.DisplayHandler
 
endGame(Game) - Method in class brownshome.scriptwars.game.GameType
 
endGame() - Method in class brownshome.scriptwars.game.Player
 
equals(Object) - Method in class brownshome.scriptwars.game.tanks.Coordinates
 
ERROR(String) - Static method in class brownshome.scriptwars.connection.ConnectionStatus
 
error(Throwable) - Method in class brownshome.scriptwars.site.GameViewerSocket
 
extractMatch(HttpServletRequest) - Static method in class brownshome.scriptwars.site.servlet.URLUtil
 

F

FAILED_TO_KEEP_UP - Static variable in class brownshome.scriptwars.connection.ConnectionStatus
 
failedMove() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
flagScores() - Method in class brownshome.scriptwars.game.Game
Causes the scores to be upload to the clients next round
free(int) - Method in class brownshome.scriptwars.game.IDPool
x must be an ID previously generated by this ID pool
free(int) - Method in class brownshome.scriptwars.game.PlayerIDPool
Frees an ID.

G

game - Variable in class brownshome.scriptwars.game.DisplayHandler
 
Game - Class in brownshome.scriptwars.game
The interface that all played games must implement.
GameCreationException - Exception in brownshome.scriptwars.game
 
GameCreationException(String, Throwable) - Constructor for exception brownshome.scriptwars.game.GameCreationException
 
GameIconServlet - Class in brownshome.scriptwars.site.servlet
 
GameIconServlet() - Constructor for class brownshome.scriptwars.site.servlet.GameIconServlet
 
GameInfoServlet - Class in brownshome.scriptwars.site.servlet
 
GameInfoServlet() - Constructor for class brownshome.scriptwars.site.servlet.GameInfoServlet
 
GameServlet - Class in brownshome.scriptwars.site.servlet
 
GameServlet() - Constructor for class brownshome.scriptwars.site.servlet.GameServlet
 
GameType - Class in brownshome.scriptwars.game
 
GameType(Class<? extends Game>, Difficulty) - Constructor for class brownshome.scriptwars.game.GameType
 
GameType(Class<? extends Game>, boolean, Language, Difficulty) - Constructor for class brownshome.scriptwars.game.GameType
 
GameViewerSocket - Class in brownshome.scriptwars.site
The websocket sends binary data to the web page on every game tick.
GameViewerSocket() - Constructor for class brownshome.scriptwars.site.GameViewerSocket
 
getAction() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Gets the action that will be taken next tick
getActivePlayers() - Method in class brownshome.scriptwars.game.Game
 
getAmmo() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Returns the amount of ammo that you have left
getAmmoPickedUp() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getAmmoPickups() - Method in class brownshome.scriptwars.game.tanks.World
 
getAvailableGame() - Method in class brownshome.scriptwars.game.GameType
 
getBoolean() - Method in class brownshome.scriptwars.connection.Network
Gets a true or false value from the data.
getBotFunctions() - Static method in class brownshome.scriptwars.game.tanks.TankGame
 
getByte() - Method in class brownshome.scriptwars.connection.Network
Gets a single byte from the data.
getConnection() - Method in class brownshome.scriptwars.game.Player
 
getConnectionHander() - Method in class brownshome.scriptwars.game.Player
 
getConnectionStatus() - Method in exception brownshome.scriptwars.connection.ConnectionException
 
getConnectionStatus() - Method in class brownshome.scriptwars.connection.Network
Queries the connection status.
getConnectionStatus() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Queries the connection status.
getCurrentPosition() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Returns the current position of the player.
getData() - Method in class brownshome.scriptwars.connection.Network
Gets the raw packet data, Only use this if you know what you are doing.
getData(Player<?>, ByteBuffer) - Method in class brownshome.scriptwars.game.Game
Requests the data packet to be sent to a particular player.
getData(Player<?>, ByteBuffer) - Method in class brownshome.scriptwars.game.tanks.TankGame
byte: 0/1 alive or dead byte: ammoRemaining byte: x byte: y byte: width byte: height width * height * boolean: wall array byte: players players * { byte: x byte: y byte: id } byte: shots shots * { byte: x byte: y byte: direction } byte: ammoPickups shots * { byte: x byte: y }
getDataSize() - Method in class brownshome.scriptwars.game.Game
 
getDataSize() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getDeaths() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getDescription() - Method in class brownshome.scriptwars.game.GameType
 
getDescription() - Static method in class brownshome.scriptwars.game.tanks.TankGame
 
getDifficulties() - Method in class brownshome.scriptwars.game.GameType
 
getDifficulty() - Method in class brownshome.scriptwars.game.GameType
 
getDirection(int, int) - Static method in enum brownshome.scriptwars.game.tanks.Direction
 
getDirection(Coordinates, Coordinates) - Static method in enum brownshome.scriptwars.game.tanks.Direction
 
getDirection() - Method in class brownshome.scriptwars.game.tanks.Shot
 
getDirection() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Gets the relevant direction for the action next tick.
getDisplayHandler() - Method in class brownshome.scriptwars.game.Game
 
getDisplayHandler() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getFloat() - Method in class brownshome.scriptwars.connection.Network
Gets a floating point number from the data
getGame(int) - Static method in class brownshome.scriptwars.game.Game
 
getGame() - Method in class brownshome.scriptwars.game.GridDisplayHandler
 
getGame() - Method in class brownshome.scriptwars.game.Player
 
getGame() - Method in class brownshome.scriptwars.game.tanks.TankGameDisplayHandler
 
getGames() - Method in class brownshome.scriptwars.game.GameType
 
getGames() - Static method in class brownshome.scriptwars.server.Server
 
getGameType(String) - Static method in class brownshome.scriptwars.game.GameType
 
getGameTypes() - Static method in class brownshome.scriptwars.game.GameType
 
getHeight() - Method in class brownshome.scriptwars.game.GridDisplayHandler
 
getHeight() - Method in class brownshome.scriptwars.game.tanks.World
 
getIcon(Player<?>, Function<String, File>) - Method in class brownshome.scriptwars.game.Game
Creates an icon of a specific colour
getIcon(Function<String, File>) - Method in class brownshome.scriptwars.game.Player
 
getIcon(Player<?>, Function<String, File>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getID() - Method in class brownshome.scriptwars.game.Game
Generates an ID for this game, the first byte is a protocol identifier, the next byte is the game ID, the last byte is a player id.
getID(int) - Method in class brownshome.scriptwars.game.Game
 
getID() - Method in class brownshome.scriptwars.game.Player
 
getIndex(Player<?>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getInt() - Method in class brownshome.scriptwars.connection.Network
Gets a single integer from the data.
getInvalidIDError(Game) - Static method in class brownshome.scriptwars.connection.ConnectionHandler
 
getKills() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getLanguage() - Method in class brownshome.scriptwars.game.GameType
 
getMap() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Returns a World object.
getMaximumPlayers() - Method in class brownshome.scriptwars.game.Game
 
getMaximumPlayers() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getMovesFailed() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getMovesMade() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getName() - Method in enum brownshome.scriptwars.game.Difficulty
 
getName() - Method in class brownshome.scriptwars.game.GameType
 
getName() - Method in enum brownshome.scriptwars.game.Language
 
getName() - Method in class brownshome.scriptwars.game.Player
 
getName() - Static method in class brownshome.scriptwars.game.tanks.TankGame
 
getPacket() - Method in class brownshome.scriptwars.connection.COBSChannel
Attempts to read a packet from the incoming network connection.
getPlayer(int) - Method in class brownshome.scriptwars.game.Game
 
getPlayerCount() - Method in class brownshome.scriptwars.game.Game
Gets the number of active players
getPlayerCount() - Method in class brownshome.scriptwars.game.GameType
 
getPlayerFromID(int) - Static method in class brownshome.scriptwars.game.Player
 
getPosition() - Method in class brownshome.scriptwars.game.tanks.Shot
 
getPosition() - Method in class brownshome.scriptwars.game.tanks.Tank
 
getPreferedConnectionHandler() - Method in class brownshome.scriptwars.game.Game
 
getPreferedConnectionHandler() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getProtocolByte() - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
getProtocolByte() - Method in class brownshome.scriptwars.connection.MemoryConnectionHandler
 
getProtocolByte() - Method in class brownshome.scriptwars.connection.TCPConnectionHandler
 
getProtocolByte() - Method in class brownshome.scriptwars.connection.UDPConnectionHandler
 
getRandom(int, int) - Static method in class brownshome.scriptwars.game.tanks.Coordinates
 
getScore() - Method in class brownshome.scriptwars.game.Player
 
getServerBot(String) - Method in class brownshome.scriptwars.game.GameType
Returns the main function of the requested bot, throwing an IllegalArgumentException if there is none
getShot(Coordinates) - Method in class brownshome.scriptwars.game.tanks.World
 
getShots() - Method in class brownshome.scriptwars.game.tanks.World
 
getShotsFired() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
getSlot() - Method in class brownshome.scriptwars.game.Game
Returns a byte used to identify this game.
getSlot() - Method in class brownshome.scriptwars.game.Player
 
getStats(Player<?>) - Method in class brownshome.scriptwars.game.Game
Returns a mapping from stats to scores
getStats(Player<?>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getString() - Method in class brownshome.scriptwars.connection.Network
Gets a string from the data.
getTank(Coordinates) - Method in class brownshome.scriptwars.game.tanks.World
 
getTankGameAmmo() - Method in class brownshome.scriptwars.site.StaticBean
 
getTankGameShotSpeed() - Method in class brownshome.scriptwars.site.StaticBean
 
getTanks() - Method in class brownshome.scriptwars.game.tanks.World
Returns the collection of tanks that the player can see.
getTickRate() - Method in class brownshome.scriptwars.game.Game
 
getTickRate() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
getTimeJoined() - Method in class brownshome.scriptwars.game.Player
 
getType() - Method in class brownshome.scriptwars.game.Game
 
getTypeList() - Method in class brownshome.scriptwars.site.StaticBean
 
getUserID() - Method in class brownshome.scriptwars.game.GameType
generates a new ID
getUserID(int) - Method in class brownshome.scriptwars.game.GameType
generates a new ID
getVisibleShots() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Returns the collection of shots that are visible.
getVisibleTanks() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Returns the collection of tanks that are visible.
getWidth() - Method in class brownshome.scriptwars.game.GridDisplayHandler
 
getWidth() - Method in class brownshome.scriptwars.game.tanks.World
 
getX() - Method in class brownshome.scriptwars.game.tanks.Coordinates
 
getY() - Method in class brownshome.scriptwars.game.tanks.Coordinates
 
GridDisplayHandler - Class in brownshome.scriptwars.game
A DisplayHandler that displays a grid of static items and dynamic items
GridDisplayHandler(Game) - Constructor for class brownshome.scriptwars.game.GridDisplayHandler
 
GridItem - Interface in brownshome.scriptwars.game
 

H

handleOldViewers(Collection<Consumer<ByteBuffer>>) - Method in class brownshome.scriptwars.game.GridDisplayHandler
 
HardAI - Class in brownshome.scriptwars.game.tanks.ai
 
hasData() - Method in class brownshome.scriptwars.connection.Network
Checks if the next getX() will throw an exception.
hasEnded() - Method in class brownshome.scriptwars.game.Game
 
hasFreeIDs() - Method in class brownshome.scriptwars.game.IDPool
 
hashCode() - Method in class brownshome.scriptwars.game.tanks.Coordinates
 
hasPerPlayerData() - Method in class brownshome.scriptwars.game.Game
 
hasPerPlayerData() - Method in class brownshome.scriptwars.game.tanks.TankGame
 

I

IDPool - Class in brownshome.scriptwars.game
 
IDPool(int) - Constructor for class brownshome.scriptwars.game.IDPool
 
IDRequestServlet - Class in brownshome.scriptwars.site.servlet
 
IDRequestServlet() - Constructor for class brownshome.scriptwars.site.servlet.IDRequestServlet
 
incommingData(ByteBuffer, Player<?>) - Method in class brownshome.scriptwars.game.Game
Called by the connection implementation when data is received from the client.
incommingData(ByteBuffer) - Method in class brownshome.scriptwars.game.Player
 
initialize() - Static method in class brownshome.scriptwars.server.Server
 
instance() - Static method in class brownshome.scriptwars.connection.MemoryConnectionHandler
 
instance() - Static method in class brownshome.scriptwars.connection.TCPConnectionHandler
 
instance() - Static method in class brownshome.scriptwars.connection.UDPConnectionHandler
 
InvalidIDException - Exception in brownshome.scriptwars.connection
 
InvalidIDException() - Constructor for exception brownshome.scriptwars.connection.InvalidIDException
 
isAlive() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Checks if we are alive.
isAmmoPickup(Coordinates) - Method in class brownshome.scriptwars.game.tanks.World
 
isBetaGame() - Method in class brownshome.scriptwars.game.GameType
 
isClosed() - Method in class brownshome.scriptwars.connection.COBSChannel
 
isCorrectProtocol(int) - Method in class brownshome.scriptwars.game.Player
 
isRequested(int) - Method in class brownshome.scriptwars.game.PlayerIDPool
Checks if an ID was previously returned by request() and not made active.
isServerSide() - Method in class brownshome.scriptwars.game.Player
 
isSpaceForPlayer() - Method in class brownshome.scriptwars.game.Game
 
isWall(Coordinates) - Method in class brownshome.scriptwars.game.tanks.World
 
isWall(int, int) - Method in class brownshome.scriptwars.game.tanks.World
 

J

join(ByteBuffer, SynchronousQueue<ByteBuffer>) - Method in class brownshome.scriptwars.connection.MemoryConnectionHandler
 

K

kill() - Method in class brownshome.scriptwars.game.tanks.TankStats
 

L

Language - Enum in brownshome.scriptwars.game
 
LOG - Static variable in class brownshome.scriptwars.server.Server
 

M

main(String[]) - Static method in class brownshome.scriptwars.game.tanks.AggressiveAI
 
main(String[]) - Static method in class brownshome.scriptwars.game.tanks.ai.HardAI
 
main(String[]) - Static method in class brownshome.scriptwars.game.tanks.ai.RandomAI
 
main(String[]) - Static method in class brownshome.scriptwars.game.tanks.ai.ScaredAI
 
main(String[]) - Static method in class brownshome.scriptwars.game.tanks.ai.SimpleAI
 
makeActive(int) - Method in class brownshome.scriptwars.game.PlayerIDPool
Makes an ID active, this ID must be an ID returned from request().
MAX_AMMO - Static variable in class brownshome.scriptwars.game.tanks.Tank
 
MemoryConnectionHandler - Class in brownshome.scriptwars.connection
 
MemoryConnectionHandler() - Constructor for class brownshome.scriptwars.connection.MemoryConnectionHandler
 
message(Session, ByteBuffer) - Method in class brownshome.scriptwars.site.GameViewerSocket
 
move(Coordinates) - Method in enum brownshome.scriptwars.game.tanks.Direction
 
move(Direction) - Method in class brownshome.scriptwars.game.tanks.TankAPI
Move the tank in a direction.
move() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
moveX(int) - Method in enum brownshome.scriptwars.game.tanks.Direction
 
moveY(int) - Method in enum brownshome.scriptwars.game.tanks.Direction
 

N

Network - Class in brownshome.scriptwars.connection
The main class that clients can use to communicate with the server.
Network(int, String, String) - Constructor for class brownshome.scriptwars.connection.Network
Call this using the ID given to you by the website to connect
nextTick() - Method in class brownshome.scriptwars.connection.Network
Waits until all the players have made their moves and sends the data and retrieved a new set of data from the server.
nextTick() - Method in class brownshome.scriptwars.game.tanks.TankAPI
This is the main API loop.
NOT_CONNECTED - Static variable in class brownshome.scriptwars.connection.ConnectionStatus
 

O

open(String, Session) - Method in class brownshome.scriptwars.site.GameViewerSocket
 
opposite() - Method in enum brownshome.scriptwars.game.tanks.Direction
 
OutOfIDsException - Exception in brownshome.scriptwars.game
 
OutOfIDsException() - Constructor for exception brownshome.scriptwars.game.OutOfIDsException
 

P

Player<CONNECTION> - Class in brownshome.scriptwars.game
Holds the identifying information for each connected member.
Player(int, String, ConnectionHandler<CONNECTION>, CONNECTION) - Constructor for class brownshome.scriptwars.game.Player
 
PLAYER_COUNT - Static variable in class brownshome.scriptwars.game.tanks.TankGame
 
PlayerIconServlet - Class in brownshome.scriptwars.site.servlet
 
PlayerIconServlet() - Constructor for class brownshome.scriptwars.site.servlet.PlayerIconServlet
 
PlayerIDPool - Class in brownshome.scriptwars.game
A class to be used for allocating and de-allocating player IDs.
PlayerIDPool(int) - Constructor for class brownshome.scriptwars.game.PlayerIDPool
Creates an ID pool with capacity IDs, from 0 to capacity -1
PlayerTableServlet - Class in brownshome.scriptwars.site.servlet
 
PlayerTableServlet() - Constructor for class brownshome.scriptwars.site.servlet.PlayerTableServlet
 
poolSize() - Method in class brownshome.scriptwars.game.IDPool
 
PORT - Static variable in class brownshome.scriptwars.connection.UDPConnectionHandler
 
printAction() - Method in class brownshome.scriptwars.game.tanks.TankAPI
Prints the action to be taken next tick
processData(ByteBuffer, Player<?>) - Method in class brownshome.scriptwars.game.Game
Called when an incoming packet is received.
processData(ByteBuffer, Player<?>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
putStaticGrid(byte[][]) - Method in class brownshome.scriptwars.game.GridDisplayHandler
 

R

RandomAI - Class in brownshome.scriptwars.game.tanks.ai
 
removeGlobalViewer(Consumer<ByteBuffer>) - Static method in class brownshome.scriptwars.game.DisplayHandler
 
removePlayer(Player<?>) - Method in class brownshome.scriptwars.game.Game
Called when a player times out from the server
removePlayer() - Method in class brownshome.scriptwars.game.Player
 
removePlayer(Player<?>) - Method in class brownshome.scriptwars.game.tanks.TankGame
 
removeViewer(Consumer<ByteBuffer>) - Method in class brownshome.scriptwars.game.DisplayHandler
 
request() - Method in class brownshome.scriptwars.game.IDPool
 
request() - Method in class brownshome.scriptwars.game.PlayerIDPool
Gets an ID from the list of IDs, this method checks the free IDs before it returns an old requested ID.
RequestBotServlet - Class in brownshome.scriptwars.site.servlet
 
RequestBotServlet() - Constructor for class brownshome.scriptwars.site.servlet.RequestBotServlet
 

S

ScaredAI - Class in brownshome.scriptwars.game.tanks.ai
 
sendByte(int) - Method in class brownshome.scriptwars.connection.Network
Sends a single byte to the server.
sendData(CONNECTION, ByteBuffer) - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
sendData(byte[]) - Method in class brownshome.scriptwars.connection.Network
Sends raw data to the server.
sendData() - Method in class brownshome.scriptwars.game.Game
Sends all data relevant to a game
sendData(ByteBuffer) - Method in class brownshome.scriptwars.game.Player
 
sendEndGame(CONNECTION) - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
sendError(CONNECTION, String) - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
sendError(String) - Method in class brownshome.scriptwars.game.Player
 
sendFloat(float) - Method in class brownshome.scriptwars.connection.Network
Sends a single float to the server.
sendGameTableUpdate() - Static method in class brownshome.scriptwars.game.DisplayHandler
 
sendInt(int) - Method in class brownshome.scriptwars.connection.Network
Sends a single integer to the server.
sendInvalidIDError() - Method in class brownshome.scriptwars.game.Player
 
sendRawData(SocketAddress, ByteBuffer...) - Method in class brownshome.scriptwars.connection.UDPConnectionHandler
 
sendString(String) - Method in class brownshome.scriptwars.connection.Network
Sends a String to the server.
sendTimeOut(CONNECTION) - Method in class brownshome.scriptwars.connection.ConnectionHandler
 
sendUpdates() - Method in class brownshome.scriptwars.game.DisplayHandler
 
Server - Class in brownshome.scriptwars.server
Main entrypoint of the server program.
Server() - Constructor for class brownshome.scriptwars.server.Server
 
setDynamicItems(Collection<GridItem>) - Method in class brownshome.scriptwars.game.GridDisplayHandler
 
setScore(int) - Method in class brownshome.scriptwars.game.Player
Only ever call this from one thread, the game thread
shoot(Direction) - Method in class brownshome.scriptwars.game.tanks.TankAPI
Shoots a bullet in the specified direction.
Shot - Class in brownshome.scriptwars.game.tanks
 
Shot(Network) - Constructor for class brownshome.scriptwars.game.tanks.Shot
 
shotFired() - Method in class brownshome.scriptwars.game.tanks.TankStats
 
shouldStop() - Static method in class brownshome.scriptwars.server.Server
 
shutdown() - Static method in class brownshome.scriptwars.server.Server
 
signalListUpdate() - Method in class brownshome.scriptwars.game.GameType
Updates the game table
silentTimeOut() - Method in class brownshome.scriptwars.game.Player
Times out the player without sending a packet, used when the connection is terminated externally
SimpleAI - Class in brownshome.scriptwars.game.tanks.ai
 
SPEED - Static variable in class brownshome.scriptwars.game.tanks.Shot
 
start(String[]) - Method in interface brownshome.scriptwars.game.BotFunction
 
start() - Method in class brownshome.scriptwars.game.Game
 
start() - Method in interface brownshome.scriptwars.game.GridItem
 
startServerBot(String) - Method in class brownshome.scriptwars.game.Game
 
StartupHooks - Class in brownshome.scriptwars.site
 
StartupHooks() - Constructor for class brownshome.scriptwars.site.StartupHooks
 
startWhenReady(int) - Method in class brownshome.scriptwars.game.Game
Waits until the game is full, then starts the game
StaticBean - Class in brownshome.scriptwars.site
 
StaticBean() - Constructor for class brownshome.scriptwars.site.StaticBean
 
stringToBuffer(String) - Static method in class brownshome.scriptwars.connection.ConnectionUtil
 

T

Tank - Class in brownshome.scriptwars.game.tanks
 
Tank(Network) - Constructor for class brownshome.scriptwars.game.tanks.Tank
Creates a tank on the client side
TankAPI - Class in brownshome.scriptwars.game.tanks
This is a wrapper over the Network class that gives an API to control the Tank.
TankAPI(int, String, String) - Constructor for class brownshome.scriptwars.game.tanks.TankAPI
Call this using the ID given to you by the website to connect
TankGame - Class in brownshome.scriptwars.game.tanks
 
TankGame(boolean[][], GameType) - Constructor for class brownshome.scriptwars.game.tanks.TankGame
 
TankGame(GameType) - Constructor for class brownshome.scriptwars.game.tanks.TankGame
 
TankGame(GameType, int, int) - Constructor for class brownshome.scriptwars.game.tanks.TankGame
 
TankGame(boolean[][], GameType, int, int) - Constructor for class brownshome.scriptwars.game.tanks.TankGame
 
TankGameDisplayHandler - Class in brownshome.scriptwars.game.tanks
 
TankGameDisplayHandler(TankGame) - Constructor for class brownshome.scriptwars.game.tanks.TankGameDisplayHandler
 
TankGameDisplayHandler.DynamicSprites - Enum in brownshome.scriptwars.game.tanks
 
TankGameDisplayHandler.StaticSprites - Enum in brownshome.scriptwars.game.tanks
 
TankStats - Class in brownshome.scriptwars.game.tanks
 
TankStats(Player<?>) - Constructor for class brownshome.scriptwars.game.tanks.TankStats
 
TCPConnectionHandler - Class in brownshome.scriptwars.connection
The first packet sent contains the player ID and the player name
tick() - Method in class brownshome.scriptwars.game.tanks.TankGame
 
timeOut() - Method in class brownshome.scriptwars.game.Player
 
toString() - Method in class brownshome.scriptwars.connection.ConnectionStatus
 
toString() - Method in class brownshome.scriptwars.game.tanks.Coordinates
 
toString() - Method in class brownshome.scriptwars.game.tanks.Tank
 

U

UDPConnectionHandler - Class in brownshome.scriptwars.connection
Communicates over UDP with the client library.
UnknownServerBotException - Exception in brownshome.scriptwars.game
 
UnknownServerBotException(String) - Constructor for exception brownshome.scriptwars.game.UnknownServerBotException
 
UPD_PROTOCOL_BYTE - Static variable in class brownshome.scriptwars.connection.UDPConnectionHandler
 
URLUtil - Class in brownshome.scriptwars.site.servlet
 
URLUtil() - Constructor for class brownshome.scriptwars.site.servlet.URLUtil
 

V

valueOf(String) - Static method in enum brownshome.scriptwars.game.Difficulty
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum brownshome.scriptwars.game.Language
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum brownshome.scriptwars.game.tanks.Action
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum brownshome.scriptwars.game.tanks.Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum brownshome.scriptwars.game.tanks.TankGameDisplayHandler.DynamicSprites
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum brownshome.scriptwars.game.tanks.TankGameDisplayHandler.StaticSprites
Returns the enum constant of this type with the specified name.
values() - Static method in enum brownshome.scriptwars.game.Difficulty
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum brownshome.scriptwars.game.Language
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum brownshome.scriptwars.game.tanks.Action
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum brownshome.scriptwars.game.tanks.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum brownshome.scriptwars.game.tanks.TankGameDisplayHandler.DynamicSprites
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum brownshome.scriptwars.game.tanks.TankGameDisplayHandler.StaticSprites
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitForResponses(long) - Method in class brownshome.scriptwars.game.Game
 
World - Class in brownshome.scriptwars.game.tanks
 
World(Network) - Constructor for class brownshome.scriptwars.game.tanks.World
Constructs a world using data from the given network
write(ByteBuffer) - Method in class brownshome.scriptwars.connection.COBSChannel
 
write() - Method in class brownshome.scriptwars.connection.COBSChannel
Attempts to write some data to the underlying channel.
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links