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

A

AbstractBoardComponent - class org.jogre.awt.AbstractBoardComponent.
This graphical component can be extended to create a number of graphical boards such as chess boards, etc.
AbstractBoardComponent(int, int) - Constructor for class org.jogre.awt.AbstractBoardComponent
Default constructor which sets the number of rows and the number of columns and everything else uses it default value.
AbstractBoardComponent(int, int, int, int, int, int, boolean, boolean, boolean) - Constructor for class org.jogre.awt.AbstractBoardComponent
This constructor sets all the various things of a board such as its number of rows/columns, cell size, spacing between cells, border width, mouse border width and the option to draw letters down the side.
AbstractConnectionThread - class org.jogre.common.AbstractConnectionThread.
Abstract connection thread which is spawned with each client.
AbstractConnectionThread(Socket) - Constructor for class org.jogre.common.AbstractConnectionThread
Constructor for a connection which takes a Socket and sends up the input and output stream.
AbstractProperties - class org.jogre.util.AbstractProperties.
Abstract class which provides various methods which are common to GameProperties, GameLabels and JogreLabels.
AbstractProperties(String) - Constructor for class org.jogre.util.AbstractProperties
Private constructor (Can only be called by the getInstance() method.
ACCEPT - Static variable in class org.jogre.comm.CommInvite
User accepts invite from a user.
actionPerformed(ActionEvent) - Method in class org.jogre.awt.ConnectionDialog
Action on the OK button.
addConnection(String, ServerConnectionThread) - Method in class org.jogre.server.ConnectionList
Create a new Connection object using a ServerConnectionThread and add to the connections HashMap using the username as the key.
addPlayer(String) - Method in class org.jogre.common.Table
Add a user to the table i.e.
addPlayer(String) - Method in class org.jogre.common.PlayerList
Add a player to the table.
addTable(String, boolean) - Method in class org.jogre.common.TableList
Add a new Table object to the HashMap.
addToTopPanel(Component) - Method in class org.jogre.awt.JogreTableFrame
Method to add additional components (such as buttons etc) to the top right hand side of the screen.
addUser(String, int) - Method in class org.jogre.common.UserList
Creates a new User using a username and a rating and adds to the HashMap.
alternateBackground - Variable in class org.jogre.awt.AbstractBoardComponent
Boolean to indicate alternate style background.

B

BLUE_LOOK_AND_FEEL - Static variable in class org.jogre.util.JogreLookAndFeel
 
borderWidth - Variable in class org.jogre.awt.AbstractBoardComponent
Width of the border in pixels.
broadcast(ITransmittable) - Method in class org.jogre.server.ServerConnectionThread
Broadcast a transmittable object to all the clients.
broadcast(String) - Method in class org.jogre.server.ServerConnectionThread
Broadcast a message to all clients.
broadcast(String, String) - Method in class org.jogre.server.ServerConnectionThread
Broadcasts a message to all users except the person who sent the message.

C

canOfferDrawResign() - Method in class org.jogre.common.Player
 
canOfferDrawResign() - Method in class org.jogre.common.playerstate.PlayerState
Returns true if a user can offer a draw or resign.
canOfferDrawResign() - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
canOfferDrawResign() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
canOfferDrawResign() - Method in class org.jogre.common.playerstate.PlayerStateSeated
 
canOfferDrawResign() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
canSit(PlayerList) - Method in class org.jogre.common.Player
Return true if a player can sit or not.
canSit(PlayerList) - Method in class org.jogre.common.playerstate.PlayerState
Returns true if a user can sit.
canSit(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateViewing
A player can sit if the number of players already seated isn't greater than the maximum number of players allowed in this game.
canSit(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateReady
 
canSit(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateSeated
 
canSit(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
canStand(PlayerList) - Method in class org.jogre.common.Player
Returns true if a player can stand.
canStand(PlayerList) - Method in class org.jogre.common.playerstate.PlayerState
Returns true if a user can stand.
canStand(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
canStand(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateReady
 
canStand(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateSeated
Once seated a player can stand back up again.
canStand(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
canStart(PlayerList) - Method in class org.jogre.common.Player
Returns true if a player can sit.
canStart(PlayerList) - Method in class org.jogre.common.playerstate.PlayerState
Returns true if a user can hit the start.
canStart(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
canStart(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateReady
 
canStart(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateSeated
A player can start if the minimum number of players are seated or are ready to start.
canStart(PlayerList) - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
cellColour1 - Variable in class org.jogre.awt.AbstractBoardComponent
Colour of cell one.
cellColour2 - Variable in class org.jogre.awt.AbstractBoardComponent
Colour of cell two.
cellSize - Variable in class org.jogre.awt.AbstractBoardComponent
Size of cell in pixels.
cellSpacing - Variable in class org.jogre.awt.AbstractBoardComponent
Spacing between cells in pixels.
CHAT_BROADCAST - Static variable in interface org.jogre.comm.Comm
Header token of a CommChatBroadcast communications object.
CHAT_PRIVATE - Static variable in interface org.jogre.comm.Comm
Header token of a CommChatPrivate communications object.
CHAT_ROOM - Static variable in interface org.jogre.comm.Comm
Header token of a CommChatRoom communications object.
className - Variable in class org.jogre.util.JogreLogger
Name of this class.
cleanup() - Method in class org.jogre.client.ClientConnectionThread
Client has exitted so clean everything up.
cleanup() - Method in class org.jogre.common.AbstractConnectionThread
This method is called to properly clean up after a client.
cleanup() - Method in class org.jogre.server.ServerConnectionThread
Client has exitted so clean everything up.
CLIENT_DISCONNECT - Static variable in class org.jogre.comm.CommDisconnect
 
CLIENT_DISCONNECT - Static variable in class org.jogre.comm.CommConnect
 
CLIENT_REQUEST_CONNECT - Static variable in class org.jogre.comm.CommConnect
 
ClientConnectionThread - class org.jogre.client.ClientConnectionThread.
Client connection which is spawned from the client machine and receives/ sends communication to/from the server.
ClientConnectionThread(Socket, String, IClient) - Constructor for class org.jogre.client.ClientConnectionThread
Default constructor which takes a Socket connection to the server, a username and an IClient which sits between this class and the GUI.
clientInterface - Variable in class org.jogre.client.ClientConnectionThread
Interface betweem this thread and the Frame
Comm - interface org.jogre.comm.Comm.
Interface for the variour standard communcations object which are available in the JOGRE api.
CommChatBroadcast - class org.jogre.comm.CommChatBroadcast.
Communication class which is used to broadcast a chat message to all users.
CommChatBroadcast() - Constructor for class org.jogre.comm.CommChatBroadcast
 
CommChatBroadcast(String) - Constructor for class org.jogre.comm.CommChatBroadcast
Constructor which creates a CommChatBroadcast object from the flatten () method of another CommChatBroadcast object.
CommChatBroadcast(String, String) - Constructor for class org.jogre.comm.CommChatBroadcast
A CommMessage.BroadCast is a ...
CommChatPrivate - class org.jogre.comm.CommChatPrivate.
Communication class which is used to send private chat from one user to another.
CommChatPrivate() - Constructor for class org.jogre.comm.CommChatPrivate
 
CommChatPrivate(String) - Constructor for class org.jogre.comm.CommChatPrivate
Constructor which creates a CommChatPrivate object from the flatten () method of another CommChatPrivate object.
CommChatPrivate(String, String, String) - Constructor for class org.jogre.comm.CommChatPrivate
 
CommChatTable - class org.jogre.comm.CommChatTable.
Chat communications object for chat at a table.
CommChatTable(String) - Constructor for class org.jogre.comm.CommChatTable
Constructor which creates a CommChatRoom object from the flatten () method of another CommChatRoom object.
CommChatTable(String, int, String) - Constructor for class org.jogre.comm.CommChatTable
 
CommConnect - class org.jogre.comm.CommConnect.
Communciations connect object.
CommConnect(String) - Constructor for class org.jogre.comm.CommConnect
Constructor which creates a CommConnect object from the flatten () method of another CommConnect object.
CommConnect(String, int) - Constructor for class org.jogre.comm.CommConnect
 
CommDisconnect - class org.jogre.comm.CommDisconnect.
Communication class which is used to disconnect a user from the system.
CommDisconnect(String) - Constructor for class org.jogre.comm.CommDisconnect
Constructor which creates a CommDisconnect object from the flatten () method of another CommDisconnect object.
CommDisconnect(String, int) - Constructor for class org.jogre.comm.CommDisconnect
 
CommError - class org.jogre.comm.CommError.
Communications class which is used to send an error from the server to a client or vice-versa.
CommError(String) - Constructor for class org.jogre.comm.CommError
Constructor which creates a CommError object from the flatten () method of another CommError object.
CommError(String, int) - Constructor for class org.jogre.comm.CommError
 
CommGameOver - class org.jogre.comm.CommGameOver.
Communication object to show that a game is over.
CommGameOver() - Constructor for class org.jogre.comm.CommGameOver
Empty constructor
CommGameOver(String) - Constructor for class org.jogre.comm.CommGameOver
Constructor which reads the game over object from a String.
CommGameOver(String, int, int, int) - Constructor for class org.jogre.comm.CommGameOver
Constructor for a game over communication object.
CommInvite - class org.jogre.comm.CommInvite.
Communication class which is used to invite a user to a table.
CommInvite() - Constructor for class org.jogre.comm.CommInvite
Empty constructor.
CommInvite(String) - Constructor for class org.jogre.comm.CommInvite
Constructor which creates a CommInvite object from the flatten () method of another CommInvite object.
CommInvite(String, int, int, boolean, String) - Constructor for class org.jogre.comm.CommInvite
Constructor for a CommInvite object which is used to invite a user to a particular table.
CommOfferDraw - class org.jogre.comm.CommOfferDraw.
Communications object which is used when one user offers a draw to another user.
CommOfferDraw(String) - Constructor for class org.jogre.comm.CommOfferDraw
Constructor which creates a CommOfferDraw object from the flatten () method of another CommInvite object.
CommOfferDraw(String, int, int) - Constructor for class org.jogre.comm.CommOfferDraw
Constructor which is called from the server and the client who is offering the draw - they are unsure of who the draw is being offered to so the usernameTo (from CommInvite) isn't used.
CommOfferDraw(String, int, int, String) - Constructor for class org.jogre.comm.CommOfferDraw
Constructor for a CommOfferDraw object.
CommSimpleMessage - class org.jogre.comm.CommSimpleMessage.
This is a base message which all communication objects should extend.
CommSimpleMessage() - Constructor for class org.jogre.comm.CommSimpleMessage
Empty constructor (used for reading a flat string)
CommSimpleMessage(String, int) - Constructor for class org.jogre.comm.CommSimpleMessage
Constructor which takes a username and a status.
CommTableAction - class org.jogre.comm.CommTableAction.
Communication class for performming table actions such as creating a new table, joining an existing table, standing up, being ready-to-start and exitting from a table.
CommTableAction(String) - Constructor for class org.jogre.comm.CommTableAction
Constructor which creates a CommTableAction object from the flatten () method of another CommTableAction object.
CommTableAction(String, boolean) - Constructor for class org.jogre.comm.CommTableAction
Creating a new table.
CommTableAction(String, int, int) - Constructor for class org.jogre.comm.CommTableAction
Used when a player plays (or stops playing) at a particular game.
CommTableAction(String, int, int, boolean) - Constructor for class org.jogre.comm.CommTableAction
Used for inviting a user.
CommTableMessage - class org.jogre.comm.CommTableMessage.
Abstract base class for table messages.
CommTableMessage() - Constructor for class org.jogre.comm.CommTableMessage
Empty constructor (used for reading a flat string)
CommTableMessage(int) - Constructor for class org.jogre.comm.CommTableMessage
Create a communcation table object with just a table number.
CommTableMessage(String, int) - Constructor for class org.jogre.comm.CommTableMessage
This constructor creates a table message where there is NO status and doesn't worry if a table is private/public.
CommTableMessage(String, int, int) - Constructor for class org.jogre.comm.CommTableMessage
Create a table message with a username, table number and a status.
CommTableMessage(String, int, int, boolean) - Constructor for class org.jogre.comm.CommTableMessage
Create a new table message with a username, status, tableNum and a boolean to show if a table is public or private.
computeNewTableNum() - Method in class org.jogre.common.TableList
Computes a new table number.
conn - Variable in class org.jogre.awt.JAvailableSeats
Link to the ClientConnectionThread (PlayerList is of interest).
conn - Variable in class org.jogre.awt.JogreTableFrame
 
conn - Variable in class org.jogre.client.JogreController
Link to the client's connection thread.
CONNECT - Static variable in interface org.jogre.comm.Comm
Header token of a CommConnect communications object.
connect(JFrame) - Static method in class org.jogre.awt.ConnectionDialog
Static convei
connect(Socket, JogreServer) - Method in class org.jogre.server.JogreServer
Abstract method which dynamically loads the correct implementation of this ServerConnectionThread e.g.
Connection - class org.jogre.server.Connection.
Connection class which holds a link to a ServerConnectionThread, lastAccessTime etc.
Connection(ServerConnectionThread) - Constructor for class org.jogre.server.Connection
Constructor which takes a ServerConnectionThread as a parameter.
ConnectionDialog - class org.jogre.awt.ConnectionDialog.
Connection dialog to enable a user to connect to a server.
ConnectionDialog.Details - class org.jogre.awt.ConnectionDialog.Details.
Small inner data structure to get access of the various fields of the dialog.
ConnectionDialog.Details(String, String, int, Socket) - Constructor for class org.jogre.awt.ConnectionDialog.Details
 
ConnectionDialog(JFrame) - Constructor for class org.jogre.awt.ConnectionDialog
Constructor which must provide a link to the parent frame which is calling this dialog.
ConnectionList - class org.jogre.server.ConnectionList.
List of Connection objects.
ConnectionList() - Constructor for class org.jogre.server.ConnectionList
Constructor which sets up a Hash to store the various Connection objects in.
connections - Variable in class org.jogre.server.JogreServer
List of server connenction objects.
connections - Variable in class org.jogre.server.ServerConnectionThread
Convience link to the userList field in the JogreServer object.
consolePriority - Variable in class org.jogre.util.JogreLogger
Priority of console logging.
containsUser(String) - Method in class org.jogre.common.UserList
Return true if the user list contains this user.
containsUser(String) - Method in class org.jogre.common.Table
Returns true if a specified user is at a table.
containsUser(String) - Method in class org.jogre.common.PlayerList
Return true if the list contains the player.
createDirectory(String) - Static method in class org.jogre.util.FileUtils
Helper method for quickly creating a directory.

D

DEBUG - Static variable in interface org.jogre.util.IJogreLog
Level 3 priority (low).
debug(String, String) - Method in class org.jogre.util.JogreLogger
Log a debug message.
DECLINE - Static variable in class org.jogre.comm.CommInvite
User declines invite from.
DEFAULT_BORDER_WIDTH - Static variable in class org.jogre.awt.AbstractBoardComponent
Default border width (15 pixels).
DEFAULT_CELL_SIZE - Static variable in class org.jogre.awt.AbstractBoardComponent
Default cell size (36 pixels).
DEFAULT_CELL_SPACING - Static variable in class org.jogre.awt.AbstractBoardComponent
Default cell spacing (1 pixel).
DEFAULT_CONSOLE_PRIORITY - Static variable in interface org.jogre.util.IJogreLog
Default priority (if problems reading from the properties file.
DEFAULT_FILE_PRIORITY - Static variable in interface org.jogre.util.IJogreLog
Default value for file output.
DEFAULT_LOOK_AND_FEEL - Static variable in class org.jogre.util.JogreLookAndFeel
 
DEFAULT_MAX_NUM_CONNECTED_USERS - Static variable in class org.jogre.server.JogreServer
Default number of maximum connected users.
DEFAULT_MOUSE_BORDER_WIDTH - Static variable in class org.jogre.awt.AbstractBoardComponent
Default mouse border width (2 pixels).
DEFAULT_SERVER_PORT - Static variable in class org.jogre.server.JogreServer
Default server port.
DEFAULT_SHOW_PRIORITY - Static variable in interface org.jogre.util.IJogreLog
Default for showing a priority.
DISCONNECT - Static variable in interface org.jogre.comm.Comm
Header token of a CommDisconnect communications object.
disconnect() - Method in class org.jogre.client.ClientConnectionThread
Stop the thread.
dragPoint - Variable in class org.jogre.awt.AbstractBoardComponent
Stores the value of where the point is being dragged.
DRAW - Static variable in class org.jogre.comm.CommGameOver
Player draws with another player.
drawBoardBackground(Graphics) - Method in class org.jogre.awt.AbstractBoardComponent
Draws the board background (all the various cells).
drawBorder(Graphics) - Method in class org.jogre.awt.AbstractBoardComponent
This method wipes the board and draws the border.
drawLetters - Variable in class org.jogre.awt.AbstractBoardComponent
If true letters/numbers are drawn on the left and bottom of the board.

E

ERROR - Static variable in interface org.jogre.comm.Comm
Header token of a CommError communications object.
ERROR - Static variable in interface org.jogre.util.IJogreLog
Level 1 priority (high).
error(String, String) - Method in class org.jogre.util.JogreLogger
Log an error message.
EXIT - Static variable in class org.jogre.comm.CommTableAction
Exit from a table.

F

filePriority - Variable in class org.jogre.util.JogreLogger
Priority of file logging.
FileUtils - class org.jogre.util.FileUtils.
Bundle of useful file operations such as creating directories if they dont exist etc.
FileUtils() - Constructor for class org.jogre.util.FileUtils
 
flatten() - Method in class org.jogre.comm.CommError
 
flatten() - Method in class org.jogre.comm.CommTableAction
Flatten the String for transmission purposes.
flatten() - Method in class org.jogre.comm.CommInvite
Flatten this offer draw object.
flatten() - Method in class org.jogre.comm.CommOfferDraw
Flatten the String.
flatten() - Method in class org.jogre.comm.CommChatBroadcast
Transmittable String representation of this object.
flatten() - Method in class org.jogre.comm.CommGameOver
Flatten communciation object.
flatten() - Method in class org.jogre.comm.CommChatPrivate
Transmittable String representation of this object.
flatten() - Method in class org.jogre.comm.CommChatTable
Transmittable String representation of this object.
flatten() - Method in class org.jogre.comm.CommDisconnect
 
flatten() - Method in interface org.jogre.comm.ITransmittable
This method flattens an ITransmittable object into a String which can be transmitted.
flatten() - Method in class org.jogre.comm.CommConnect
 
flatten() - Method in class org.jogre.common.JogreModel
Returns the state/snapshot of a particular game.
flatten() - Method in class org.jogre.common.Player
Transmittable String representation of this object.
flatten() - Method in class org.jogre.common.UserList
Flatten the current list of logged on users.
flatten() - Method in class org.jogre.common.Table
Flatten the table object.
flatten() - Method in class org.jogre.common.User
Flatten the User object for transmission.
flatten() - Method in class org.jogre.common.TableList
Flatten the current list of logged on users.
flatten() - Method in class org.jogre.common.PlayerList
Flatten the String so that it can be transmitted.
flatten() - Method in class org.jogre.common.playerstate.PlayerStateViewing
Transmit the player state as an Integer.
flatten() - Method in class org.jogre.common.playerstate.PlayerStateReady
Transmit the player state as an Integer.
flatten() - Method in class org.jogre.common.playerstate.PlayerStateSeated
Transmit the player state as an Integer.
flatten() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
Transmit the player state as an Integer.

G

GAME_OVER - Static variable in interface org.jogre.comm.Comm
Header token of a CommGameOver communications object.
GAME_STARTED - Static variable in class org.jogre.common.playerstate.PlayerState
 
GAME_TYPE_REAL_TIME - Static variable in interface org.jogre.client.IJogreModel
Real time game type i.e.
GAME_TYPE_TURN_BASED - Static variable in interface org.jogre.client.IJogreModel
Type based game type i.e.
gameController - Variable in class org.jogre.awt.JogreTableFrame
 
GameLabels - class org.jogre.util.GameLabels.
This class provides an easy and effective point for accessing to each game resource bundle (game_labels_*_*.properties).
gameMainView - Variable in class org.jogre.awt.JogreTableFrame
 
gameModel - Variable in class org.jogre.awt.JogreTableFrame
 
gameOver() - Method in class org.jogre.common.Table
Game over.
gameOver(CommGameOver) - Method in class org.jogre.awt.JogreTableFrame
Create game over.
gameOver(CommGameOver) - Method in class org.jogre.awt.JogreClientFrame
Recieve game over.
gameOver(CommGameOver) - Method in interface org.jogre.client.IClient
 
GameProperties - class org.jogre.util.GameProperties.
This class provides an easy and effective point for accessing to each game resource bundle (game.properties).
gameType - Variable in class org.jogre.common.JogreModel
Game type from IJogreModel e.g.
GENERAL_ERROR - Static variable in class org.jogre.comm.CommError
 
get(String) - Method in class org.jogre.util.AbstractProperties
Return the "value" for a specified "key" inside the resource bundle as a String.
get(String) - Method in class org.jogre.util.JogreLookAndFeel
 
get(String, String) - Method in class org.jogre.util.AbstractProperties
Return the "value" for a specified "key" inside the resource bundle as a String.
getAddress() - Method in class org.jogre.awt.ConnectionDialog.Details
 
getBoardCoords(int, int) - Method in class org.jogre.awt.AbstractBoardComponent
This methods returns a board co-ordinate (in the top-left) from a screen point.
getBoolean(String) - Method in class org.jogre.util.AbstractProperties
Return a boolean value from a key.
getBoolean(String, boolean) - Method in class org.jogre.util.AbstractProperties
Return a boolean value from a key.
getBorderWidth() - Method in class org.jogre.awt.AbstractBoardComponent
Return the width of the border in pixels.
getCellSize() - Method in class org.jogre.awt.AbstractBoardComponent
Return the size of each cell in pixels.
getCellSpacing() - Method in class org.jogre.awt.AbstractBoardComponent
Return the spacing between each cell in pixels.
getClientConnectionThread(Socket, String, IClient) - Method in class org.jogre.awt.JogreClientFrame
This must be overwritten to get a handle on the correct connection.
getClientTitle() - Static method in class org.jogre.util.GameLabels
Return the client title.
getColor(String) - Static method in class org.jogre.util.JogreUtilities
Return a Color object from a String of "r,g,b"
getConnection() - Method in class org.jogre.awt.ConnectionDialog.Details
 
getConnection(String) - Method in class org.jogre.server.ConnectionList
Return a Connection object of specified user.
getConnections() - Method in class org.jogre.server.JogreServer
Return the ConnectionList object of connections to the server.
getController() - Method in class org.jogre.awt.JogreTableFrame
Accessor for the game controller.
getCurrentPlayer() - Method in class org.jogre.common.PlayerList
Current player as an object
getCurrentPlayerName() - Method in class org.jogre.common.PlayerList
Return the currrent player if a turned based game.
getCurrentPlayerSeatNum() - Method in class org.jogre.client.JogreController
Return the player num (between 0 and the number of players).
getDragPoint() - Method in class org.jogre.awt.AbstractBoardComponent
Sets the drag point of a mouse.
getIndex() - Method in class org.jogre.awt.JAvailableSeats.AvailableSeat
 
getInstance() - Static method in class org.jogre.util.GameProperties
Accessor to singleton instance of this class.
getInstance() - Static method in class org.jogre.util.GameLabels
Accessor to singleton instance of this class.
getInstance() - Static method in class org.jogre.util.JogreLabels
Accessor to singleton instance of this class.
getInstance() - Static method in class org.jogre.util.JogreLookAndFeel
Accessor to singleton instance of the ServerResources class
getInt(String) - Method in class org.jogre.util.AbstractProperties
Return the "value" for a specified "key" inside the resource bundle as an int value.
getInt(String, int) - Method in class org.jogre.util.AbstractProperties
Return the "value" for a specified "key" inside the resource bundle as an int value.
getJogreModel() - Method in class org.jogre.server.JogreServer
Set the correct data for the Server.
getJogreTableFrame(ClientConnectionThread, int) - Method in class org.jogre.awt.JogreClientFrame
This must be overwritten to get a handle on the correct table frame.
getLastAccessTime() - Method in class org.jogre.server.Connection
Return the last access time of this ServerConnectionThread.
getMaxNumOfConnectedUsers() - Method in class org.jogre.server.JogreServer
Return the maximum number of users which can be connected to this Server.
getMaxNumOfPlayers() - Static method in class org.jogre.util.GameProperties
Return the minimum number of players in a game.
getMaxNumOfTables() - Static method in class org.jogre.util.GameProperties
Return the maximum number of tables which can be created.
getMaxNumOfUsers() - Static method in class org.jogre.util.GameProperties
Return the maximum number of users which can log on, on any particular server.
getMessage() - Method in class org.jogre.comm.CommChatBroadcast
 
getMessageComponent() - Method in class org.jogre.awt.JogreTableFrame
Accessor for the small message box with each table.
getMinNumOfPlayers() - Static method in class org.jogre.util.GameProperties
Return the minimum number of players in a game.
getModel() - Method in class org.jogre.awt.JogreTableFrame
Accessor for the game controller.
getModel() - Method in class org.jogre.common.Table
Retrieve the model from the server (if its being used).
getModelStr() - Method in class org.jogre.common.Table
Retrieve the model as a String from the server (if its being used).
getOwner() - Method in class org.jogre.common.Table
Get the owner of this table.
getOwner() - Method in class org.jogre.common.PlayerList
Return the owner of this table.
getPlayer(int) - Method in class org.jogre.client.JogreController
Return the player name from a seat num.
getPlayer(int) - Method in class org.jogre.common.PlayerList
Return a player from a seat number.
getPlayer(String) - Method in class org.jogre.common.PlayerList
Return a player.
getPlayerColour(int) - Static method in class org.jogre.util.GameProperties
Return the color of a player (each player has a specific colour which is used throughout the API).
getPlayerLabel(int) - Static method in class org.jogre.util.GameLabels
Return the color of a player (each player has a specific colour which is used throughout the API).
getPlayerList() - Method in class org.jogre.common.Table
 
getPlayerName() - Method in class org.jogre.common.Player
Return the username of this Player object.
getPlayers() - Method in class org.jogre.common.PlayerList
Return a vector of players which arn't sorted.
getPlayersSortedByName() - Method in class org.jogre.common.PlayerList
Return a vector of all the players in this list which are sorted by name (used for visual lists etc).
getPlayersSortedBySeat() - Method in class org.jogre.common.PlayerList
Return a vector of all the players in this list which are sorted by seat number (used for the game logic).
getPlayersSortedBySeat(int) - Method in class org.jogre.common.PlayerList
Return a vector of all the players in this list which are currently actually playing a game.
getPlayerStateCount(int) - Method in class org.jogre.common.PlayerList
Returns the number of players in a particular state.
getPort() - Method in class org.jogre.awt.ConnectionDialog.Details
 
getPressedPoint() - Method in class org.jogre.awt.AbstractBoardComponent
Return the point where a user has pressed on the board.
getRating() - Method in class org.jogre.common.User
Returns the rating of this particular user (currently not implemented).
getReader() - Method in class org.jogre.common.AbstractConnectionThread
Return the reader.
getRoom() - Method in class org.jogre.comm.CommChatTable
 
getScoreIncrement() - Method in class org.jogre.comm.CommGameOver
Return the score.
getScreenCoords(int, int) - Method in class org.jogre.awt.AbstractBoardComponent
This methods returns a screen co-ordinate (in the top-left) from a board point.
getSeatNum() - Method in class org.jogre.client.JogreController
Return the seat number of a user.
getSeatNum() - Method in class org.jogre.common.Player
Return the seat number of this player.
getSeatNum(String) - Method in class org.jogre.client.JogreController
Return the seat number of a specified player.
getSelectedSeat() - Method in class org.jogre.awt.JAvailableSeats
Return the selected index of the player (or -1) if there are no players.
getSelectedTable() - Method in class org.jogre.awt.JTableList
 
getSelectedTableNum() - Method in class org.jogre.awt.JTableList
 
getSelectedUser() - Method in class org.jogre.awt.JUserList
 
getServerConnectionThread() - Method in class org.jogre.server.Connection
 
getServerConnectionThread(String) - Method in class org.jogre.server.ConnectionList
Return a serverconnection thread for a specified user (which is a field of the Connection object).
getServerPort() - Method in class org.jogre.server.JogreServer
Return the server port.
getServerTitle() - Static method in class org.jogre.util.GameLabels
Return the server title.
getSocket() - Method in class org.jogre.common.AbstractConnectionThread
Returns the Socket of this connection.
getState() - Method in class org.jogre.common.Player
Returns the state of this player as a PlayerState object.
getState(int) - Static method in class org.jogre.common.playerstate.PlayerStateFactory
 
getStatus() - Method in class org.jogre.comm.CommSimpleMessage
Return the status.
getStatusStr() - Method in class org.jogre.common.Player
Returns the status of this player as a String.
getTable(int) - Method in class org.jogre.common.TableList
 
getTableFrame(int) - Method in class org.jogre.awt.JogreClientFrame
Overloaded version when you are sure that the table exists (other wise returns null).
getTableFrame(Table) - Method in class org.jogre.awt.JogreClientFrame
Return the correct JogreTableFrame.
getTableList() - Method in class org.jogre.client.ClientConnectionThread
Return the table list object (should be the same as the server table list).
getTableNum() - Method in class org.jogre.client.JogreController
Return the table number.
getTableNum() - Method in class org.jogre.comm.CommTableMessage
Return the table number for this table.
getTableNum() - Method in class org.jogre.common.Table
Get the number of this table.
getTables() - Method in class org.jogre.server.JogreServer
Return the TableList object or table currently being played.
getTablesNumbers() - Method in class org.jogre.common.TableList
Returns a list of all the table numbers.
getTableTitle() - Static method in class org.jogre.util.GameLabels
Return the title of this table.
getText() - Method in class org.jogre.awt.JogreButton
 
getUserList() - Method in class org.jogre.client.ClientConnectionThread
Return the user list (should be the same as the server user list object).
getUserList() - Method in class org.jogre.server.JogreServer
Returns the UserList object of current connected users.
getUsername() - Method in class org.jogre.awt.ConnectionDialog.Details
 
getUsername() - Method in class org.jogre.comm.CommSimpleMessage
Return the username.
getUsername() - Method in class org.jogre.common.AbstractConnectionThread
Returns the usernam.
getUsername() - Method in class org.jogre.common.User
Return the username of this user.
getUsernameFrom() - Method in class org.jogre.comm.CommChatBroadcast
 
getUsernameTo() - Method in class org.jogre.comm.CommInvite
Return the username to.
getUsernameTo() - Method in class org.jogre.comm.CommChatPrivate
 
getUsers() - Method in class org.jogre.common.UserList
Returns a list of all the users.
getWelcomeMessage() - Static method in class org.jogre.util.GameLabels
Return a welcome message.

I

IClient - interface org.jogre.client.IClient.
Client interface between the ClientConnectionThread (which listens on network calls) and a JogreClientFrame which implements this interface.
IJogreDefaults - interface org.jogre.common.IJogreDefaults.
Interface file to default values such as the number of players etc.
IJogreLog - interface org.jogre.util.IJogreLog.
Interface which compliments the JogreLog class.
IJogreModel - interface org.jogre.client.IJogreModel.
Interface containing some constants which are used with the JogreModel.
in - Variable in class org.jogre.common.AbstractConnectionThread
Buffered input.
INFO - Static variable in interface org.jogre.util.IJogreLog
Level 2 priority (medium).
info(String, String) - Method in class org.jogre.util.JogreLogger
Log an information message.
intValue() - Method in class org.jogre.common.playerstate.PlayerState
Integer label of this state (see constants of this class).
intValue() - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
intValue() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
intValue() - Method in class org.jogre.common.playerstate.PlayerStateSeated
 
intValue() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
INVITE - Static variable in interface org.jogre.comm.Comm
Header token of a CommInvite communications object.
isGamePlaying() - Method in class org.jogre.client.JogreController
Return true/false if the game is started or not.
isGamePlaying() - Method in class org.jogre.common.Table
Return true if a game is in progress.
isModelStateAttached() - Method in class org.jogre.common.Table
Return if the model state is attached or not.
isPlayerToSet() - Method in class org.jogre.comm.CommOfferDraw
Return true if the playerTo String has been set.
isPublic - Variable in class org.jogre.comm.CommTableMessage
 
isPublic() - Method in class org.jogre.comm.CommTableMessage
Return true if this table is public.
isPublic() - Method in class org.jogre.common.Table
Returns true if this is a public table.
isReversed - Variable in class org.jogre.awt.AbstractBoardComponent
If this variable is true the board will be flipped.
isReversed() - Method in class org.jogre.awt.AbstractBoardComponent
Returns true if a board is reversed.
isSeatFree(int) - Method in class org.jogre.common.PlayerList
Return true if a seat at a table is free.
isThisPlayersTurn() - Method in class org.jogre.client.JogreController
Return new if it is this players turn.
ITransmittable - interface org.jogre.comm.ITransmittable.
Transmittable interface for all communication in the system.

J

JAvailableSeats - class org.jogre.awt.JAvailableSeats.
This class extends the Swing JComboBox and also stores the current player, and Strings that make up the string.
JAvailableSeats.AvailableSeat - class org.jogre.awt.JAvailableSeats.AvailableSeat.
Declare a little inner class to show the available players.
JAvailableSeats.AvailableSeat(JAvailableSeats, int) - Constructor for class org.jogre.awt.JAvailableSeats.AvailableSeat
 
JAvailableSeats(ClientConnectionThread, int) - Constructor for class org.jogre.awt.JAvailableSeats
Default constructor which takes the username and the player list.
JOGRE_MODEL - Static variable in class org.jogre.common.JogreModel
Header token used in ITransmittable.flatten() method.
JogreButton - class org.jogre.awt.JogreButton.
A custom button ...
JogreButton(String, int, int) - Constructor for class org.jogre.awt.JogreButton
 
JogreClientFrame - class org.jogre.awt.JogreClientFrame.
This abstract class declares the main game frame where a user can see users of the left, tables on the top right and a broadcasting style message chat box on the bottom right.
JogreClientFrame() - Constructor for class org.jogre.awt.JogreClientFrame
Constructor for a client frame.
JogreComponent - class org.jogre.awt.JogreComponent.
This class creates the view in the JOGRE MVC (model/view/controller) architecture.
JogreComponent - Variable in class org.jogre.client.JogreController
Link to the JogreComponent this is controlling .
JogreComponent() - Constructor for class org.jogre.awt.JogreComponent
 
JogreController - class org.jogre.client.JogreController.
Adapter game controller class which creates empty methods for the MouseListener, MouseMotionListener and KeyListener event interfaces.
JogreController(JogreModel, JogreComponent) - Constructor for class org.jogre.client.JogreController
Default constructor class which doesn't set up the network connection.
JogreLabels - class org.jogre.util.JogreLabels.
This class provides an easy and effective point for accessing the main JOGRE resource bundle (system_*_*.properties).
JogreLogger - class org.jogre.util.JogreLogger.
Custom logging was created for JOGRE so that is as flexible and as lightweight as possible (e.g.
JogreLogger(Class) - Constructor for class org.jogre.util.JogreLogger
Constructor which takes the class of the logged Class.
JogreLookAndFeel - class org.jogre.util.JogreLookAndFeel.
This class is used to create a Jogre look-and-feel.
JogreModel - class org.jogre.common.JogreModel.
Abstract class which holds the state/model of a particular game when extended.
JogreModel() - Constructor for class org.jogre.common.JogreModel
Blank constructor which can be called by a sub class.
JogreModel(int) - Constructor for class org.jogre.common.JogreModel
Create a new jogre model which sets the game type, client connection thread and the table number.
JogreServer - class org.jogre.server.JogreServer.
This abstract class is extended to create a server which is then executed using its run() method.
JogreServer() - Constructor for class org.jogre.server.JogreServer
Default constructor which sets the title of the server from the "game.properties" file.
JogreServer(String[]) - Constructor for class org.jogre.server.JogreServer
This constructor does the same as the default server but also reads in additional arguments from the command prompt.
JogreTableFrame - class org.jogre.awt.JogreTableFrame.
The important JogreTableFrame which is where each game is played.
JogreTableFrame(ClientConnectionThread, int) - Constructor for class org.jogre.awt.JogreTableFrame
Constructor to a standard JogreGameFrame.
JogreTokenizer - class org.jogre.util.JogreTokenizer.
Small custom tokenizer with extra functionality which isn't in StringTokenizer such as reading a variable amount of tokens back into a String and reading the remaining tokens into a String.
JogreTokenizer(String) - Constructor for class org.jogre.util.JogreTokenizer
Constructor
JogreUtilities - class org.jogre.util.JogreUtilities.
Bunch of utilities which are used in several classes through the API.
JogreUtilities() - Constructor for class org.jogre.util.JogreUtilities
 
JOIN - Static variable in class org.jogre.comm.CommTableAction
Join an existing game.
JTableList - class org.jogre.awt.JTableList.
Visual list of all the tables currently being played.
JTableList() - Constructor for class org.jogre.awt.JTableList
Constructor for a client connection thread.
JTablePlayers - class org.jogre.awt.JTablePlayers.
List which shows the players at a particular table.
JTablePlayers(ClientConnectionThread, int) - Constructor for class org.jogre.awt.JTablePlayers
Constructor which takes connection to the server and table number.
JUserList - class org.jogre.awt.JUserList.
Visual list of all the users logged on.
JUserList() - Constructor for class org.jogre.awt.JUserList
Empty Constructor.

K

keyPressed(KeyEvent) - Method in class org.jogre.client.JogreController
Invoked when a key has been pressed.
keyReleased(KeyEvent) - Method in class org.jogre.client.JogreController
Invoked when a key has been released.
keyTyped(KeyEvent) - Method in class org.jogre.client.JogreController
Invoked when a key has been typed.

L

leaveTable() - Method in class org.jogre.awt.JogreTableFrame
Player leaves the table.
length() - Method in class org.jogre.common.JogreModel
Return the number of tokens that this class creates when flattened.
length() - Method in class org.jogre.common.Table
Return the length (number of tokens in the flatten() methodof this particular
length() - Method in class org.jogre.common.PlayerList
Number of tokens.
log(String) - Method in class org.jogre.util.JogreLogger
Simple log which will go in at INFO level.
loop - Variable in class org.jogre.common.AbstractConnectionThread
When the boolean loop becomes false the Thread finishes.

M

main(String[]) - Static method in class org.jogre.test.Test
 
MAX_NUM_OF_PLAYERS - Static variable in interface org.jogre.common.IJogreDefaults
 
MAX_NUM_OF_TABLES - Static variable in interface org.jogre.common.IJogreDefaults
 
MAX_NUM_OF_USERS - Static variable in interface org.jogre.common.IJogreDefaults
 
maxNumOfConnectedUsers - Variable in class org.jogre.server.JogreServer
Maximum number of users which can connect to this server at any one time.
maxNumTables - Variable in class org.jogre.server.JogreServer
Maximum number of tables this server can host at any one time.
message - Variable in class org.jogre.comm.CommChatBroadcast
 
MessageComponent - class org.jogre.awt.MessageComponent.
Little message component which can be used in several ways.
MessageComponent(int) - Constructor for class org.jogre.awt.MessageComponent
Constructor for a message component.
MIN_NUM_OF_PLAYERS - Static variable in interface org.jogre.common.IJogreDefaults
 
MIN_NUM_OF_TOKENS - Static variable in class org.jogre.comm.CommChatPrivate
 
MIN_NUM_OF_TOKENS - Static variable in class org.jogre.comm.CommChatTable
 
MIN_TOKENS - Static variable in class org.jogre.comm.CommChatBroadcast
 
model - Variable in class org.jogre.client.JogreController
Link to the game model.
mouseBorderColour - Variable in class org.jogre.awt.AbstractBoardComponent
Colour of the mouse border.
mouseBorderWidth - Variable in class org.jogre.awt.AbstractBoardComponent
Width of the mouse border.
mouseClicked(MouseEvent) - Method in class org.jogre.awt.JogreButton
 
mouseClicked(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when the mouse has been clicked on a JogreComponent.
mouseDragged(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when a mouse button is pressed on a JogreComponent and then dragged.
mouseEntered(MouseEvent) - Method in class org.jogre.awt.JogreButton
 
mouseEntered(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when the mouse enters a JogreJogreComponent.
mouseExited(MouseEvent) - Method in class org.jogre.awt.JogreButton
 
mouseExited(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when the mouse exits a JogreComponent.
mouseMoved(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when the mouse button has been moved on a JogreComponent (with no buttons no down).
mousePressed(MouseEvent) - Method in class org.jogre.awt.JogreButton
 
mousePressed(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when a mouse button has been pressed on a JogreComponent.
mouseReleased(MouseEvent) - Method in class org.jogre.awt.JogreButton
 
mouseReleased(MouseEvent) - Method in class org.jogre.client.JogreController
Invoked when a mouse button has been released on a JogreComponent.

N

NEW - Static variable in class org.jogre.comm.CommTableAction
Create a new table.
NEXT_PLAYER - Static variable in class org.jogre.comm.CommTableAction
Next player
nextPlayer() - Method in class org.jogre.client.JogreController
Method which tells the server that it is next players turn.
nextPlayer() - Method in class org.jogre.common.Table
Sets the next player username.
nextPlayer() - Method in class org.jogre.common.PlayerList
Makes the current player equal to the next player.
nextTokens(int) - Method in class org.jogre.util.JogreTokenizer
Return a string from a specified number of tokens.
NO_TABLE - Static variable in class org.jogre.comm.CommTableMessage
No table being used in the message.
NONE - Static variable in interface org.jogre.util.IJogreLog
No logging will be created.
NOT_DEFINED - Static variable in class org.jogre.comm.CommOfferDraw
Username to is not defined.
NOT_SEATED - Static variable in class org.jogre.common.Player
Constant to show that a player hasn't been seated.
NUM_OF_HEADER_TOKENS - Static variable in class org.jogre.common.Table
Number of tokens which a Player flattens to.
NUM_OF_HEADER_TOKENS - Static variable in class org.jogre.common.PlayerList
Number of header tokens.
NUM_OF_TOKENS - Static variable in class org.jogre.common.Player
Number of tokens which a Player flattens to.
NUM_OF_TOKENS - Static variable in class org.jogre.common.PlayerList
Number of tokens which a PlayerList flattens to.
numOfCols - Variable in class org.jogre.awt.AbstractBoardComponent
Number of columns in the board.
numOfRows - Variable in class org.jogre.awt.AbstractBoardComponent
Number of rows in the board.

O

OFF_SCREEN_POINT - Static variable in class org.jogre.awt.AbstractBoardComponent
Constant to show a cell point is off the board (not selected).
OFFER_DRAW - Static variable in interface org.jogre.comm.Comm
Header token of a CommOfferDraw communications object.
offerDrawButton - Variable in class org.jogre.awt.JogreTableFrame
 
org.jogre.awt - package org.jogre.awt
This package contains visual classes which aid the creation of games.
org.jogre.client - package org.jogre.client
This package contains non-visual classes which only the client makes use of including the network connection, the game model and controller.
org.jogre.comm - package org.jogre.comm
This package contains a number of communication objects (communication classes start with Comm) amd two Interface's which describe the protocol.
org.jogre.common - package org.jogre.common
This package contains classes which are common to both a client or a server.
org.jogre.common.playerstate - package org.jogre.common.playerstate
This package implements the "state" design pattern for each player at a particular table to easily keep state such as sitting, standing, ready to player etc.
org.jogre.server - package org.jogre.server
This package contains server specific classes.
org.jogre.test - package org.jogre.test
This package contains test cases.
org.jogre.util - package org.jogre.util
This package contain various utility classes.
out - Variable in class org.jogre.common.AbstractConnectionThread
PrintStream for the output.

P

paintComponent(Graphics) - Method in class org.jogre.awt.AbstractBoardComponent
Draws the board.
paintComponent(Graphics) - Method in class org.jogre.awt.JogreButton
 
parse(String, String) - Method in class org.jogre.client.ClientConnectionThread
Parse method which reads the first token of the message and calls the appropriate method.
parse(String, String) - Method in class org.jogre.common.AbstractConnectionThread
This abstract method must be overwritten by a child which extends this class.
parse(String, String) - Method in class org.jogre.server.ServerConnectionThread
Implementation of the parse method.
Player - class org.jogre.common.Player.
This class contains information about a player, which is a user who has joined a table and wishes to play a game.
PLAYER_LIST - Static variable in class org.jogre.common.PlayerList
Header token String.
Player(String) - Constructor for class org.jogre.common.Player
Constructor which creates a Player object from the flatten () method of another Player object.
Player(String, PlayerState) - Constructor for class org.jogre.common.Player
Constructor requires both a player and a status as parameters and sets the seat number to NOT_SEATED.
PlayerList - class org.jogre.common.PlayerList.
This class contains a list of Player object.s
PlayerList() - Constructor for class org.jogre.common.PlayerList
Default constructor
PlayerList(String) - Constructor for class org.jogre.common.PlayerList
 
playerName - Variable in class org.jogre.common.Player
Username of the user.
playerState - Variable in class org.jogre.common.Player
State of the player.
PlayerState - class org.jogre.common.playerstate.PlayerState.
Class which describes the state of the various player when they join a table.
PlayerState() - Constructor for class org.jogre.common.playerstate.PlayerState
 
PlayerStateFactory - class org.jogre.common.playerstate.PlayerStateFactory.
Factory which creates a state from an integer defined in integer defined in PlayerState.
PlayerStateFactory() - Constructor for class org.jogre.common.playerstate.PlayerStateFactory
 
PlayerStateGameStarted - class org.jogre.common.playerstate.PlayerStateGameStarted.
State object for a game started player state.
PlayerStateGameStarted() - Constructor for class org.jogre.common.playerstate.PlayerStateGameStarted
 
PlayerStateReady - class org.jogre.common.playerstate.PlayerStateReady.
State object for a player ready state.
PlayerStateReady() - Constructor for class org.jogre.common.playerstate.PlayerStateReady
 
PlayerStateSeated - class org.jogre.common.playerstate.PlayerStateSeated.
State object for a seated player state.
PlayerStateSeated() - Constructor for class org.jogre.common.playerstate.PlayerStateSeated
 
PlayerStateViewing - class org.jogre.common.playerstate.PlayerStateViewing.
State object for a viewing player state.
PlayerStateViewing() - Constructor for class org.jogre.common.playerstate.PlayerStateViewing
 
pressedPoint - Variable in class org.jogre.awt.AbstractBoardComponent
Stores the value of a mouse down.
PRIORITY_STRS - Static variable in interface org.jogre.util.IJogreLog
String values of priorities
PrivateMessageDialog - class org.jogre.awt.PrivateMessageDialog.
This is used to send a private message between two users.
PrivateMessageDialog(JFrame, String, String, Socket) - Constructor for class org.jogre.awt.PrivateMessageDialog
Default constructor for a private message dialog.

R

rating - Variable in class org.jogre.common.User
Rating of User.
READY_TO_START - Static variable in class org.jogre.comm.CommTableAction
Ready to start a game.
READY_TO_START - Static variable in class org.jogre.common.playerstate.PlayerState
 
receiveConnection(CommConnect) - Method in class org.jogre.awt.JogreClientFrame
Recieve connection from the server.
receiveConnection(CommConnect) - Method in interface org.jogre.client.IClient
 
receiveInvite(CommInvite) - Method in class org.jogre.awt.JogreClientFrame
Recieve invite communications object.
receiveInvite(CommInvite) - Method in interface org.jogre.client.IClient
 
receiveMessage(String, String) - Method in class org.jogre.awt.MessageComponent
Receives a message from the server.
receiveMessage(String, String) - Method in class org.jogre.awt.JogreClientFrame
Method which receives a message from the server (or user)
receiveMessage(String, String) - Method in interface org.jogre.client.IClient
 
receiveOfferDraw(CommOfferDraw) - Method in class org.jogre.awt.JogreTableFrame
 
receiveOfferDraw(CommOfferDraw) - Method in class org.jogre.awt.JogreClientFrame
Receive an offer to draw the game from a user.
receiveOfferDraw(CommOfferDraw) - Method in interface org.jogre.client.IClient
 
receivePrivateMessage(String, String) - Method in class org.jogre.awt.JogreClientFrame
Recieve a private message.
receivePrivateMessage(String, String) - Method in interface org.jogre.client.IClient
 
receiveTableMessage(String) - Method in class org.jogre.client.ClientConnectionThread
Receive table message.
receiveTableMessage(String, int, String) - Method in class org.jogre.awt.JogreClientFrame
Receive a message for a speicificied table.
receiveTableMessage(String, int, String) - Method in interface org.jogre.client.IClient
 
recieveConnect(String) - Method in class org.jogre.client.ClientConnectionThread
Inform client about the connection.
recieveGameOver(String) - Method in class org.jogre.client.ClientConnectionThread
 
recieveInvite(String) - Method in class org.jogre.client.ClientConnectionThread
Receive invite from the user.
recieveMessage(String, String) - Method in class org.jogre.awt.PrivateMessageDialog
Recieve private message.
recieveMessageBroadcast(String) - Method in class org.jogre.client.ClientConnectionThread
Receive message broad from the server.
recieveMessageBroadCastRoom(String) - Method in class org.jogre.client.ClientConnectionThread
Recieve a message broadcast to room.
recieveMessagePrivate(String) - Method in class org.jogre.client.ClientConnectionThread
Receive a private message.
recieveTable(String) - Method in class org.jogre.client.ClientConnectionThread
Recieve a single table from the server.
recieveTableList(String) - Method in class org.jogre.client.ClientConnectionThread
Receive table list from the server.
recieveUserList(String) - Method in class org.jogre.client.ClientConnectionThread
 
refresh() - Method in class org.jogre.awt.JTablePlayers
Update method which updates the visual user list.
refresh() - Method in class org.jogre.awt.JAvailableSeats
Refresh the playerList object.
refresh() - Method in class org.jogre.awt.JUserList
Update method which updates the visual userlist.
refresh() - Method in class org.jogre.awt.JTableList
Update method which updates the visual userlist.
refreshObservers() - Method in class org.jogre.common.JogreModel
Refresh observers - calls the setChanged() and notifyObservers () methods.
refreshTableFrame(Table) - Method in class org.jogre.awt.JogreClientFrame
Refresh the table.
remainingTokens() - Method in class org.jogre.util.JogreTokenizer
Read the remaining tokens back into a String again.
removePlayer(int, String) - Method in class org.jogre.common.TableList
Remove a player from a table.
removePlayer(String) - Method in class org.jogre.common.Table
Remove a player from the list.
removePlayer(String) - Method in class org.jogre.common.PlayerList
Remove a player.
removeTable(int) - Method in class org.jogre.common.TableList
Remove table from the list.
removeUser(String) - Method in class org.jogre.common.UserList
Remove user from the list.
removeUserFromTables(String) - Method in class org.jogre.common.TableList
 
REQUEST - Static variable in class org.jogre.comm.CommInvite
User requests invite to a user.
resetCurrentPlayer() - Method in class org.jogre.common.PlayerList
Sets the current player to the person with the smallest seat number.
resetPoints() - Method in class org.jogre.awt.AbstractBoardComponent
Reset the dragPoint and pressedPoint variables.
RESIGN - Static variable in class org.jogre.comm.CommGameOver
Player losses a game.
resignButton - Variable in class org.jogre.awt.JogreTableFrame
 
run() - Method in class org.jogre.common.AbstractConnectionThread
Run method - runs until an exception has occured or the loop variable becomes false.
run() - Method in class org.jogre.server.JogreServer
Run method which runs a new server and listens for clients on the specified port.

S

SEATED - Static variable in class org.jogre.common.playerstate.PlayerState
 
seatNum - Variable in class org.jogre.common.Player
Seat number of the user e.g.
seatsStr - Variable in class org.jogre.awt.JAvailableSeats
Visual text which makes up this combo box.
send(ITransmittable) - Method in class org.jogre.common.AbstractConnectionThread
Send a ITransmittable object to the output stream (could be server or client).
send(String) - Method in class org.jogre.common.AbstractConnectionThread
Send a message to the output stream (could be server or client).
server - Variable in class org.jogre.server.ServerConnectionThread
link to the JogreServer
SERVER_RECEIVED_CONNECT - Static variable in class org.jogre.comm.CommConnect
 
serverConn - Variable in class org.jogre.server.JogreServer
Server thread which listens to requests from a client.
ServerConnectionThread - class org.jogre.server.ServerConnectionThread.
Every time a client connections to a JogreServer this class (which extends Thread) is run.
ServerConnectionThread(Socket, JogreServer) - Constructor for class org.jogre.server.ServerConnectionThread
Constructor which takes a socket connection and a link to the server.
serverPort - Variable in class org.jogre.server.JogreServer
Server port we are listening on.
setColours(Color, Color, Color, Color) - Method in class org.jogre.awt.AbstractBoardComponent
Set up colours for this board.
setConnection(ClientConnectionThread) - Method in class org.jogre.awt.JUserList
 
setConnection(ClientConnectionThread) - Method in class org.jogre.awt.JTableList
Set the connection.
setConnection(ClientConnectionThread, int) - Method in class org.jogre.client.JogreController
Set up a network connection for this controller.
setConnection(String, Socket) - Method in class org.jogre.awt.MessageComponent
Set the connection of this message component using a Socket and also the username of the person who is sending messages from this component.
setController(JogreController) - Method in class org.jogre.awt.JogreComponent
Set the controller by adding a JogreController which implements a MouseListener, a MouseMotionListener and a KeyListener.
setDragPoint(Point) - Method in class org.jogre.awt.AbstractBoardComponent
Sets the drag point.
setEnabled(boolean) - Method in class org.jogre.awt.MessageComponent
Sets the enabled status of component and message input box.
setGamePanel(JPanel) - Method in class org.jogre.awt.JogreTableFrame
Set the empty panel in the screen equal to the game panel.
setLookAndFeel(String) - Method in class org.jogre.util.JogreLookAndFeel
Set the look and feel.
setModel(JogreModel) - Method in class org.jogre.common.Table
Set the game data.
setModelStateAttached(boolean) - Method in class org.jogre.common.Table
Set true if the model state is to be attached or not.
setPressedPoint(Point) - Method in class org.jogre.awt.AbstractBoardComponent
Sets pressed point in the board.
setReversed(boolean) - Method in class org.jogre.awt.AbstractBoardComponent
Sets if a board is reversed or not.
setRoom(int) - Method in class org.jogre.awt.MessageComponent
Sets a room so that the message will go to a specified room.
setSeatNum(int) - Method in class org.jogre.common.Player
Set the seat number of this player (set when a player sits down).
setServerPort(int) - Method in class org.jogre.server.JogreServer
Set the server port.
setState(String) - Method in class org.jogre.common.JogreModel
Set the state of the model (set values of the model equal to the values of this model by copying its values.
setTableList(TableList) - Method in class org.jogre.client.ClientConnectionThread
Update the table list.
setTableUpdateRefreshesModel(boolean) - Method in class org.jogre.awt.JogreTableFrame
This method sets a boolean, which if set to true will result in the JogreModel refreshing its componets which are observing it everytime the table object in ClientConnectionThread updates itself.
setText(String) - Method in class org.jogre.awt.JogreButton
 
setupMVC(JogreModel, JogreComponent, JogreController) - Method in class org.jogre.awt.JogreTableFrame
Sets up the MVC for this table.
setUserList(UserList) - Method in class org.jogre.client.ClientConnectionThread
Update the user list.
setUsernameTo(String) - Method in class org.jogre.awt.MessageComponent
Set the username to of this component (not required if the component is in broadcast mode).
showPriority - Variable in class org.jogre.util.JogreLogger
If this is true then show the priority of the log as a String.
sit() - Method in class org.jogre.common.Player
Player sits down at a table.
sit() - Method in class org.jogre.common.playerstate.PlayerState
Abstract method which defines what a player can do when they sit.
sit() - Method in class org.jogre.common.playerstate.PlayerStateViewing
If a player sits the state changes to seated.
sit() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
sit() - Method in class org.jogre.common.playerstate.PlayerStateSeated
 
sit() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
sitButton - Variable in class org.jogre.awt.JogreTableFrame
 
size() - Method in class org.jogre.common.UserList
Return the number of users.
size() - Method in class org.jogre.common.TableList
 
size() - Method in class org.jogre.common.PlayerList
Return the number of users playing at a particular table.
socket - Variable in class org.jogre.common.AbstractConnectionThread
Socket between the server and the user.
spacingColour - Variable in class org.jogre.awt.AbstractBoardComponent
Colour of spacing colour.
stacktrace(Exception) - Method in class org.jogre.util.JogreLogger
Logs a stacktrace.
STAND_UP - Static variable in class org.jogre.comm.CommTableAction
Stand up from a game.
stand() - Method in class org.jogre.common.Player
Player stands up from a table.
stand() - Method in class org.jogre.common.playerstate.PlayerState
Abstract method which defines what a player can do when they stand up.
stand() - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
stand() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
stand() - Method in class org.jogre.common.playerstate.PlayerStateSeated
If a player stands his state goes back to viewing.
stand() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
standButton - Variable in class org.jogre.awt.JogreTableFrame
 
START - Static variable in class org.jogre.comm.CommTableAction
Actually start the game.
start() - Method in class org.jogre.common.JogreModel
Reset method which is called every time a new game is created.
start() - Method in class org.jogre.common.Player
Player decides to start.
start() - Method in class org.jogre.common.playerstate.PlayerState
Abstract method which defines what a player can do when they start.
start() - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
start() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
start() - Method in class org.jogre.common.playerstate.PlayerStateSeated
Player state goes to ready to start.
start() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
startButton - Variable in class org.jogre.awt.JogreTableFrame
 
startGame() - Method in class org.jogre.awt.JogreTableFrame
Start the game.
startGame(int) - Method in class org.jogre.awt.JogreClientFrame
Start the game.
startGame(int) - Method in interface org.jogre.client.IClient
 
status - Variable in class org.jogre.comm.CommSimpleMessage
Integer status of this comm message.

T

Table - class org.jogre.common.Table.
Server side data object which holds information on various tables and their current users etc.
TABLE - Static variable in class org.jogre.common.Table
Header token String.
TABLE_ACTION - Static variable in interface org.jogre.comm.Comm
Header token of a CommTableAction communications object.
TABLE_LIST - Static variable in class org.jogre.common.TableList
Header token of String created from its ITransmittable.flatten() method.
Table(int, String, boolean) - Constructor for class org.jogre.common.Table
Create a table and 1 user (owner)
Table(String) - Constructor for class org.jogre.common.Table
Create Table object from a String.
tablelist - Variable in class org.jogre.common.TableList
HashMap contain a number of Table objects.
tableList - Variable in class org.jogre.client.ClientConnectionThread
TableList object which should mirror that on the JogreServer.
tableList - Variable in class org.jogre.server.JogreServer
List of tables current being played on this server.
tableList - Variable in class org.jogre.server.ServerConnectionThread
Convience link to the tableList field in the JogreServer object.
TableList - class org.jogre.common.TableList.
Contains a HashMap of all the Table objects currently in play.
TableList() - Constructor for class org.jogre.common.TableList
Default constructor which sets up a brand new TableList object with no Tables in its HashMap.
TableList(String) - Constructor for class org.jogre.common.TableList
Constructor which recreates a Table object using a String from the ITransmittable.flatten() method from another TableList object.
tableListUpdated() - Method in class org.jogre.awt.JogreClientFrame
Update the table list.
tableListUpdated() - Method in interface org.jogre.client.IClient
 
tableNum - Variable in class org.jogre.awt.JAvailableSeats
Table number.
tableNum - Variable in class org.jogre.awt.JogreTableFrame
 
tableNum - Variable in class org.jogre.client.JogreController
Table number which this controller is controlling.
tableNum - Variable in class org.jogre.comm.CommTableMessage
 
tableNum - Variable in class org.jogre.comm.CommChatTable
 
tableUpdated(int) - Method in class org.jogre.awt.JogreClientFrame
Update a single table.
tableUpdated(int) - Method in interface org.jogre.client.IClient
 
tableUpdateRefreshesModel - Variable in class org.jogre.awt.JogreTableFrame
Boolean to indicate that a table update will refresh the model in that particular table.
Test - class org.jogre.test.Test.
 
Test() - Constructor for class org.jogre.test.Test
 
title - Variable in class org.jogre.server.JogreServer
Title of a specified server.
toString() - Method in class org.jogre.awt.JAvailableSeats.AvailableSeat
 
toString() - Method in class org.jogre.common.Player
String representation of this player.
toString() - Method in class org.jogre.common.Table
Return the String version of this table.
toString() - Method in class org.jogre.common.PlayerList
 
toString() - Method in class org.jogre.common.playerstate.PlayerStateViewing
 
toString() - Method in class org.jogre.common.playerstate.PlayerStateReady
 
toString() - Method in class org.jogre.common.playerstate.PlayerStateSeated
 
toString() - Method in class org.jogre.common.playerstate.PlayerStateGameStarted
 
TransmissionException - exception org.jogre.common.TransmissionException.
 
TransmissionException() - Constructor for class org.jogre.common.TransmissionException
 
TransmissionException(String) - Constructor for class org.jogre.common.TransmissionException
 
transmit(String, ITransmittable) - Method in class org.jogre.server.ServerConnectionThread
Overloaded version which takes a ITransmittable object.
transmit(String, String) - Method in class org.jogre.server.ServerConnectionThread
This little helper method sends an object to the two players in a game.
transmitToTable(int, ITransmittable) - Method in class org.jogre.server.ServerConnectionThread
Transmit a message to the specified table.
transmitToTable(String, int, ITransmittable) - Method in class org.jogre.server.ServerConnectionThread
Transmit a messgae to a table but omit a user (this user will generally be the player who has created the message in the first place).

U

update(Observable, Object) - Method in class org.jogre.awt.JogreComponent
 
updateLastAccessTime() - Method in class org.jogre.server.Connection
This method sets the lastAccessTime to the current time.
updateTable() - Method in class org.jogre.awt.JogreTableFrame
The table object has been updated.
updateTable(int, Table) - Method in class org.jogre.common.TableList
 
User - class org.jogre.common.User.
Transmittable user data object.
USER - Static variable in interface org.jogre.comm.Comm
Header token of a User object.
USER_LIST - Static variable in class org.jogre.common.UserList
 
User(String) - Constructor for class org.jogre.common.User
Constructor which creates a User object from the flatten () method of another User object.
User(String, int) - Constructor for class org.jogre.common.User
Constructor which takes a username and a rating.
userlist - Variable in class org.jogre.common.UserList
List of users.
userList - Variable in class org.jogre.client.ClientConnectionThread
UserList object which should mirror that on the JogreServer.
userList - Variable in class org.jogre.server.JogreServer
List of users which are currently connected to the server.
userList - Variable in class org.jogre.server.ServerConnectionThread
Convience link to the userList field in the JogreServer object.
UserList - class org.jogre.common.UserList.
Transmittable user list data object.
UserList() - Constructor for class org.jogre.common.UserList
Default constructor of a UserList object.
UserList(String) - Constructor for class org.jogre.common.UserList
Constructor which reads a user list from a String.
userListUpdated() - Method in class org.jogre.awt.JogreClientFrame
Method to update the user list.
userListUpdated() - Method in interface org.jogre.client.IClient
 
username - Variable in class org.jogre.comm.CommSimpleMessage
Username of person who sent this message.
username - Variable in class org.jogre.common.AbstractConnectionThread
Username of the client.
username - Variable in class org.jogre.common.User
Username of User.
usernameFrom - Variable in class org.jogre.comm.CommChatBroadcast
 
usernameTo - Variable in class org.jogre.comm.CommInvite
Additional field to show which user is being invited.
usernameTo - Variable in class org.jogre.comm.CommChatPrivate
 

V

VIEWING - Static variable in class org.jogre.common.playerstate.PlayerState
 

W

WIN - Static variable in class org.jogre.comm.CommGameOver
Player wins a game.

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