A B C D E F G H I L M N P Q R S T U V

S

SCORE - Static variable in class client.framework.network.parser.Action
 
searchForNodes() - Method in class client.framework.network.ClientSocketCommunicator
Not implemented.
searchForNodes() - Method in interface client.framework.network.Communicator
Searches for network nodes to connect to.
searchForNodes() - Method in interface server.framework.network.Communicator
Searches for network nodes to connect to.
searchForNodes() - Method in class server.framework.network.ServerSocketCommunicator
Not implemented.
searchForNodes() - Method in class server.testmodules.TestModule
Uses the parent class implementation.
self - Variable in class client.framework.models.AbstractGame
 
sendAction(Action, Object[][], boolean) - Method in class server.framework.models.AbstractSession
Sends the specified action to all connected players.
sendAction(Action, Object[][], AbstractPlayer, boolean, boolean) - Method in class server.framework.models.AbstractSession
Sends the specified action to all connected players, except the sender of the action, if he does not need to receive the message.
sender - Variable in class client.framework.network.ClientSocketCommunicator
 
senderThread - Variable in class server.framework.network.ServerSocketCommunicator
 
sendMessage(Object) - Method in class client.framework.network.ClientSocketCommunicator.SenderThread
Called when a new message is to be sent.
sendMessage(Object, boolean) - Method in class client.framework.network.ClientSocketCommunicator
Sends the specified message to the server.
sendMessage(Object, boolean) - Method in interface client.framework.network.Communicator
Called when the client's model wants to send a message using its Communicator instance.
sendMessage(Object, boolean) - Method in class server.framework.models.AbstractPlayer
Sends a message using the player's assigned SocketWrapper.
sendMessage(Object, boolean) - Method in interface server.framework.network.Communicator
Called when the server's models want to send a message using its Communicator instances.
sendMessage(String) - Method in class server.framework.network.ServerSocketCommunicator.SenderThread
Called when a new message is to be sent.
sendMessage(Object, boolean) - Method in class server.framework.network.ServerSocketCommunicator
Notifies the sender thread that a new message is to be sent.
sendMessage(String) - Method in class server.framework.network.SocketWrapper
Sends a message in the specified format.
sendMessage(Object, boolean) - Method in class server.testmodules.TestModule
Notifies the sender thread that a new message is to be sent.
sendPlayerInfo() - Method in class client.framework.models.AbstractGame
Sends the local player's data to the server.
SEP_ACTION - Static variable in class client.framework.models.AbstractGame
 
server - package server
 
server - Variable in class server.framework.models.AbstractSession
 
server - Variable in class server.framework.network.ServerSocketCommunicator
 
server.brickblock.fwimpl - package server.brickblock.fwimpl
 
server.brickblock.objects - package server.brickblock.objects
 
server.framework - package server.framework
 
server.framework.gui - package server.framework.gui
 
server.framework.models - package server.framework.models
 
server.framework.network - package server.framework.network
 
server.framework.network.parser - package server.framework.network.parser
 
server.framework.threads - package server.framework.threads
 
server.testmodules - package server.testmodules
 
ServerGUI<S extends AbstractSession<P,?>,P extends AbstractPlayer> - Class in server.framework.gui
The server's gui which displays information about the server's sessions and these sessions' players and settings.
ServerGUI() - Constructor for class server.framework.gui.ServerGUI
Creates a ServerGUI-frame and initialize the various attributes.
ServerSocketCommunicator - Class in server.framework.network
The server implementation of the Communicator interface.
ServerSocketCommunicator(SocketWrapper, AbstractServer) - Constructor for class server.framework.network.ServerSocketCommunicator
Creates a new ServerSocketCommunicator instance, and initialises the sender and receiver threads.
ServerSocketCommunicator.ReceiverThread - Class in server.framework.network
Thread responsible for listening to the connection, and detecting when new messages arrive.
ServerSocketCommunicator.ReceiverThread() - Constructor for class server.framework.network.ServerSocketCommunicator.ReceiverThread
 
