Breakout Problem Set Javadocs
A B C D E F G H I K L M N O P Q R S T U V W

A

Animate - interface cs101.lang.Animate.
 
AnimateObject - class cs101.util.AnimateObject.
The generic self-animating (active) object.
AnimateObject() - Constructor for class cs101.util.AnimateObject
The most basic constructor creates the AnimateObject and starts its animacy going.
AnimateObject(boolean) - Constructor for class cs101.util.AnimateObject
This constructor allows you to create an AnimateObject without starting its animacy going.
AnimatorThread - class cs101.lang.AnimatorThread.
This class replaces Thread as a way to animate autonomous objects.
AnimatorThread(Animate) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated.
AnimatorThread(Animate, boolean) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and a boolean value (expected to be one of AnimatorThread.START_IMMEDIATELY or AnimatorThread.DONT_START_YET) that determines whether this AnimatorThread should start running as the last step of its construction.
AnimatorThread(Animate, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and a long representing the desired variance in sleep times between calls to the Animate's act() method.
AnimatorThread(Animate, boolean, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated, a boolean reflecting whether execution should begin immediately, and a long representing the desired variance in sleep times between calls to the Animate's act() method.
AnimatorThread(Animate, long, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and two longs representing the desired variance in sleep times and the desired minimum sleep interval between calls to the Animate's act() method.
AnimatorThread(Animate, boolean, long, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated, a boolean reflecting whether execution should begin immediately, and two longs representing the desired variance in sleep times and the desired minimum sleep interval between calls to the Animate's act() method.
act() - Method in interface cs101.lang.Animate
 
act() - Method in class cs101.util.AnimateObject
Override this method to give the AnimateObject behavior.
actionPerformed(ActionEvent) - Method in class breakout.BreakoutUI
Manages button presses.
add(BreakoutComponent, Point) - Method in class breakout.Board
Explicit adder: Adds a BreakoutComponent to the Board at the specified Point.
add(BreakoutComponent) - Method in class breakout.Board
Autolayout adder: Adds a BreakoutComponent to the board in the next available spot in the grid.
addDefaultBallPaddle() - Method in class breakout.Board
Adds a BasicPaddle and BasicBall to the board in default locations.
addDefaultWalls() - Method in class breakout.Board
Adds four BasicWalls to the board, including the floor.
addInputConnection(InputConnection) - Method in interface cs101.io.connection.InputAcceptor
 
addNotify() - Method in class cs101.awt.DisplayField
Calls super.addNotify.
addOutputConnection(OutputConnection) - Method in interface cs101.io.connection.OutputAcceptor
 
allUpperCaseP(String) - Static method in class cs101.util.StringUtils
Determines whether all of the characters in its argument word are upper case.
angleToVert(Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the angle between a given line segment and the vertical axis in direction that roataes the positive x axis towards positive y axis
answers - Variable in class cs101.awt.ClientDialog
 
answers - Variable in class cs101.awt.ServerDialog
 
ask() - Method in class cs101.awt.ClientDialog
Actually display the query dialog and get the answers from the user.
ask() - Method in class cs101.awt.QueryDialog
Display the dialog box, and block until the OK button is checked.
ask() - Method in class cs101.awt.ServerDialog
Actually display the query dialog and get the answers from the user.

B

BACK - Static variable in interface cs101.util.queue.Queue
 
BORDER - Static variable in class breakout.Board
The border autolayout keeps between the edge of the panel and where bricks start to appear.
BS - class cs101.util.semaphore.BS.
This class implements simple binary semaphores in java.
BS(boolean) - Constructor for class cs101.util.semaphore.BS
If the constructor is passed a boolean value, the semaphore will be initialized with this value (true => in use, false => free).
BS() - Constructor for class cs101.util.semaphore.BS
If no argument is supplied, the semaphore is created in its free state.
BabySitter - class cs101.net.BabySitter.
This object handles the io between the server and one client.
BabySitter(Socket, Server) - Constructor for class cs101.net.BabySitter
Creates a BabySitter to handle communication with a client.
BadBoardFormatException - exception breakout.BadBoardFormatException.
BadBoardFormatException is thrown when a board file doesn't meet spec.
BadBoardFormatException() - Constructor for class breakout.BadBoardFormatException
 
BadBoardFormatException(String) - Constructor for class breakout.BadBoardFormatException
 
Ball - interface breakout.Ball.
Interface that tells Board that a component is a ball.
BasicBall - class breakout.BasicBall.
Basic implementation of a Ball, with velocity arbitrarily picked at magnitude 3 and direction pi/3.
BasicBall() - Constructor for class breakout.BasicBall
Creates a default ball with speed 3, direction pi/3, and diameter 10
BasicBreakoutComponent - class breakout.BasicBreakoutComponent.
Pretty much as basic a BreakoutComponent as you can get.
BasicBreakoutComponent() - Constructor for class breakout.BasicBreakoutComponent
Creates a BasicBreakoutComonent of default size(60x20).
BasicBreakoutComponent(Dimension) - Constructor for class breakout.BasicBreakoutComponent
Creates a BasicBreakoutComponent of specified size.
BasicBrick - class breakout.BasicBrick.
A basic implementation of the Brick interface.
BasicBrick(int, int) - Constructor for class breakout.BasicBrick
Creates a new BasicBrick of the specified dimensions.
BasicPaddle - class breakout.BasicPaddle.
A basic implementation of the Paddle interface.
BasicPaddle(Board) - Constructor for class breakout.BasicPaddle
Creates a BasicPaddle of a default size and location, belonging to a specified Board.
BasicWall - class breakout.BasicWall.
Basic implementation of the Wall interface, with functionality for each of the four walls of a basic gameboard.
BasicWall(Board, int) - Constructor for class breakout.BasicWall
Creates a new BasicWall belonging to a specified Board and of a specified type.
Board - class breakout.Board.
A class to manage lists of BreakoutComponents, provide simple autolayout functionality, and maintain information about the geometry of the gameboard.
Board(BoardPanel) - Constructor for class breakout.Board
Creates a new Board with the specified BoardPanel.
BoardPanel - class breakout.BoardPanel.
Defines behavior for a JPanel built to display a Board.
BoardPanel(BreakoutUI) - Constructor for class breakout.BoardPanel
Creates a new BoardPanel in a particular BreakoutUI.
BreakoutComponent - interface breakout.BreakoutComponent.
Defines the contract for all BreakoutComponent objects.
BreakoutUI - class breakout.BreakoutUI.
Manages the user interface for Breakout.
BreakoutUI() - Constructor for class breakout.BreakoutUI
Creates a new BreakoutUI and gives it a new BoardPanel with no Board.
Brick - interface breakout.Brick.
Interface to tell Board that a component is a Brick.
babySitters - Variable in class cs101.net.Server
list of BabySitters to handle each client connection
board - Variable in class breakout.BasicPaddle
The Board containing this BasicPaddle
board - Variable in class breakout.BasicWall
The Board we are a member of.
board - Variable in class breakout.Loader
The Board eventaully returned from the load() method.
bounce(Line2D.Float, Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Compute a velocity vector after a bounce off a given surface.
bpanel - Variable in class breakout.Loader
The BoardPanel used to create the Board for this Loader.
breakout - package breakout
 

C

Client - class cs101.net.Client.
A reasonably vanilla network client.
Client(String, int, StringHandler) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client(String, int) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client(StringHandler) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client() - Constructor for class cs101.net.Client
Creates an autonomous client.
ClientDialog - class cs101.awt.ClientDialog.
Manages a top level query dialog box to get hostName and port connection information.
ClientDialog() - Constructor for class cs101.awt.ClientDialog
Creates the dialog information.
ClientWire - class cs101.net.ClientWire.
Networked Wire, Client Side.
ClientWire(String, int, boolean) - Constructor for class cs101.net.ClientWire
How to make one, if we know who we want to talk to.
ClientWire(String, int) - Constructor for class cs101.net.ClientWire
How to make one, if we know who we want to talk to.
ClientWire() - Constructor for class cs101.net.ClientWire
How to make one, if we don't know who we want to talk to.
Coerce - class cs101.util.Coerce.
Coerce implements some coercion utilities for a variety of java classes.
ColorField - class cs101.awt.ColorField.
cs101.awt.ColorField provides a colored rectangle that operates as an awt.component.
ColorField() - Constructor for class cs101.awt.ColorField
Constructs a rectangular color field with default values for all attibutes.
ColorField(boolean, Dimension, Color, Color) - Constructor for class cs101.awt.ColorField
Constructs a rectangular colorfield with the passed attributes.
ConfettiBrick - class breakout.ConfettiBrick.
Subclasses BasicBrick to paint confetti on itself that changes every 20 ticks.
ConfettiBrick(int, int, int) - Constructor for class breakout.ConfettiBrick
 
ConnectionRejectedException - exception cs101.io.connection.ConnectionRejectedException.
 
ConnectionRejectedException() - Constructor for class cs101.io.connection.ConnectionRejectedException
 
ConnectionRejectedException(String) - Constructor for class cs101.io.connection.ConnectionRejectedException
 
Connector - interface cs101.io.connection.Connector.
 
Console - class cs101.awt.Console.
A graphical helper class for Java Console IO.
Console() - Constructor for class cs101.awt.Console
Create and display a new Console.
Console - class cs101.io.Console.
A helper class for Java Console IO.
CreationException - exception cs101.util.CreationException.
CreationExceptions are thrown by Coerce.StringToClass.
CreationException() - Constructor for class cs101.util.CreationException
 
CreationException(String) - Constructor for class cs101.util.CreationException
 
c - Variable in class cs101.awt.DefaultFrame
The Component to display.
c - Variable in class cs101.awt.DefaultGameFrame
The Component (view) to display.
capitalize(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with the first character replaced by its upper case equivalent.
capitalizeAll(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with all characters replaced by their upper case equivalents.
capitalizedP(String) - Static method in class cs101.util.StringUtils
Determines whether the first character of its argument word is upper case.
cardinal - Variable in class breakout.BasicWall
Which wall we are(north, south, east, west).
changeState(boolean) - Method in class cs101.awt.ColorField
Changes the state of the color field to the value passed in.
client - Variable in class cs101.net.DefaultReadLoop
Communicates with the network.
connectTo(String, int) - Method in class cs101.net.Client
Opens a connection to a server presumed to be listening on hostName, port.
connectTo(String, int) - Method in class cs101.net.ClientWire
Opens a connection to a server presumed to be listening on hostName, port.
connectTo(int) - Method in class cs101.net.ServerWire
Opens a connection to a server presumed to be listening on hostName, port.
createIntermediateCurve(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the supplied array of float to contain an additional knot and modify the associated control points.
createIntermediateLine(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the suppled array of float to contain an additional knot.
createIntermediateQuad(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the suppled array of float to contain an additional knot and modify the associated control points.
cs101.awt - package cs101.awt
 
cs101.awt.geom - package cs101.awt.geom
 
cs101.io - package cs101.io
 
cs101.io.connection - package cs101.io.connection
 
cs101.lang - package cs101.lang
 
cs101.net - package cs101.net
 
cs101.util - package cs101.util
 
cs101.util.gamecontrol - package cs101.util.gamecontrol
 
cs101.util.queue - package cs101.util.queue
 
cs101.util.semaphore - package cs101.util.semaphore
 
cs101.xml - package cs101.xml
 

D

DEFAULT_COLOR - Static variable in class cs101.awt.Line
This specifies the default color for a line.
DEFAULT_DIAM - Static variable in class breakout.BasicBall
The diameter of a BasicBall.
DONT_START_YET - Static variable in class cs101.lang.AnimatorThread
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
DONT_START_YET - Static variable in class cs101.util.AnimateObject
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
DefaultFrame - class cs101.awt.DefaultFrame.
Simple top level that deals with one component and sizing.
DefaultFrame(Component) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame surrounding the supplied component.
DefaultFrame(Component, int, int) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame of the specified size surrounding the supplied component.
DefaultFrame(Component, Dimension) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame of the specified Dimension surrounding the supplied component.
DefaultGameFrame - class cs101.awt.DefaultGameFrame.
Simple top level Frame that deals with one component and sizing.
DefaultGameFrame(GameControllable) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame relying on the supplied GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component, int, int) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame of the specified size surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component, Dimension) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame of the specified size surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultQueue - class cs101.util.queue.DefaultQueue.
Default Queue class.
DefaultQueue() - Constructor for class cs101.util.queue.DefaultQueue
Creates a new, empty Queue
DefaultQueue(Object) - Constructor for class cs101.util.queue.DefaultQueue
Creates a new Queue contining obj as the only element
DefaultReadLoop - class cs101.net.DefaultReadLoop.
A generic read loop for a client.
DefaultReadLoop(Client) - Constructor for class cs101.net.DefaultReadLoop
A generic read loop for client.
DefaultStringHandler - class cs101.util.DefaultStringHandler.
A default StringHandler.
DefaultStringHandler() - Constructor for class cs101.util.DefaultStringHandler
 
DisplayField - class cs101.awt.DisplayField.
cs101.awt.DisplayField extends cs101.util.ColorField to add a line of text to the colored rectangle.
DisplayField(String, boolean, Color, Color) - Constructor for class cs101.awt.DisplayField
Constructs a rectangular colorfield with the passed attributes.
deQ() - Method in interface cs101.util.queue.StringQueue
 
deTransifyCursor() - Method in class breakout.BoardPanel
Switches the cursor for this BoardPanel between "hidden" and default.
dequeue() - Method in class cs101.util.queue.DefaultQueue
Removes and returns the Object at the tail of the queue.
dequeue(int) - Method in class cs101.util.queue.DefaultQueue
Removes and returns the Object at the specified end of the queue.
dequeue() - Method in interface cs101.util.queue.Queue
Removes and returns the Object at the tail of the queue.
dequeue(int) - Method in interface cs101.util.queue.Queue
Removes and returns the Object at the specified end of the queue.
diedWhileRebounding() - Method in class breakout.BasicBall
Tells whether we hit the floor the last time we resolved bounces.
diedWhileRebounding() - Method in interface breakout.Rebounding
Called after the rebound phase to see if this object died while it was rebounding.
diedrebounding - Variable in class breakout.BasicBall
Whether or not we died during the last resolveBounces phase of the tick.
dim - Variable in class cs101.awt.ColorField
size of the field
disableLayout() - Method in class breakout.Board
Disables autolayout in preparation for beginning the game.
display - Variable in class cs101.util.semaphore.GraphicalSemaphore
display panel for the semaphore
doReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the resultant velocity from the collision of a mobile and imobile shape.
doReflect(Shape, Shape, Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the resultant velocity from the collision of a mobile and imobile shape.
doXReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the new x velocity after reflecting a moving shape from a imobile shape.
doYReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the new x velocity after reflecting a moving shape from a imobile shape.
drawOn(Graphics) - Method in class cs101.awt.Line
 

E

EAST - Static variable in class breakout.BasicWall
Creates an east wall(right side).
ERROR - Static variable in class cs101.xml.SimpleErrorHandler
 
EmptyQueueException - exception cs101.util.queue.EmptyQueueException.
EmptyQueueExceptions are thrown when trying to extract data from an empty Queue.
EmptyQueueException() - Constructor for class cs101.util.queue.EmptyQueueException
 
EmptyQueueException(String) - Constructor for class cs101.util.queue.EmptyQueueException
 
eastmost - Variable in class breakout.BasicPaddle
Rightmost point able to be occupied by this BasicPaddle.
elapsed() - Method in class cs101.util.StopWatch
 
elements() - Method in class cs101.util.queue.DefaultQueue
Returns an Enumeration of the Objects in the queue.
elements() - Method in interface cs101.util.queue.Queue
Returns an Enumeration of the Objects in the queue.
enQ(String) - Method in interface cs101.util.queue.StringQueue
 
enqueue(Object) - Method in class cs101.util.queue.DefaultQueue
Puts obj into the front the queue.
enqueue(Object, int) - Method in class cs101.util.queue.DefaultQueue
Puts obj into the specified end of the queue.
enqueue(Object) - Method in interface cs101.util.queue.Queue
Puts obj into the front the queue.
enqueue(Object, int) - Method in interface cs101.util.queue.Queue
Puts obj into the specified end of the queue.
error(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
extractArgs(String, String) - Static method in class breakout.LoaderUtils
Given the label "fooArgs", extracts "5" "4" and "%" out of the string, [foo p="5" q="0" fooArgs="5, 4, %foo"].
extractClassObjectArrays(Vector, Board) - Static method in class breakout.LoaderUtils
Extracts a Class[] and a Object[] out of a Vector of constructor arguments, and returns them in a Vector as elements 0 and 1, respectively.
extractLine(String) - Static method in class cs101.awt.Line
Given a String that was originally created by packLine, this function will return a reference to a new Line object that represents the original Line.
extractValue(String, String) - Static method in class breakout.LoaderUtils
Given the label "q", extracts "0" out of the string, [foo p="5" q="0"]

F

FATAL_ERROR - Static variable in class cs101.xml.SimpleErrorHandler
 
FRONT - Static variable in interface cs101.util.queue.Queue
 
falseColor - Variable in class cs101.awt.ColorField
color when state == false
fatalError(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
finalize() - Method in class cs101.net.Client
Closes the socket, stops the thread.
finalize() - Method in class cs101.net.ClientWire
Closes the Socket and Streams.
finalize() - Method in class cs101.net.ServerWire
Closes the Socket.
firstVowelPos(String) - Static method in class cs101.util.StringUtils
Computes the index of the first position in String which contains a vowel (i.e., one of AEIOU).
fromFile - Variable in class breakout.Loader
The File Loader reads from.

G

GBS - class cs101.util.semaphore.GBS.
Implements simple binary semaphores in java witha graphical display.
GBS(boolean, String) - Constructor for class cs101.util.semaphore.GBS
Constructs a binary semaphore with the intial value passed in.
GCS - class cs101.util.semaphore.GCS.
cs101.util.GCS implements a counting semaphore of arbitrary size in java.
GCS(int, int, String) - Constructor for class cs101.util.semaphore.GCS
Constructs a counting semaphore with the size and initial value passed in.
GameControllable - interface cs101.util.gamecontrol.GameControllable.
This interface defines the behavior for a game controller.
GraphicalSemaphore - class cs101.util.semaphore.GraphicalSemaphore.
cs101.util.GraphicalSemaphore is the abstract super class for both the GBS (Graphical Binary semaphore) and the GCS (Graphical Counting semaphore).
GraphicalSemaphore(String) - Constructor for class cs101.util.semaphore.GraphicalSemaphore
Creates some of the GUI objects needed by it's subclasses.
gc - Variable in class cs101.awt.DefaultGameFrame
The controls for this component.
getAllComponents() - Method in class breakout.Board
Gives an Iterator for all the BreakoutComponents on the board.
getBoard() - Method in class breakout.World
Gets the Board associated with this World.
getBoardPanel() - Method in class breakout.Board
Gets the BoardPanel used to display this Board.
getBoardPanel() - Method in class breakout.BreakoutUI
Gets the BoardPanel used by this BreakoutUI.
getButton() - Method in class cs101.util.semaphore.IntBuffer
An alternate (caluculator oriented) name for IntBuffer.getInt().
getContainedPoints(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Get a list of the points belonging to one shape and contained within another.
getHeight(boolean) - Method in class breakout.Board
Gets the height of the board, with or without the border padding.
getHost() - Method in class cs101.awt.NetworkSettingsDialog
returns the name of the host to connect to as a client.
getHostName() - Method in class cs101.awt.ClientDialog
Return the host machine name from the user.
getImprovedPath(GeneralPath, float) - Static method in class cs101.awt.geom.ShapeUtils
Used iteratively by getPrecisePath to acheive as specified precision.
getInputConnection() - Method in interface cs101.io.connection.Connector
 
getInt() - Method in class cs101.util.semaphore.IntBuffer
(Safely) Consumes the int held in the IntBuffer.
getLineFromNeighbors(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the line between points on either side of a knot point on a given shape.
getLocation() - Method in class breakout.BasicBall
Gets the current coordinates of the ball, cast to an integer grid.
getLocation() - Method in class breakout.BasicBreakoutComponent
Gets the location of this BasicBreakoutComponent.
getLocation() - Method in class breakout.BasicBrick
Gets the location of this BasicBrick.
getLocation() - Method in class breakout.BasicPaddle
Gets the current location of this BasicPaddle.
getLocation() - Method in class breakout.BasicWall
Gets the location of this BasicWall.
getLocation() - Method in interface breakout.BreakoutComponent
Provides a way to get the location of this BreakoutComponent.
getLowerLeft(boolean) - Method in class breakout.Board
Gets the lower-left point on the board, with or without the border padding.
getLowerRight(boolean) - Method in class breakout.Board
Gets the lower-right point on the board, with or without the border padding.
getMinimumSize() - Method in class cs101.awt.ColorField
Called by this object's container to determine the minimum space required by this object.
getMinimumSize() - Method in class cs101.awt.DisplayField
Called by this object's container to determine the minimum space required by this object.
getMinimumSize() - Method in class cs101.util.semaphore.GraphicalSemaphore
Determines the mininum size necessary for this component.
getMode() - Method in class cs101.awt.NetworkSettingsDialog
Returns the requested state of network connectivity
getNearestPoint(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the knot point in the given shape that is closest to the specified point.
getNextWord() - Method in class cs101.util.semaphore.PNCBuffer
(Safely) Consumes the word held in the PNCBuffer.
getOutputConnection() - Method in interface cs101.io.connection.Connector
 
getPort() - Method in class cs101.awt.ClientDialog
Return the port number from the user.
getPort() - Method in class cs101.awt.NetworkSettingsDialog
returns the requested port.
getPort() - Method in class cs101.awt.ServerDialog
Return the port number from the user.
getPrecisePath(GeneralPath, float) - Static method in class cs101.awt.geom.ShapeUtils
Increase the precision of a given GeneralPath object.
getPreciseShape(Shape, float) - Static method in class cs101.awt.geom.ShapeUtils
Convert any AWT shape into a shape with a specified precision.
getPreferredSize() - Method in class cs101.awt.ColorField
Called by this object's container to determine the minimum space required by this object.
getPreferredSize() - Method in class cs101.awt.DefaultFrame
This method overrides Frame's default getPreferredSize() in case component doesn't specify its own preferences.
getPreferredSize() - Method in class cs101.awt.DefaultGameFrame
This method overrides Frame's default getPreferredSize() in case component doesn't specify its own preferences.
getPreferredSize() - Method in class cs101.awt.DisplayField
Called by this object's container to determine the minimum space required by this object.
getPreferredSize() - Method in class cs101.util.semaphore.GraphicalSemaphore
Determines the preferedSize necessary for this component.
getReboundingComponents() - Method in class breakout.Board
Gives an Iterator for all the BreakoutComponents on the board that implement Rebounding.
getShape() - Method in class breakout.BasicBall
Gets the java.awt.Shape of this ball.
getShape() - Method in class breakout.BasicBreakoutComponent
Gets the java.awt.Shape of this BasicBreakoutComponent.
getShape() - Method in class breakout.BasicBrick
Gets the java.awt.Shape of this BasicBrick.
getShape() - Method in class breakout.BasicPaddle
Gets the java.awt.Shape of this BasicPaddle.
getShape() - Method in class breakout.BasicWall
Gets the java.awt.Shape of this BasicWall.
getShape() - Method in interface breakout.BreakoutComponent
Provides a way to get the java.awt.Shape of this BreakoutComponent, generally for intersection and rebound checks.
getShape() - Method in class breakout.RoundBrick
 
getSize() - Method in class breakout.BasicBall
Gets the current size of the ball.
getSize() - Method in class breakout.BasicBreakoutComponent
Gets the size of this BasicBreakoutComponent.
getSize() - Method in class breakout.BasicBrick
Gets the size of this BasicBrick.
getSize() - Method in class breakout.BasicPaddle
Gets the size of this BasicPaddle.
getSize() - Method in class breakout.BasicWall
Gets the size of this BasicWall.
getSize() - Method in interface breakout.BreakoutComponent
Provides a way to get the size of this BreakoutComponent.
getUpperLeft(boolean) - Method in class breakout.Board
Gets the upper-left point on the board, with or without the border padding.
getUpperRight(boolean) - Method in class breakout.Board
Gets the upper-right point on the board, with or without the border padding.
getValues() - Method in class cs101.awt.QueryDialog
Return the last entered values for the field.
getWidth(boolean) - Method in class breakout.Board
Gets the width of the board, with or without border padding.
getWorld() - Method in class breakout.BreakoutUI
Gets the World used by this BreakoutUI.

H

HitpointsBrick - class breakout.HitpointsBrick.
Example of Brick subclassing.
HitpointsBrick(int, int) - Constructor for class breakout.HitpointsBrick
Creates a new HitpointsBrick with the specified dimensions.
handleString(String) - Method in class cs101.net.Client
This method is passed the String which has been read by the Client if no other StringHandler has been set.
handleString(String) - Method in class cs101.util.DefaultStringHandler
Just print the string to System.out.
handleString(String) - Method in interface cs101.util.StringHandler
 
hasBallInPlay() - Method in class breakout.Board
Tells if there are any Ball objects left on the Board.
hasBricksLeft() - Method in class breakout.Board
Tells if there are any Brick objects left on the Board.
hasNext() - Method in class cs101.awt.geom.PointIterator
Test to see if the entire shape has been processed.
hit(BreakoutComponent) - Method in class breakout.BasicBall
Called by an object implementing the Rebounding interface when it has detected an intersection with this ball.
hit(BreakoutComponent) - Method in class breakout.BasicBreakoutComponent
Called by a Rebounding BreakoutComponent when it has detected an intersection with this BasicBreakoutComponent.
hit(BreakoutComponent) - Method in class breakout.BasicBrick
Called by a Rebounding BreakoutComponent when it has detected an intersection with this BasicBrick.
hit(BreakoutComponent) - Method in class breakout.BasicPaddle
Called by a Rebounding BreakoutComponent when it has detected an intersection with this BasicPaddle.
hit(BreakoutComponent) - Method in class breakout.BasicWall
Called by a Rebounding BreakoutComponent when it has detected an intersection with this BasicWall.
hit(BreakoutComponent) - Method in interface breakout.BreakoutComponent
Used in the rebound phase of a World tick.
hit(BreakoutComponent) - Method in class breakout.HitpointsBrick
Determines whether this HitpointsBrick has been hit enough times yet to die.

I

Initializable - interface cs101.util.gamecontrol.Initializable.
Interface for an object with a init() method.
InputAcceptor - interface cs101.io.connection.InputAcceptor.
 
InputConnection - interface cs101.io.connection.InputConnection.
 
InstanceCounter - Static variable in class cs101.util.semaphore.GraphicalSemaphore
Number of instances created
IntBuffer - class cs101.util.semaphore.IntBuffer.
Implements a producer/consumer synchronized buffer.
IntBuffer() - Constructor for class cs101.util.semaphore.IntBuffer
 
init() - Method in class cs101.awt.DefaultFrame
Make the frame appear
init() - Method in class cs101.awt.DefaultGameFrame
Make the frame appear
init() - Method in interface cs101.util.gamecontrol.Initializable
 
isEmpty() - Method in class cs101.util.queue.DefaultQueue
Tests whether the queue is empty.
isEmpty() - Method in interface cs101.util.queue.Queue
Tests whether the queue is empty.
isEmptyQ() - Method in interface cs101.util.queue.StringQueue
 
isOverlapping(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Test to see if two Shape objects overlap.
isStart(Point2D.Float) - Method in class cs101.awt.geom.PointIterator
Test to see if the supplied point is the same object as the current start point for the current path.

K

killing() - Method in class breakout.BasicWall
Tells whether or not we kill things.
killing() - Method in interface breakout.Wall
Tells if this wall kills things that hit it.

L

Line - class cs101.awt.Line.
Implements a 4-coordinate (+ optional Color) line abstraction with its own drawing method.
Line(int, int, int, int) - Constructor for class cs101.awt.Line
Construct a line, specifying all 4 coordinates and using the default color.
Line(int, int, int, int, Color) - Constructor for class cs101.awt.Line
Construct a line, specifying all 4 coordinates and a specific color.
Loader - class breakout.Loader.
Utility class for parsing a board file into a breakout.Board.
Loader(File, BoardPanel) - Constructor for class breakout.Loader
Creates a new Loader for the specified File, to create a Board with the specified BoardPanel.
LoaderUI - class breakout.LoaderUI.
UI to request a boardfile and fetch a Board from Loader to give to the main UI.
LoaderUI(BreakoutUI) - Constructor for class breakout.LoaderUI
Create a new LoaderUI rooted at the current directory.
LoaderUI(BreakoutUI, String) - Constructor for class breakout.LoaderUI
Create a new LoaderUI rooted at an explicit path.
LoaderUtils - class breakout.LoaderUtils.
Utility class to help Loader process information in a boardfile.
LoaderUtils() - Constructor for class breakout.LoaderUtils
 
label - Variable in class cs101.util.semaphore.GraphicalSemaphore
label for the semaphore
listenOn(int) - Method in class cs101.net.Server
Helper method to actually open the ServerSocket and intialize other state.
load() - Method in class breakout.Loader
Attempts to read and parse a boardfile(*.brd), returning a Board that meets the file's specifications.
load() - Method in class breakout.LoaderUI
Uses Loader to create a Board to meet the specifications in the boardfile chosen by the user.
loadBoard(Board) - Method in class breakout.BreakoutUI
Sets up a new World with the specified Board and this BreakoutUI.
loadBoard() - Method in class breakout.BreakoutUI
Loads a new Board from a properly formatted text file.
location - Variable in class breakout.BasicBall
The location of this BasicBall.
location - Variable in class breakout.BasicBreakoutComponent
The location of this BasicBreakoutComponent.
location - Variable in class breakout.BasicBrick
The location of this BasicBrick.
location - Variable in class breakout.BasicPaddle
The location of this BasicPaddle.
location - Variable in class breakout.BasicWall
The location of this BasicWall.
look() - Method in class cs101.util.StopWatch
 
lose() - Method in class breakout.BreakoutUI
Losing the game.

M

MS_HOUR - Static variable in class cs101.util.StopWatch
 
MS_MIN - Static variable in class cs101.util.StopWatch
 
MS_SEC - Static variable in class cs101.util.StopWatch
 
Main - class breakout.Main.
Example main class(students have to write this one)
Main() - Constructor for class breakout.Main
 
Main - class cs101.util.Main.
Main hides the public static void main( String[] argv ) construct from students by providing a command line interface.
MoreMath - class cs101.util.MoreMath.
cs101.util.MoreMath is an extension of the java.lang.Math library.
main(String[]) - Static method in class breakout.Main
 
main(String[]) - Static method in class cs101.awt.NetworkSettingsDialog
Main method for visual layout inspection.
main(String[]) - Static method in class cs101.net.RunServer
 
main(String[]) - Static method in class cs101.util.Main
 
meanContainedPoint(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Calcualte the average of all points contained within one shape and belonging to another.
meanPoint(List) - Static method in class cs101.awt.geom.ShapeUtils
Find the mean location of a list of Point2D.Float.
midPoint(float, float, float, float) - Static method in class cs101.awt.geom.ShapeUtils
Find the midpoint of a specifed line segment.
mouseDragged(MouseEvent) - Method in class breakout.BasicPaddle
(unused)
mouseMoved(MouseEvent) - Method in class breakout.BasicPaddle
Listens to mouse movements, and sets the x-coordinate of the BasicPaddle accordingly.
myNumber - Variable in class cs101.util.semaphore.GraphicalSemaphore
my number in the InstanceCount(er)

N

NETWORK_CLIENT - Static variable in class cs101.awt.NetworkSettingsDialog
Run as a client
NETWORK_NONE - Static variable in class cs101.awt.NetworkSettingsDialog
Run in standalone mode
NETWORK_SERVER - Static variable in class cs101.awt.NetworkSettingsDialog
Run as a server
NORTH - Static variable in class breakout.BasicWall
Creates a north wall(ceiling).
NetworkSettingsDialog - class cs101.awt.NetworkSettingsDialog.
A dialog box that will allow the user to select wether the program should run in standalone mode, client mode or server mode.
NetworkSettingsDialog(Frame, boolean) - Constructor for class cs101.awt.NetworkSettingsDialog
Creates new form NetworkSettingsDialog.
NoUniqueLineException - exception cs101.awt.geom.NoUniqueLineException.
This exception represents a condition where more than one line satisfies a condition, and this prevents the throwing method from generating a valid return value.
NoUniqueLineException() - Constructor for class cs101.awt.geom.NoUniqueLineException
Creates a new instance of NoUniqueLineException without detail message.
NoUniqueLineException(String) - Constructor for class cs101.awt.geom.NoUniqueLineException
Constructs an instance of NoUniqueLineException with the specified detail message.
NotEnoughPointsException - exception cs101.awt.geom.NotEnoughPointsException.
 
NotEnoughPointsException() - Constructor for class cs101.awt.geom.NotEnoughPointsException
Creates a new instance of NotEnoughPointsException without detail message.
NotEnoughPointsException(String) - Constructor for class cs101.awt.geom.NotEnoughPointsException
Constructs an instance of NotEnoughPointsException with the specified detail message.
nearestSegment(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the line segment between two consecutive knot points of the given Shape that is closest to a specified point.
newInstanceByClassname(String) - Static method in class cs101.util.Coerce
Given a String representing the name of a class, returns an initilized instance of the corresponding class (as an object).
nextPoint() - Method in class cs101.awt.geom.PointIterator
Return the next point in the shape.
nonWordChars - Static variable in class cs101.util.StringUtils
A string containing the non-word characters a user might reasonably be expected to type at a semi-standard American keyboard.

O

OutputAcceptor - interface cs101.io.connection.OutputAcceptor.
 
OutputConnection - interface cs101.io.connection.OutputConnection.
 
ois - Variable in class cs101.net.BabySitter
Where to read from client
ois - Variable in class cs101.net.Client
Where to read data
oos - Variable in class cs101.net.BabySitter
Where to write to client
oos - Variable in class cs101.net.Client
Where to write data

P

PADDING - Static variable in class breakout.Board
The distance autolayout places between bricks.
PADDING - Static variable in class breakout.BreakoutUI
The padding used to get away from the system-added borders to a JFrame.
PNCBuffer - class cs101.util.semaphore.PNCBuffer.
cs101.util.PNCBuffer implements a producer/consumer synchronized buffer.
PNCBuffer() - Constructor for class cs101.util.semaphore.PNCBuffer
 
PREF_HEIGHT - Static variable in class breakout.BoardPanel
Default height
PREF_WIDTH - Static variable in class breakout.BoardPanel
Default width
Paddle - interface breakout.Paddle.
Interface to tell Board that this BreakoutComponent is a Paddle.
Pausable - interface cs101.util.gamecontrol.Pausable.
Interface for an object with pause() and unpause() methods.
PointIterator - class cs101.awt.geom.PointIterator.
This class provides a simple interface for listing all the knot points in an java.awt.Shape.
PointIterator(Shape) - Constructor for class cs101.awt.geom.PointIterator
Creates a PointIterator for the specified Shape.
PurpleBrick - class breakout.PurpleBrick.
Subclasses BasicBrick to be painted differently.
PurpleBrick(int, int) - Constructor for class breakout.PurpleBrick
 
packLine(Line) - Static method in class cs101.awt.Line
This method converts a Line into a String.
paint(Graphics) - Method in class breakout.BasicBall
Paints the ball.
paint(Graphics) - Method in class breakout.BasicBreakoutComponent
Paints the BasicBreakoutComponent.
paint(Graphics) - Method in class breakout.BasicBrick
Paints the BasicBrick.
paint(Graphics) - Method in class breakout.BasicPaddle
Paints the BasicPaddle.
paint(Graphics) - Method in class breakout.BasicWall
Paints this BasicWall.
paint(Graphics) - Method in class breakout.BoardPanel
Paints the BoardPanel and all the Board components.
paint(Graphics) - Method in interface breakout.BreakoutComponent
Provides a way to paint this BreakoutComponent.
paint(Graphics) - Method in class breakout.ConfettiBrick
 
paint(Graphics) - Method in class breakout.HitpointsBrick
Paints this HitpointsBrick.
paint(Graphics) - Method in class breakout.PurpleBrick
 
paint(Graphics) - Method in class breakout.RoundBrick
 
paint(Graphics) - Method in class cs101.awt.ColorField
Draws the color field on the screen in it's current state
paint(Graphics) - Method in class cs101.awt.DisplayField
Calls the ColorField.paint to do the field.
pause() - Method in interface cs101.util.gamecontrol.Pausable
 
peek() - Method in class cs101.util.queue.DefaultQueue
Gets the tail object from the queue without removing it.
peek(int) - Method in class cs101.util.queue.DefaultQueue
Gets the object from the specified end of the queue without removing it.
peek() - Method in interface cs101.util.queue.Queue
Gets the tail object from the queue without removing it.
peek(int) - Method in interface cs101.util.queue.Queue
Gets the object from the specified end of the queue without removing it.
print(String) - Method in class cs101.awt.Console
Write a line to Console.
print(String) - Static method in class cs101.io.Console
Write a line to Console.
println(String) - Method in class cs101.awt.Console
Write a String to Console.
println(String) - Static method in class cs101.io.Console
Write a line to Console.
println() - Static method in class cs101.io.Console
Write a blank line to Console.
processBoardTag(String) - Method in class breakout.Loader
Process a line formatted like "[board ball="breakout.BasicBall" ballargs="" paddle="breakout.BasicPaddle" paddleargs="%board"]"
processSymbolTag(String) - Method in class breakout.Loader
Process a line formatted like "[symbol char="b" class="breakout.BasicBrick" args="61,15"]"
putButton(int) - Method in class cs101.util.semaphore.IntBuffer
An alternate (calculator oriented) name for IntBuffer.putInt(int).
putInt(int) - Method in class cs101.util.semaphore.IntBuffer
(Safely) Puts an int into the IntBuffer.
putWord(String) - Method in class cs101.util.semaphore.PNCBuffer
(Safely) Puts a word into the PNCBuffer.

Q

QueryDialog - class cs101.awt.QueryDialog.
A class to display a toplevel dialog box with a message, a list of "things" and associated textfields, and get answers.
QueryDialog(String, String[], String[]) - Constructor for class cs101.awt.QueryDialog
Create a hidden QueryDialog with the appropriate text and defaults.
QueryDialog(String, String[]) - Constructor for class cs101.awt.QueryDialog
Create a hidden QueryDialog with the appropriate text.
Queue - interface cs101.util.queue.Queue.
Generic Queue Interface.
qd - Variable in class cs101.awt.ClientDialog
 
qd - Variable in class cs101.awt.ServerDialog
 
questions - Variable in class cs101.awt.ClientDialog
 
questions - Variable in class cs101.awt.ServerDialog
 

R

Rebounding - interface breakout.Rebounding.
Defines the contract for objects that rebound off of other objects.
Resettable - interface cs101.util.gamecontrol.Resettable.
Interface for an object with a reset() method.
RoundBrick - class breakout.RoundBrick.
Subclasses BasicBrick to provide functionality for an oval-shaped brick.
RoundBrick(int, int) - Constructor for class breakout.RoundBrick
 
RunServer - class cs101.net.RunServer.
Runs a server application that broadcasts incoming information to all connected clients (except source of information).
randomInt(int) - Static method in class cs101.util.MoreMath
Generate a random int between 0 and range.
readInput() - Method in interface cs101.io.connection.InputConnection
 
readObject() - Method in class cs101.net.ClientWire
Use this to read an Object from the Wire.
readObject() - Method in class cs101.net.ServerWire
Use this to read an Object from the Wire.
readObject() - Method in interface cs101.net.Wire
Read the next object.
reader - Variable in class breakout.Loader
Reads from fromFile.
readln() - Method in class cs101.awt.Console
Read a line from Console.
readln() - Static method in class cs101.io.Console
Read a line from Console.
release() - Method in class cs101.util.semaphore.BS
Releases the semaphore.
release() - Method in class cs101.util.semaphore.GBS
Releases the semaphore.
release() - Method in class cs101.util.semaphore.GCS
Releases a lock of the semaphore (if any are currently busy).
release() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
reload() - Method in class breakout.Loader
Reloads saved data into a new Board.
removeBabySitter(BabySitter) - Method in class cs101.net.Server
Removes a BabySitter for the list of babySitters.
removeReboundingElement(BreakoutComponent) - Method in class breakout.Board
Fully removes from the board a Rebounding BreakoutComponent which died during the bounce phase of the tick.
request() - Method in class cs101.util.semaphore.BS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GBS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GCS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
reset() - Method in class cs101.util.StopWatch
Reset the stopwatch.
reset() - Method in interface cs101.util.gamecontrol.Resettable
 
resolveBounces(Iterator) - Method in class breakout.BasicBall
Checks all the BreakoutComponents in an iterator to see if it intersects them, hit()s them, and recalculates its velocity vector.
resolveBounces(Iterator) - Method in interface breakout.Rebounding
Called to allow moving objects to check itself against the objects in the iterator for intersections, call hit() as necessary, adjust its velocity, etc.
resumeExecution() - Method in class cs101.lang.AnimatorThread
Resumes execution after a temporary suspension (using suspendExecution()).
run() - Method in class breakout.World
Runs continuously while game is in progress.
run() - Method in class cs101.lang.AnimatorThread
Repeatedly invoke your Animate's act() method, sleeping between invocations.
run() - Method in class cs101.net.BabySitter
Recieves new info from clients.
run() - Method in class cs101.net.Client
Reads Strings from the server connection.
run() - Method in class cs101.net.DefaultReadLoop
Called by this object's thread.
run() - Method in class cs101.net.Server
Wait loop to service the ServerSocket.

S

SOUTH - Static variable in class breakout.BasicWall
Creates a south wall(floor; kills balls).
START_IMMEDIATELY - Static variable in class cs101.lang.AnimatorThread
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
START_IMMEDIATELY - Static variable in class cs101.util.AnimateObject
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
Server - class cs101.net.Server.
Generic Server class: broadcasts whatever messages it receives to all clients other than the message's originator.
Server() - Constructor for class cs101.net.Server
Creates a server socket.
Server(int) - Constructor for class cs101.net.Server
Creates a server socket.
ServerDialog - class cs101.awt.ServerDialog.
Manages a top level query dialog box to get port connection information.
ServerDialog() - Constructor for class cs101.awt.ServerDialog
Creates the dialog information.
ServerWire - class cs101.net.ServerWire.
Networked Wire, Server Side.
ServerWire(int, boolean) - Constructor for class cs101.net.ServerWire
How to make one, if we know the port.
ServerWire(int) - Constructor for class cs101.net.ServerWire
How to make one, if we know the port.
ServerWire() - Constructor for class cs101.net.ServerWire
How to make one, if we don't know who we want to talk to.
ShapeUtils - class cs101.awt.geom.ShapeUtils.
This utility class holds routines for doing conversions on classes that implement the Shape interface.
ShapesDontOverlapException - exception cs101.awt.geom.ShapesDontOverlapException.
 
ShapesDontOverlapException() - Constructor for class cs101.awt.geom.ShapesDontOverlapException
Creates a new instance of ShapesDontOverlapException without detail message.
ShapesDontOverlapException(String) - Constructor for class cs101.awt.geom.ShapesDontOverlapException
Constructs an instance of ShapesDontOverlapException with the specified detail message.
SimpleErrorHandler - class cs101.xml.SimpleErrorHandler.
A blindingly simple and completely unforgiving xml ErrorHandler.
SimpleErrorHandler() - Constructor for class cs101.xml.SimpleErrorHandler
Creates a new instance of SimpleErrorHandler
Startable - interface cs101.util.gamecontrol.Startable.
Interface for an object with a start() method.
StopWatch - class cs101.util.StopWatch.
A stopwatch for timing the execution of code.
StopWatch() - Constructor for class cs101.util.StopWatch
Creates a new instance of StopWatch.
Stoppable - interface cs101.util.gamecontrol.Stoppable.
Interface for an object with a stop() method.
StringHandler - interface cs101.util.StringHandler.
An interface for objects that can handle Strings received from the network by cs101.net.Client.
StringQueue - interface cs101.util.queue.StringQueue.
 
StringUtils - class cs101.util.StringUtils.
cs101.util.StringUtils implements some string utility functions.
send(String) - Method in class cs101.net.BabySitter
Sends a String to the client.
send(String) - Method in class cs101.net.Client
Use this method to send a String to the server.
sendToAllExcept(String, BabySitter) - Method in class cs101.net.Server
Sends the string passed in to all clients accept the one represented by the BabySitter passed in.
server - Variable in class cs101.net.BabySitter
Server this client is connected to
setBoardPanel(BoardPanel) - Method in class breakout.Board
Sets the BoardPanel for this Board.
setLocation(Point) - Method in class breakout.BasicBall
Sets the location of this ball to (p.x, p.y).
setLocation(Point) - Method in class breakout.BasicBreakoutComponent
Sets the location of this BasicBreakoutComponent.
setLocation(Point) - Method in class breakout.BasicBrick
Sets the location of this BasicBrick.
setLocation(Point) - Method in class breakout.BasicPaddle
Inactive.
setLocation(Point) - Method in class breakout.BasicWall
(unused; BasicWall manages its own location)
setLocation(Point) - Method in interface breakout.BreakoutComponent
Provides a way to set the location of this BreakoutComponent.
setSleepMinInterval(long) - Method in class cs101.lang.AnimatorThread
Gives access to this AnimatorThread's sleep minimum.
setSleepRange(long) - Method in class cs101.lang.AnimatorThread
This controls the possible range of durations for AnimatorThread to sleep, i.e., the possible time between actions for the Animate that it animates.
setStringHandler(StringHandler) - Method in class cs101.net.Client
Override default string handling behavior by providing a new StringHandler.
setText(String) - Method in class cs101.awt.DisplayField
Changes the text of the DisplayField to the string passed.
setValues(String[]) - Method in class cs101.awt.QueryDialog
 
setupGUI() - Method in class cs101.util.semaphore.GBS
Does all of the graphical setup on this level then calls the superclasses method to finish the setup.
setupGUI() - Method in class cs101.util.semaphore.GCS
Does all of the graphical setup on this level then calls the superclasses method to finish the setup.
setupGUI() - Method in class cs101.util.semaphore.GraphicalSemaphore
This method should be Called by the subclass after it's part of the gui setup is complete.
showStatus() - Method in class cs101.util.semaphore.GBS
Prints out the current state of the semaphore.
showStatus() - Method in class cs101.util.semaphore.GCS
Prints out the current state of the semaphore.
showStatus() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
shutdown() - Method in class cs101.awt.DefaultGameFrame
Helper method for what to do when this window goes away....
sign(int) - Static method in class cs101.util.MoreMath
Returns 1 if the input is positive, -1 if it is negative, and 0 otherwise.
size - Variable in class breakout.BasicBall
The size of this BasicBall.
size - Variable in class breakout.BasicBreakoutComponent
The size of this BasicBreakoutComponent.
size - Variable in class breakout.BasicBrick
The size of this BasicBrick.
size - Variable in class breakout.BasicPaddle
The size of this BasicPaddle.
size - Variable in class breakout.BasicWall
The size of this BasicWall.
size() - Method in class cs101.util.queue.DefaultQueue
Returns the number of elements in this.
size() - Method in interface cs101.util.queue.Queue
Returns the number of elements in this.
sock - Variable in class cs101.net.BabySitter
Client connection
sock - Variable in class cs101.net.Client
Net connection
sock - Variable in class cs101.net.Server
the server socket, i.e., the listener
spawnBabySitter(Socket) - Method in class cs101.net.Server
Creates a BabySitter with the client socket passed and adds it to the list of BabySitters.
spirit - Variable in class cs101.net.BabySitter
Animacy that runs this object
spirit - Variable in class cs101.net.Client
Animates this object
spirit - Variable in class cs101.net.DefaultReadLoop
Animates this object.
spirit - Variable in class cs101.net.Server
animating Thread
spirit - Variable in class cs101.util.AnimateObject
The animacy that makes this object go.
square(int) - Static method in class cs101.util.MoreMath
Returns the square of the input.
start() - Method in class breakout.World
Starts the game, and disables the autolayout "add" method in Board.
start() - Method in class cs101.lang.AnimatorThread
Begin execution.
start() - Method in class cs101.util.AnimateObject
Invocation of this method begins this object's autonomous execution.
start() - Method in class cs101.util.StopWatch
Start the stopwatch.
start() - Method in interface cs101.util.gamecontrol.Startable
 
startExecution() - Method in class cs101.lang.AnimatorThread
Begin execution.
state - Variable in class cs101.awt.ColorField
determines the color of the field
stop() - Method in class breakout.World
Stops the game.
stop() - Method in class cs101.net.BabySitter
Should only be called by Server.
stop() - Method in class cs101.util.StopWatch
Stop the stopwatch.
stop() - Method in interface cs101.util.gamecontrol.Stoppable
 
stopExecution() - Method in class cs101.lang.AnimatorThread
Terminates execution.
stringHandler - Variable in class cs101.net.Client
Handles input from net
stringToColor(String) - Static method in class cs101.util.Coerce
Given a string representing the name of one of java's built-in colors, returns the corresponding Color object.
stringToDouble(String) - Static method in class cs101.util.Coerce
Given a string representing a floating point number, returns the corresponding (unwrapped) double.
suspendExecution() - Method in class cs101.lang.AnimatorThread
Temporarily suspends execution.

T

TICK_LENGTH - Static variable in class breakout.World
Time to sleep at the end of each tick
text - Variable in class cs101.awt.DisplayField
the string to be displayed
toString() - Method in class cs101.util.queue.DefaultQueue
 
transifyCursor() - Method in class breakout.BoardPanel
Switches the cursor for this BoardPanel between default and "hidden"
trueColor - Variable in class cs101.awt.ColorField
color when state == true

U

unCapitalize(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with the first character replaced by its lower case equivalent.
unpause() - Method in interface cs101.util.gamecontrol.Pausable
 
update() - Method in class breakout.BasicBall
Called by World every tick; sets the new location of the ball, as affected by velocity.
update() - Method in class breakout.BasicBreakoutComponent
Called by World every tick; empty method.
update() - Method in class breakout.BasicBrick
Called by World every tick; by default does nothing.
update() - Method in class breakout.BasicPaddle
Called by World every tick; does nothing.
update() - Method in class breakout.BasicWall
Called by World every tick; does nothing.
update() - Method in interface breakout.BreakoutComponent
Called by World at the beginning of evey tick on all BreakoutComponents in a Board.

V

velvect - Variable in class breakout.BasicBall
The velocity vector of this BasicBall.

W

WARNING - Static variable in class cs101.xml.SimpleErrorHandler
 
WEST - Static variable in class breakout.BasicWall
Creates a west wall(left side).
Wall - interface breakout.Wall.
Defines the contract for objects that act as Walls in the game.
Wire - interface cs101.net.Wire.
A generic interface for stream-like things that can read and write objects.
World - class breakout.World.
World controls Breakout's clock, and manages the different phases of calculation that occur during each unit of time.
World(Board, BreakoutUI) - Constructor for class breakout.World
Creates a new World with the specified Board and BreakoutUI.
warning(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
westmost - Variable in class breakout.BasicPaddle
Leftmost point able to be occupied by this BasicPaddle.
win() - Method in class breakout.BreakoutUI
Winning the game.
wordP(String) - Static method in class cs101.util.StringUtils
Determines whether its argument is a word or a delimiter as defined by a java.util.StringTokenizer when initialized with StringUtils.nonWordChars as a delimiter string.
writeObject(Object) - Method in class cs101.net.ClientWire
Use this method to write an Object to the Wire.
writeObject(Object) - Method in class cs101.net.ServerWire
Use this method to write an Object to the Wire.
writeObject(Object) - Method in interface cs101.net.Wire
Write an object.
writeOutput(String) - Method in interface cs101.io.connection.OutputConnection
 

A B C D E F G H I K L M N O P Q R S T U V W
Breakout Problem Set Javadocs