- game - package game
-
- game - Variable in class game.Board
-
The game for this board.
- Game - Class in game
-
Class Game is the controlling class for the ShippingGame Project.
- Game(String, File) - Constructor for class game.Game
-
Constructor: a game instance with a set Board that is read from File f, using
the manager whose class name is managerClassname.
- Game(String, File, int) - Constructor for class game.Game
-
Constructor: a game instance with a set Board that is read from File f, using
the manager whose class name is managerClassname, and uses the given frame rate
- Game(String, long) - Constructor for class game.Game
-
Constructor: a game instance with a random board from seed seed using
the manager whose class name is managerClassname.
- Game(String, long, int) - Constructor for class game.Game
-
Constructor: a game instance with a random board from seed seed using
the manager whose class name is managerClassname, and uses the given frame rate.
- game - Variable in class game.GameRunner.GameScore
-
the game.
- game - Variable in class game.Truck
-
The game to which this truck belongs.
- gameFile(String) - Static method in class game.Game
-
Return a file for the string board filename.
- GameRunner - Class in game
-
Allows for the running of many games, monitoring them and returning.
- GameRunner(String, boolean, boolean) - Constructor for class game.GameRunner
-
Create a new GameRunner to run a set of games using userManagerClassname.
- GameRunner.GameScore - Class in game
-
A holder for a run on a single game.
- GameRunner.GameScore(Game, int, GameRunner.GameStatus, String) - Constructor for class game.GameRunner.GameScore
-
Constructor: an instance for game g with score s, status status,
and message m.
- GameRunner.GameStatus - Enum in game
-
Different results of a game.
- getAIntersection() - Method in class game.Board
-
Return a 2x1 array of edges that have lines that intersect.
- getBoard() - Method in interface game.BoardElement
-
Return the board to which this BoardElement.
- getBoard() - Method in class game.Edge
-
Return the Board to which this Edge belongs.
- getBoard() - Method in class game.Game
-
Return the board of this game.
- getBoard() - Method in class game.Manager
-
Return the Board for this Game.
- getBoard() - Method in class game.Node
-
Return the board on which this Node belongs.
- getBoard() - Method in class game.Parcel
-
Return the board on which this Parcel belongs.
- getBoard() - Method in class game.Truck
-
Return the board to which this Truck belongs.
- getC1() - Method in class gui.Line
-
Return the first end of this line.
- getC2() - Method in class gui.Line
-
Return the second end of this line.
- getCircle() - Method in class game.Node
-
Return the Circle that represents this node graphically.
- getCircle() - Method in class game.Parcel
-
Return the circle that represents this Parcel on the GUI
- getCircle() - Method in class game.Truck
-
Return the circle that represents this truck when it is drawn
- getColor() - Method in interface game.Colorable
-
Return the color of this object.
- getColor() - Method in class game.Edge
-
Return the color of this Edge, as it is painted on the GUI.
- getColor() - Method in class game.Node
-
Return the color of this Node.
- getColor() - Method in class game.Parcel
-
Return the color of this Parcel.
- getColor(String) - Static method in class game.Score
-
Return the color represented by s (its toString format),
that color's toString() output.
- getColor() - Method in class game.Truck
-
Return the Color of this Truck.
- getColor() - Method in class gui.Circle
-
Return the color of this circle.
- getColor() - Method in class gui.Line
-
Return the current color of this line, which is determined by the color policy.
- getColorPolicy() - Static method in class gui.Line
-
Return the color policy for painting roads.
- getComingFrom() - Method in class game.Truck
-
Return the node this truck is coming from, the rear exit of the edge it
is currently on.
- getConnect(Node) - Method in class game.Node
-
Return the road that this node shares with node other (null if not connected).
- getDiameter() - Method in class gui.Circle
-
Return the diameter field of this circle.
- getDistance(Circle) - Method in class gui.Circle
-
Return the distance between the centers of this Circle and c.
- getDrawingPanel() - Method in class gui.GUI
-
Return the panel on which the map is drawn.
- getDropoffCost() - Method in class game.Board
-
Return the one-time cost incurred when a truck drops off a parcel.
- getEdges() - Method in class game.Board
-
Return the set of Edges in this board.
- getEdges() - Method in class game.Manager
-
Return the Edges in this Game,
- getEdgesSize() - Method in class game.Board
-
Return the number of Edges in this board.
- getExits() - Method in class game.Edge
-
Return a copy of the exits of this line, a new length 2 array of Nodes.
- getExits() - Method in class game.Node
-
Return a copy of the set of edges leaving this node.
- getExitsSize() - Method in class game.Node
-
Return the number of exits from this node.
- getFile() - Method in class game.Game
-
Return the file from which this game was created
(null if created randomly and thus not loaded).
- getFirstExit() - Method in class game.Edge
-
Return the first exit of this Edge.
- getFrame() - Method in class game.Game
-
Return the duration of a frame for this game, in milliseconds
- getGame() - Method in class game.Manager
-
Return the Game to which this Manager belongs.
- getGoingTo() - Method in class game.Truck
-
Return the Truck's eventual destination; the Node this Truck will be at
when the current travel queue is empty.
- getGUI() - Method in class game.Game
-
Return the GUI that represents this game.
- getLine() - Method in class game.Edge
-
Return the Line that represents this edge graphically.
- getLineHeight() - Method in class gui.Line
-
Return the height (y diff) of the line.
- getLineWidth() - Method in class gui.Line
-
Return the width (x diff) of the line.
- getLoad() - Method in class game.Truck
-
Return the parcel this Truck is carrying.
- getLocation() - Method in class game.Parcel
-
Return the current location for this Parcel
- getLocation() - Method in class game.Truck
-
Return the Truck's current location.
- getManager() - Method in class game.Game
-
Return the manager for this Game.
- getManager() - Method in class game.Truck
-
Return the manager that is managing this truck.
- getManagerClassname() - Method in class game.Game
-
Return a String of the class name used to load the manager.
- getMappedName() - Method in interface game.BoardElement
-
The Name this Object has when drawn on the board
- getMappedName() - Method in class game.Edge
-
Return a String to print when this object is drawn on a GUI
- getMappedName() - Method in class game.Node
-
Return the string that is mapped when this Node is drawn.
- getMappedName() - Method in class game.Parcel
-
Return an empty string --Parcels do not have mapped names.
- getMappedName() - Method in class game.Truck
-
Return the name of this truck to display on the GUI.
- getMaxLength() - Method in class game.Board
-
Return the maximum length of all edges on the board.
- getMid() - Method in class gui.Line
-
Return the midpoint of this line.
- getMinLength() - Method in class game.Board
-
Return the minimum length of all edges on the board.
- getNeighbors() - Method in class game.Node
-
Return a map of neighboring nodes to the lengths of the edges connecting
them to this Node.
- getNode(String) - Method in class game.Board
-
Return the Node named name
in this board if it exists, null otherwise.
- getNodes() - Method in class game.Board
-
Return a HashSet containing all the Nodes in this board.
- getNodes() - Method in class game.Manager
-
Return the Nodes in this Game.
- getNodesSize() - Method in class game.Board
-
Return the number of Nodes in this board
- getOnColorMultiplier() - Method in class game.Board
-
Return the score multiplier of successfully delivering a parcel using the
correct color of Truck.
- getOther(Node) - Method in class game.Edge
-
Return the other exit that is not equal to n.
- getParcels() - Method in class game.Board
-
Return the parcels in this board that have not yet been delivered.
- getParcels() - Method in class game.Manager
-
Return the undelivered Parcels in this Game.
- getParcels() - Method in class game.Node
-
Return a copy of set of parcels on this Node (prevents editing the set)
- getPayoff() - Method in class game.Board
-
Return the value of successfully delivering one parcel to its final destination.
- getPickupCost() - Method in class game.Board
-
Return the one-time cost incurred when a truck picks up a parcel.
- getPoint() - Method in class gui.Circle
-
Return the coordinates of this circle as a Point.
- getPreferredSize() - Method in class gui.Circle
-
Return a bounding square (of size diameter * diameter) of the circle.
- getPreferredSize() - Method in class gui.Line
-
Return the size of the line, as a rectangular bounding box (x2 - x1, y2 - y1).
- getRandomColor() - Static method in class game.Score
-
Return a random Color from Score.Color.
- getRandomEdge() - Method in class game.Board
-
Return a random edge in this board
- getRandomExit() - Method in class game.Node
-
Return a random edge from leaving this node (its exists)
- getRandomNode() - Method in class game.Board
-
Return a random node in this board
- getRandomParcel() - Method in class game.Node
-
Return a random parcel at this node.
- getRelativeX() - Method in interface game.BoardElement
-
Return the x coordinate of this Object's string drawing relative to the object.
- getRelativeX() - Method in class game.Edge
-
Return the x location the boardped name of this Edge relative to the top
left corner of the line
- getRelativeX() - Method in class game.Node
-
Return the x location that this Node's string is mapped to
relative to its top right coordinate.
- getRelativeX() - Method in class game.Parcel
-
Return 0, since Parcels have no mapped name.
- getRelativeX() - Method in class game.Truck
-
Return the location of this' name relative to its position on the GUI.
- getRelativeY() - Method in interface game.BoardElement
-
Return the y coordinate of this Object's string drawing relative to the object.
- getRelativeY() - Method in class game.Edge
-
Returns the y location the boardped name of this Edge relative to the top
left corner of the line
- getRelativeY() - Method in class game.Node
-
Return the y location that this Node's string is mapped to
relative to its top right coordinate.
- getRelativeY() - Method in class game.Parcel
-
- getRelativeY() - Method in class game.Truck
-
Return the location of this' name relative to its position on the GUI.
- getScore() - Method in class game.Manager
-
Return the current value of the score.
- getScore() - Method in class game.Score
-
Return the current score.
- getScoreValue() - Method in class game.Manager
-
Return the current value of the score.
- getSecondExit() - Method in class game.Edge
-
Return the second exit of this Edge.
- getSeed() - Method in class game.Game
-
Return the seed from which this game was generated from (-1 if this game
was loaded from a non-randomly generated file.)
- getSpeed() - Method in class game.Truck
-
Return the speed this truck will/is traveling.
- getStatus() - Method in class game.Truck
-
Return the current status of this Truck, either TRAVELING or WAITING.
- getThrownThrowable() - Method in class game.Game
-
Return the exception thrown during the running of this game.
- getTravelingAlong() - Method in class game.Truck
-
Return the edge this Truck is traveling along.
- getTravelingTo() - Method in class game.Truck
-
Return the Truck's current destination.
- getTruckDepot() - Method in class game.Board
-
Return the unique Truck Depot Node in this board, to which
Trucks must return before the game can be ended.
- getTruckName() - Method in class game.Truck
-
Return the name of this Truck.
- getTrucks() - Method in class game.Board
-
Return the trucks on this board.
- getTrucks() - Method in class game.Manager
-
Return the Trucks in this Game.
- getTrucksOnDepot() - Method in class game.Board
-
Return the alive trucks on this board that are currently on Truck Depot node
(an empty arrayList if there are no such trucks).
- getUpdateMessage() - Method in class game.Game
-
Return the current update message shown on the GUI.
- getUpdateMessage() - Method in class gui.GUI
-
Return the current update message shown on the GUI.
- getUserData() - Method in class game.Edge
-
Return the userData stored in this edge.
- getUserData() - Method in class game.Node
-
Return the userData stored in this Node.
- getUserData() - Method in class game.Parcel
-
Return the userData stored in this Node (may be null).
- getUserData() - Method in class game.Truck
-
Return the userData stored in this Node.
- getUserData() - Method in interface game.UserData
-
Return the object the User has stored in this.
- getVectorTo(Circle) - Method in class gui.Circle
-
Return the vector from the center of this circle to the center of c.
- getWaitCost() - Method in class game.Board
-
The score cost of idling for a frame, per truck.
- getX() - Method in class game.Vector
-
Return this vector's x component.
- getX1() - Method in class gui.Circle
-
Return the x coordinate of this circle.
- getX1() - Method in class gui.Line
-
Return the x coordinate of the first end of this line.
- getX2() - Method in class gui.Line
-
Return the x coordinate of the second end of this line.
- getXMid() - Method in class gui.Line
-
Return the x value of the midpoint of this line.
- getY() - Method in class game.Vector
-
Return this double's y component.
- getY1() - Method in class gui.Circle
-
Return the y coordinate of this circle.
- getY1() - Method in class gui.Line
-
Return the y coordinate of the first end of this line.
- getY2() - Method in class gui.Line
-
Return the y coordinate of the second end of this line.
- getYMid() - Method in class gui.Line
-
Return the y value of the midpoint of this line.
- giveDebugOutput - Static variable in class game.HeapTester
-
- GRADIENT_LONG_COLOR - Static variable in class gui.Line
-
Color of the lines representing the longest edges, if DISTANCE_GRADIENT is selected
- GRADIENT_SHORT_COLOR - Static variable in class gui.Line
-
Color of the lines representing the shortest edges, if DISTANCE_GRADIENT is selected
- gui - package gui
-
- GUI - Class in gui
-
An instance is the JFrame that shows the game.
- GUI(Game) - Constructor for class gui.GUI
-
Constructor: a window to show a game g.