ServerSocketCommunicator.SenderThread - Class in server.framework.network
Thread that is responsible for sending messages to the socket's associated client.
ServerSocketCommunicator.SenderThread() - Constructor for class server.framework.network.ServerSocketCommunicator.SenderThread
Initialises the message queue.
Session - Class in client.framework.models
This class is a model representing a session running on the server to which the client is connected.
Session(int, String, int, int) - Constructor for class client.framework.models.Session
Constructor that creates a Session object with the specified attributes.
Session(String[]) - Constructor for class client.framework.models.Session
Creates a new Session object, where the session's attributes are contained in an array.
SESSION_LIST - Static variable in class client.framework.network.parser.Action
 
SESSION_SELECTED - Static variable in class client.framework.network.parser.Action
 
SessionPanel<P extends AbstractPlayer> - Class in server.framework.gui
The SessionPanel displays information about the session by using two other panels containing important information.
SessionPanel(AbstractSession<P, ?>) - Constructor for class server.framework.gui.SessionPanel
Creates a SessionPanel object with the specified attributes.
SessionWindow - Class in client.framework.views
A Form extension that lists the currently active on the server when the client has connected to the server.
SessionWindow(AbstractGame) - Constructor for class client.framework.views.SessionWindow
Creates the session window.
setAttributeValues(String[]) - Method in class client.framework.models.AbstractPlayer
Called when a player's attributes has been received.
setAttributeValues(String[]) - Method in class server.framework.models.AbstractPlayer
Called when a player's attributes has been received.
setColor(int, int, int) - Method in class client.framework.models.AbstractPlayer
Sets the player's color.
setDuration(int) - Method in class server.brickblock.objects.Powerup
Sets the duration of the power up to the specified value.
setGameStarted(boolean) - Method in class client.framework.views.LobbyView
 
setImage() - Method in class client.framework.models.AbstractPlayer
Creates an image for the player's sprite.
setMessageSize(int) - Method in class server.framework.network.ServerSocketCommunicator.ReceiverThread
Sets the message size used for the UDP communication.
setMessageSize(int) - Method in class server.framework.network.SocketWrapper
Only used when running tests
setName(String) - Method in class client.framework.models.AbstractPlayer
Sets the player's name.
setName(String) - Method in class server.framework.models.AbstractPlayer
Sets the name of the player.
setPlayer(AbstractPlayer) - Method in class server.framework.network.SocketWrapper
Sets the player that "owns" this SocketWrapper.
setPlayerPosition(P, int[]) - Method in class server.framework.models.AbstractSession
Sets the position of the specified player.
setPosition(int, int) - Method in class client.framework.models.AbstractPlayer
Sets the player's position on the game board to the specified position.
setPosition(int, int) - Method in class server.brickblock.objects.Powerup
Sets the position of the power up.
setPosition(String[]) - Method in class server.framework.models.AbstractPlayer
Sets the player's position.
setPosition(int[]) - Method in class server.framework.models.AbstractPlayer
Sets the player's position.
setReady(boolean) - Method in class client.framework.models.AbstractPlayer
Sets the player's ready status to the specified value.
setReady(boolean) - Method in class server.framework.models.AbstractPlayer
Sets the player's ready status to the given value.
setReady(String) - Method in class server.framework.models.AbstractPlayer
Sets the player's ready status to the given value, converted to a boolean value.
setReceive(long) - Method in class server.testmodules.TestModule.Timer
Sets the receival time of the message.
setRemoteAddress(SocketAddress) - Method in class server.framework.network.SocketWrapper
Sets the address of the associated client.
setScore(int) - Method in class client.framework.models.AbstractPlayer
Sets the player's score to the specified value.
setScore(int) - Method in class server.framework.models.AbstractPlayer
Sets the player's score to the specified value.
setScreenResolution(int[]) - Method in class client.framework.models.AbstractPlayer
Sets the screen resolution variable to the screen resolution on the player's phone.
setSession(BBSession) - Method in class server.brickblock.fwimpl.BBEventHandler
Sets this thread's session.
setSession(S) - Method in interface server.framework.threads.EventHandler
Sets the session to which this thread is assigned.
setSessionId(int) - Method in class server.framework.models.AbstractPlayer
Sets the id of the session to which the player is connected.
setSessionPanel(SessionPanel<P>) - Method in class server.framework.models.AbstractSession
Sets this session's SessionPanel in the server GUI.
setSize(int) - Method in class client.framework.models.AbstractPlayer
Sets the size of the player's sprite to the specified size, and creates the sprite's image.
setSize(int) - Method in class server.framework.models.AbstractPlayer
Sets the player's size to the given value.
setSpeed(int) - Method in class client.framework.models.AbstractPlayer
Set's the speed in which the player moves in the game board to the specified value.
setSpeed(int) - Method in class server.framework.models.AbstractPlayer
Sets the player's speed to the given value.
setStrength(int) - Method in class client.brickblock.fwimpl.BBPlayer
Sets the player's strength to the value given as input parameter.
setStrength(int) - Method in class server.brickblock.fwimpl.BBPlayer
Sets the player's strength.
setTeam(int) - Method in class client.framework.models.AbstractPlayer
Sets the player as member of the specified team.
setTeam(int) - Method in class server.framework.models.AbstractPlayer
Sets the player's team to the specified value.
setTeamColor(int[]) - Method in class client.framework.models.AbstractPlayer
Sets the player's team color.
setTimeout(long) - Method in class server.brickblock.objects.Powerup
Sets the time for when this power up will no longer remain active for the player that has picked it up.
Setting - Enum in server.framework.models
Enum that specifies the settings used in the game.
SETTING_CHANGED - Static variable in class client.framework.network.parser.Action
 
SETTINGS_LIST - Static variable in class client.framework.network.parser.Action
 
SettingsList - Class in server.framework.models
This class contains a list of the settings applying to a session, and is used by the session's GameThread to ensure the validity of the game's current state.
SettingsList() - Constructor for class server.framework.models.SettingsList
Initialises the list of settings.
SettingsPanel - Class in server.framework.gui
The SettingsPanel displays information about the session's settings.
SettingsPanel(AbstractSession) - Constructor for class server.framework.gui.SettingsPanel
Creates a SettingsPanel object with the specified attributes and calls the inialize method.
SettingsWindow - Class in client.framework.views
This class is a simple form that shows a list of the currently active settings of the game, and enables editing these.
SettingsWindow(AbstractGame) - Constructor for class client.framework.views.SettingsWindow
Called when a screen for editing settings is needed.
setValues(String[][]) - Method in class server.framework.network.parser.ActionPair
Sets the values of the wrapper to the specified values.
setView(Displayable) - Method in class client.framework.models.AbstractGame
Changes the view currently displayed to the one specified.
setX(int) - Method in class client.framework.models.AbstractPlayer
Sets the x-position of the player.
setY(int) - Method in class client.framework.models.AbstractPlayer
Sets the y-position of the player.
showAlert(String, String, int, Displayable) - Method in class client.framework.models.AbstractGame
Shows a message for a given amount of time, before changing to another screen.
SIZE - Static variable in class client.framework.views.StartupWindow
 
SIZE_INC - Static variable in class server.testmodules.TransferSpeedTest
 
SizeUp - Class in client.brickblock.objects
Powerup implementation that increases the size of whoever picks it up.
SizeUp(int, int, int) - Constructor for class client.brickblock.objects.SizeUp
Constructor that creates a SizeUp instance by calling the super constructor with the correct image and properties.
SizeUp - Class in server.brickblock.objects
Powerup implementation that increases the size of whoever picks it up.
SizeUp(int, int, int) - Constructor for class server.brickblock.objects.SizeUp
Constructor that creates a SizeUp instance by calling the super constructor with the correct image and properties.
SLEEP_TIME - Static variable in class server.framework.network.ServerSocketCommunicator.ReceiverThread
 
socket - Variable in class server.framework.network.ServerSocketCommunicator
 
SocketWrapper - Class in server.framework.network
A wrapper class that is used to provide common methods for sending and receiving messages independent of whether TCP or UDP is used for the message transmission.
SocketWrapper(Object) - Constructor for class server.framework.network.SocketWrapper
Creates a SocketWrapper instance.
sort(Hashtable) - Static method in class client.framework.Utils
Sorts a list of comparable elements so that the element with the highest value is returned at the start of the list and the element with the lowest value is returned at the end (descending).
specialCheck() - Method in class client.brickblock.fwimpl.BBBoard
Called continously the game from the check() method in GameView.
specialCheck() - Method in class client.framework.views.GameView
Method called each time the check() method is called.
SpeedUp - Class in client.brickblock.objects
Powerup implementation that increases the speed of whoever picks it up.
SpeedUp(int, int, int) - Constructor for class client.brickblock.objects.SpeedUp
Constructor that creates a SpeedUp instance by calling the super constructor with the correct image and properties.
SpeedUp - Class in server.brickblock.objects
Powerup implementation that increases the speed of whoever picks it up.
SpeedUp(int, int, int) - Constructor for class server.brickblock.objects.SpeedUp
Constructor that creates a SpeedUp instance by calling the super constructor with the correct image and properties.
START - Static variable in class client.framework.network.parser.Action
 
startApp() - Method in class client.framework.models.AbstractGame
Starts the MIDlet.
startFramework(String, String[], int) - Method in class client.brickblock.fwimpl.BrickBlock
Initialises the framework.
startFramework(String, String[], int) - Method in class client.framework.models.AbstractGame
Called after the player has specified a name.
startGame() - Method in class client.framework.models.AbstractGame
Called when the player selects "start game" in the lobby menu.
startGame(int[]) - Method in class client.framework.views.GameView
Starts a new game with the specified size of the game board.
startGame() - Method in class server.framework.models.AbstractSession
Starts a game.
StartupWindow - Class in client.framework.views
This method is called when the MIDlet is started.
StartupWindow(AbstractGame) - Constructor for class client.framework.views.StartupWindow
The constructor creates text fields for typing the player name (10 characters), the server address, and the server port.
stop() - Method in class server.brickblock.fwimpl.BBEventHandler
Stops the thread.
stop() - Method in class server.framework.network.ServerSocketCommunicator.ReceiverThread
 
stop() - Method in class server.framework.network.ServerSocketCommunicator.SenderThread
 
stop() - Method in interface server.framework.threads.EventHandler
Called when a game is over, and the thread should be stopped.
stop() - Method in class server.framework.threads.GameThread
Called when the game is over.
stopGame(String) - Method in class client.framework.models.AbstractGame
Ends the game and returns to the lobby.
stopGame() - Method in class client.framework.views.GameView
Stops the current game, and sets the running parameter to false.
stopGame(String) - Method in class server.framework.models.AbstractSession
Method that is called when the game has been stopped for some reason.
StrengthUp - Class in client.brickblock.objects
Powerup implementation that increases the strength of whoever picks it up.
StrengthUp(int, int, int) - Constructor for class client.brickblock.objects.StrengthUp
Constructor that creates a StrengthUp instance by calling the super constructor with the correct image and properties.
StrengthUp - Class in server.brickblock.objects
Powerup implementation that increases the strength of whoever picks it up.
StrengthUp(int, int, int) - Constructor for class server.brickblock.objects.StrengthUp
Constructor that creates a StrengthUp instance by calling the super constructor with the correct image and properties.
StringParser - Class in client.framework.network.parser
An implementation of the MessageParser interface, that creates and parses String messages.
StringParser() - Constructor for class client.framework.network.parser.StringParser
 
StringParser - Class in server.framework.network.parser
An implementation of the MessageParser interface, that creates and parses String messages.
StringParser() - Constructor for class server.framework.network.parser.StringParser
 

A B C D E F G H I L M N P Q R S T U V