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

A

add(double, double) - Method in class fi.utu.cs.physics.Tuple2
Adds values to the elements.
add(double, double) - Method in class fi.utu.cs.physics.Vector2
Adds values to the components.
add(double, double) - Method in class fi.utu.cs.physics.Point2
Adds values to the coordinates.
add(Point2) - Method in class fi.utu.cs.physics.Point2
Adds the coordinates of other to the coordinates.
add(Tuple2) - Method in class fi.utu.cs.physics.Tuple2
Adds the values of other to the elements.
add(Vector2) - Method in class fi.utu.cs.physics.Vector2
Adds the components of other to the components.
addBody(Body) - Method in class fi.utu.cs.physics.Universe
Adds the body b to the universe, which is also set to be the owner of the body.
addBoundary(Boundary) - Method in class fi.utu.cs.physics.Universe
Adds the boundary b to the universe, which is also set to be the owner of the body.
addCollisionNotification(Class) - Method in class fi.utu.cs.physics.Particle
Adds the class c to the collision notifications.
addPlayer(int) - Method in class fi.utu.cs.hockey.Team
Creates, returns and adds a player to the position p.
advance(double) - Method in class fi.utu.cs.hockey.Player
Advances the time dt seconds and updates the position, velocity, and rotation of the player accordingly.
advance(double) - Method in class fi.utu.cs.physics.MomentaryBody
Advances the time dt seconds and updates the position, velocity and lifetime of the body accordingly.
advance(double) - Method in class fi.utu.cs.physics.Body
Advances the time dt seconds and updates the position and velocity of the body accordingly.
advance(double) - Method in class fi.utu.cs.physics.Universe
Advances the time dt seconds and updates its bodies accordingly.
AI - class fi.utu.cs.hockey.ai.AI.
AI for a hockey player.
AI.PlayerIterator - class fi.utu.cs.hockey.ai.AI.PlayerIterator.
A class for iterating player positions.
AI() - Constructor for class fi.utu.cs.hockey.ai.AI
Creates a player AI
AI(String, String, int, int, Color, Color) - Constructor for class fi.utu.cs.hockey.ai.AI
Creates a player AI with name s, team name t, number n, position p, helmet color h, and jersey color j.
AIsHockeyClient - class fi.utu.cs.hockey.AIsHockeyClient.
A hockey game client.
AIsHockeyClient(InputStream) - Constructor for class fi.utu.cs.hockey.AIsHockeyClient
Constructs a hockey client based on the initialization data from the stream in.
AIsHockeyServer - class fi.utu.cs.hockey.AIsHockeyServer.
A hockey game server.
AIsHockeyServer(InputStream) - Constructor for class fi.utu.cs.hockey.AIsHockeyServer
Constructs a hockey game based on the initialization data from the stream in.
angle(Vector2) - Method in class fi.utu.cs.physics.Vector2
Returns the angle between this vector and the vector other.

B

BLUE_LINE_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the blue line.
BLUE_LINE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the blue line.
BlueLine - class fi.utu.cs.hockey.rink.BlueLine.
A blue line.
BlueLine(boolean) - Constructor for class fi.utu.cs.hockey.rink.BlueLine
A blue line.
BOARD_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the corner boards.
BOARD_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the corner boards.
bodies() - Method in class fi.utu.cs.physics.Universe
Returns an unmodifiable (i.e., "read-only") list of the bodies in the universe.
Body - class fi.utu.cs.physics.Body.
A moving physical body with mass and dimensionality.
Body(double, double) - Constructor for class fi.utu.cs.physics.Body
Constructs a body with the mass m and the radius r.
Body(double, double, Point2) - Constructor for class fi.utu.cs.physics.Body
Constructs a body with the mass m, the radius r and the position p.
Body(double, double, Point2, Vector2) - Constructor for class fi.utu.cs.physics.Body
Constructs a body with the mass m, the radius r, the position p and the velocity v.
Body(double, double, Point2, Vector2, Vector2) - Constructor for class fi.utu.cs.physics.Body
Constructs a body with the mass m, the radius r, the position p, the velocity v and the acceleration a.
bodySize() - Method in class fi.utu.cs.physics.Universe
Returns the number of bodies in the universe.
bodySize(Class) - Method in class fi.utu.cs.physics.Universe
Returns the number of bodies of the type t in the universe.
BOTH - Static variable in class fi.utu.cs.physics.Universe.CollisionNotification
Both of the counterparts.
boundaries() - Method in class fi.utu.cs.physics.Universe
Returns an unmodifiable (i.e., "read-only") list of the boundaries in the universe.
Boundary - class fi.utu.cs.physics.Boundary.
A static physical boundary which can be open or closed.
Boundary() - Constructor for class fi.utu.cs.physics.Boundary
Constructs a boundary that has no owner.
BoundaryCurve - class fi.utu.cs.physics.BoundaryCurve.
A boundary curve.
BoundaryCurve(double, double, double) - Constructor for class fi.utu.cs.physics.BoundaryCurve
Constructs a boundary circle with a center in point (px, py) and a radius r
BoundaryCurve(double, double, double, double, double) - Constructor for class fi.utu.cs.physics.BoundaryCurve
Constructs a boundary curve with a center in point (px, py), a radius r, a start angle a, and an angular extent e.
BoundaryCurve(Point2, double) - Constructor for class fi.utu.cs.physics.BoundaryCurve
Constructs a boundary circle with a center in point p and a radius r
BoundaryCurve(Point2, double, double, double) - Constructor for class fi.utu.cs.physics.BoundaryCurve
Constructs a boundary curve with a center in point p, a radius r, a start angle a, and an angular extent e.
boundaryEpsilon - Static variable in class fi.utu.cs.physics.Boundary
An epsilon comparator for boundary calculations.
BoundaryLine - class fi.utu.cs.physics.BoundaryLine.
A boundary line.
BoundaryLine(double, double, double, double) - Constructor for class fi.utu.cs.physics.BoundaryLine
Constructs a boundary line from point (px1, py1) to point (px2, py2).
BoundaryLine(Point2, Point2) - Constructor for class fi.utu.cs.physics.BoundaryLine
Constructs a boundary line from point p1 to point p2.
boundarySize() - Method in class fi.utu.cs.physics.Universe
Returns the number of boundaries in the universe.
boundarySize(Class) - Method in class fi.utu.cs.physics.Universe
Returns the number of boundaries of the type t in the universe.
brake(double) - Method in class fi.utu.cs.hockey.Player
Brakes or dashes the player backward with the proportional power of p.
brake(double) - Method in interface fi.utu.cs.hockey.net.Communication
Brakes (or dashes backwards) the player with the relative power p, where p is from the range [0.0, 1.0].
brake(double) - Method in class fi.utu.cs.hockey.net.Client
 

C

canReach(Puck) - Method in class fi.utu.cs.hockey.Player
Returns true, if player can reach the puck p.
CENTER - Static variable in interface fi.utu.cs.hockey.Position
Center.
CENTER_CIRCLE_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the center circle.
CENTER_CIRCLE_RADIUS - Static variable in interface fi.utu.cs.hockey.ai.Constants
Radius of the center circle.
CENTER_CIRCLE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the center circle.
CENTER_ICE_SPOT_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the center spot.
CENTER_LINE - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of the center line.
CENTER_LINE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the center line.
CENTER_SPOT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at the center spot.
CENTER_SPOT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at the center spot.
CenterCircle - class fi.utu.cs.hockey.rink.CenterCircle.
A center circle.
CenterCircle() - Constructor for class fi.utu.cs.hockey.rink.CenterCircle
A center circle.
CenterIceSpot - class fi.utu.cs.hockey.rink.CenterIceSpot.
A center ice spot.
CenterIceSpot() - Constructor for class fi.utu.cs.hockey.rink.CenterIceSpot
A face off spot.
CenterLine - class fi.utu.cs.hockey.rink.CenterLine.
A center line.
CenterLine() - Constructor for class fi.utu.cs.hockey.rink.CenterLine
A center line.
Circle - class fi.utu.cs.hockey.rink.Circle.
A circle.
Circle(double, double, double, double, Color) - Constructor for class fi.utu.cs.hockey.rink.Circle
A circle with a center at the point (px, py) radius r, width w and color c.
clearCollisionNotifications() - Method in class fi.utu.cs.physics.Particle
Removes all collision notifications.
clearInelasticCollision(Class, Class) - Method in class fi.utu.cs.physics.Universe
Sets the collisions between instances of the classes bc and pc to be elastic.
Client - class fi.utu.cs.hockey.net.Client.
A hockey player client.
Client() - Constructor for class fi.utu.cs.hockey.net.Client
Creates a player client.
Client(String, String, int, int, Color, Color) - Constructor for class fi.utu.cs.hockey.net.Client
Creates a player client with name s, team name t, number n, position p, helmet color h, and jersey color j.
clone() - Method in class fi.utu.cs.physics.Tuple2
Creates and returns a copy of this tuple.
COLOR_BLUE - Static variable in class fi.utu.cs.hockey.rink.Rink
The blue color used in the center ice spot, center circle, and blue lines.
COLOR_BOARD - Static variable in class fi.utu.cs.hockey.rink.Rink
The color used in the boards.
COLOR_ICE - Static variable in class fi.utu.cs.hockey.rink.Rink
The color used in the ice.
COLOR_LIGHT_BLUE - Static variable in class fi.utu.cs.hockey.rink.Rink
The light blue color used in the goal crease area.
COLOR_RED - Static variable in class fi.utu.cs.hockey.rink.Rink
The red color used in the center line, goal lines, face off cirles, face off spots, goal crease lines, and goal posts.
color() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a Color object that is used for drawing the outline.
color() - Method in interface fi.utu.cs.appearance.Shapable
Returns a Color object that is used for drawing the outline.
color() - Method in class fi.utu.cs.hockey.Player
 
color() - Method in class fi.utu.cs.hockey.Puck
 
color() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
color() - Method in class fi.utu.cs.hockey.rink.Circle
 
color() - Method in class fi.utu.cs.hockey.rink.Goal
 
color() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
color() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
color() - Method in class fi.utu.cs.hockey.rink.Line
 
color() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
color() - Method in class fi.utu.cs.hockey.rink.Spot
 
color() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
Communication - interface fi.utu.cs.hockey.net.Communication.
Communication between a hockey player client and server from the client's perspective.
compare(double, double) - Method in class fi.utu.cs.physics.EpsilonComparator
Compares v1 and v2 for order.
compare(Object, Object) - Method in class fi.utu.cs.physics.EpsilonComparator
Compares the two arguments for order.
compareTo(Object) - Method in class fi.utu.cs.physics.Vector2
Returns a negative integer, zero, or a positive integer as the length of this vector is less than, equal to, or greater than the length of vector o.
connect(String, int, int, String, int) - Method in class fi.utu.cs.hockey.net.Client
Connects to a game server.
Constants - interface fi.utu.cs.hockey.ai.Constants.
Constants of the player, the puck, and the rink.
CornerBoard - class fi.utu.cs.hockey.rink.CornerBoard.
A corner board.
CornerBoard(boolean, boolean) - Constructor for class fi.utu.cs.hockey.rink.CornerBoard
A corner board.
counterpart(Class) - Method in class fi.utu.cs.physics.Universe.CollisionNotification
Returns which of the counterparts is of the type t.

D

dash(double) - Method in class fi.utu.cs.hockey.Player
Dashes the player forward with the proportional power of p.
dash(double) - Method in interface fi.utu.cs.hockey.net.Communication
Dashes the player with the relative power p, where p is from the range [0.0, 1.0].
dash(double) - Method in class fi.utu.cs.hockey.net.Client
 
DIAMETER - Static variable in class fi.utu.cs.hockey.Puck
Diameter of the puck.
die() - Method in class fi.utu.cs.physics.MomentaryBody
Realizes the death of this body.

E

elasticCollision(Body) - Method in class fi.utu.cs.physics.Particle
Realizes an elastic collision for the particle and the body other.
elasticCollision(Body) - Method in class fi.utu.cs.physics.BoundaryCurve
Realizes an elastic collision for the static boundary and the body other.
elasticCollision(Body) - Method in class fi.utu.cs.physics.BoundaryLine
Realizes an elastic collision for the static boundary and the body other.
elasticCollision(Body) - Method in class fi.utu.cs.physics.Body
Realizes an elastic collision for both the body and the body other.
EndBoard - class fi.utu.cs.hockey.rink.EndBoard.
An end board.
EndBoard(boolean) - Constructor for class fi.utu.cs.hockey.rink.EndBoard
An end board.
ENDZONE_FACE_OFF_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the endzone face off spot.
EpsilonComparator - class fi.utu.cs.physics.EpsilonComparator.
A rounding comparator for double-precision floating point values.
EpsilonComparator(double) - Constructor for class fi.utu.cs.physics.EpsilonComparator
Creates a comparator with the epsilon value e.
equals(Object) - Method in class fi.utu.cs.physics.Tuple2
Returns true if o is of the type Tuple2 and the elements of o are equal to the corresponding elements in this tuple.

F

FACE_OFF_CIRCLE_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the face off circle.
FACE_OFF_CIRCLE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the face off circle.
FACE_OFF_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center to the face off spot.
FACE_OFF_SPOT_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the face off spot.
FaceOff - interface fi.utu.cs.hockey.rink.FaceOff.
Faceoff spots.
FACEOFF_CENTER - Static variable in interface fi.utu.cs.hockey.ai.Constants
X-coordinate of the center faceoff spot.
FACEOFF_CIRCLE_RADIUS - Static variable in interface fi.utu.cs.hockey.ai.Constants
Radius of a faceoff circle.
FACEOFF_LEFT - Static variable in interface fi.utu.cs.hockey.ai.Constants
X-coordinate of a left side faceoff spot.
FACEOFF_RIGHT - Static variable in interface fi.utu.cs.hockey.ai.Constants
X-coordinate of a right side faceoff spot.
faceoff() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the place of the faceoff.
faceoff() - Method in class fi.utu.cs.hockey.net.Client
 
faceoff(int) - Method in class fi.utu.cs.hockey.Team
Moves the players of the team to faceoff locations when the faceoff is in the spot s.
faceoff(int) - Method in class fi.utu.cs.hockey.Puck
Drops the puck at faceoff spot s.
FaceOffCircle - class fi.utu.cs.hockey.rink.FaceOffCircle.
A face off circle.
FaceOffCircle(boolean, boolean) - Constructor for class fi.utu.cs.hockey.rink.FaceOffCircle
A face off circle.
FaceOffSpot - class fi.utu.cs.hockey.rink.FaceOffSpot.
A face off spot.
FaceOffSpot(boolean, boolean, boolean) - Constructor for class fi.utu.cs.hockey.rink.FaceOffSpot
A face off spot.
fi.utu.cs.appearance - package fi.utu.cs.appearance
Classes for constructing Graphics2D views.
fi.utu.cs.hockey - package fi.utu.cs.hockey
Classes for the hockey game components.
fi.utu.cs.hockey.ai - package fi.utu.cs.hockey.ai
Classes for constructing AIs for the hockey players.
fi.utu.cs.hockey.net - package fi.utu.cs.hockey.net
Classes for client/server communication over a network.
fi.utu.cs.hockey.rink - package fi.utu.cs.hockey.rink
Classes for the hockey rink characteristics.
fi.utu.cs.physics - package fi.utu.cs.physics
Classes for Newtonian particle physics.
finalize() - Method in class fi.utu.cs.hockey.net.Client
Cleanup for the garbage collector.
FINITE - Static variable in class fi.utu.cs.physics.Universe
A finite universe which limits the position of the bodies.
FIRST - Static variable in class fi.utu.cs.physics.Universe.CollisionNotification
The first counterpart.
firstElementSign() - Method in class fi.utu.cs.physics.Tuple2
Returns the sign of the first element.
Friction - class fi.utu.cs.physics.Friction.
A pair of static and kinetic friction coefficients.
Friction(double, double) - Constructor for class fi.utu.cs.physics.Friction
Creates a new friction object with static friction coefficient s and kinetic friction coefficient k.
FrictionalBody - class fi.utu.cs.physics.FrictionalBody.
A moving physical body with mass and dimensionality.
FrictionalBody(double, double, Friction) - Constructor for class fi.utu.cs.physics.FrictionalBody
Constructs a body with the mass m, the radius r and friction f.
FrictionalBody(double, double, Point2, Friction) - Constructor for class fi.utu.cs.physics.FrictionalBody
Constructs a body with the mass m, the radius r, the position p and friction f.
FrictionalBody(double, double, Point2, Vector2, Friction) - Constructor for class fi.utu.cs.physics.FrictionalBody
Constructs a body with the mass m, the radius r, the position p, the velocity v and friction f.
FrictionalBody(double, double, Point2, Vector2, Vector2, Friction) - Constructor for class fi.utu.cs.physics.FrictionalBody
Constructs a body with the mass m, the radius r, the position p, the velocity v, the acceleration a and friction f.
futurePosition(double) - Method in class fi.utu.cs.physics.Body
Returns the position of the body after seconds.
futureVelocity(double) - Method in class fi.utu.cs.physics.FrictionalBody
Returns the velocity of the body after seconds.
futureVelocity(double) - Method in class fi.utu.cs.physics.OrientedBody
Returns the velocity of the body after seconds.
futureVelocity(double) - Method in class fi.utu.cs.physics.Body
Returns the velocity of the body after seconds.

G

Game - class fi.utu.cs.hockey.Game.
A hockey game.
getAcceleration() - Method in class fi.utu.cs.physics.Body
Returns the acceleration of the body.
getAccelerationOfGravity() - Method in class fi.utu.cs.physics.Universe
Returns the acceleration of gravity of this universe.
getAngularExtent() - Method in class fi.utu.cs.physics.BoundaryCurve
Returns the angular extent of the boundary curve.
getBody() - Method in class fi.utu.cs.physics.Universe.CollisionNotification
Returns the body involved in the collision.
getCenter() - Method in class fi.utu.cs.physics.BoundaryCurve
Returns the center of the boundary curve.
getCenter() - Method in class fi.utu.cs.physics.Universe
Returns the center of the universe or null if the universe is infinite.
getCounterpart(int) - Method in class fi.utu.cs.physics.Universe.CollisionNotification
Deprecated. As of version 1.1, replaced by Universe.CollisionNotification.getParticle(int).
getDeltaX() - Method in class fi.utu.cs.physics.Vector2
Returns the horizontal component.
getDeltaY() - Method in class fi.utu.cs.physics.Vector2
Returns the vertical component.
getEndPoints() - Method in class fi.utu.cs.physics.BoundaryLine
Returns a two-element array comprising the end points.
getEpsilon() - Method in class fi.utu.cs.physics.EpsilonComparator
Returns the epsilon.
getFaceoffSpot() - Method in class fi.utu.cs.hockey.Game
Returns the faceoff spot.
getFirstElement() - Method in class fi.utu.cs.physics.Tuple2
Returns the first element.
getFriction() - Method in class fi.utu.cs.physics.FrictionalBody
Returns the friction of the body.
getHelmetColor() - Method in class fi.utu.cs.hockey.Player
Returns the player's helmet color.
getHelmetColor() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the color of the player's helmet.
getHelmetColor() - Method in class fi.utu.cs.hockey.net.Client
 
getHome() - Method in class fi.utu.cs.hockey.Game
Returns the home team.
getJerseyColor() - Method in class fi.utu.cs.hockey.Player
Returns the player's jersey color.
getJerseyColor() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the color of the player's jersey.
getJerseyColor() - Method in class fi.utu.cs.hockey.net.Client
 
getKineticCoefficient() - Method in class fi.utu.cs.physics.Friction
Returns the kinetic friction coefficient.
getLifetime() - Method in class fi.utu.cs.physics.MomentaryBody
Returns the remaining lifetime of this body.
getMass() - Method in class fi.utu.cs.physics.Body
Returns the mass of the body.
getMaximumCorner() - Method in class fi.utu.cs.physics.Universe
Returns the maximum corner of the universe or null if the universe is infinite.
getMinimumCorner() - Method in class fi.utu.cs.physics.Universe
Returns the minimum corner of the universe or null if the universe is infinite.
getName() - Method in class fi.utu.cs.hockey.Team
Returns the team's name.
getName() - Method in class fi.utu.cs.hockey.Player
Returns the player's name.
getNormalFriction() - Method in class fi.utu.cs.physics.OrientedBody
Returns the normal friction.
getNumber() - Method in class fi.utu.cs.hockey.Player
Returns the player's number.
getNumber() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the player's number.
getNumber() - Method in class fi.utu.cs.hockey.net.Client
 
getOrientation() - Method in class fi.utu.cs.physics.OrientedBody
Returns the orientation of this body.
getOwner() - Method in class fi.utu.cs.physics.Particle
Returns the owner of the particle or null if it has no owner.
getParticle() - Method in class fi.utu.cs.physics.Universe.CollisionNotification
Returns the particle involved in the collision.
getParticle(int) - Method in class fi.utu.cs.physics.Universe.CollisionNotification
Returns the ith counterpart of the collision.
getPlayer(int) - Method in class fi.utu.cs.hockey.Team
Returns the player of the position p.
getPlayerName() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the player's name.
getPlayerName() - Method in class fi.utu.cs.hockey.net.Client
 
getPlayPosition() - Method in class fi.utu.cs.hockey.Player
Returns the player's position in the team.
getPosition() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the player's position in the team.
getPosition() - Method in class fi.utu.cs.hockey.net.Client
 
getPosition() - Method in class fi.utu.cs.physics.Body
Returns the position of the body.
getPuck() - Method in class fi.utu.cs.hockey.Game
Returns the puck.
getRadius() - Method in class fi.utu.cs.physics.BoundaryCurve
Returns the radius of the boundary curve.
getRadius() - Method in class fi.utu.cs.physics.Body
Returns the radius of the bounding circle.
getScore(boolean) - Method in class fi.utu.cs.hockey.Game
Returns the score for the home team if home == true, otherwise the score for the visiting team.
getSecondElement() - Method in class fi.utu.cs.physics.Tuple2
Returns the second element.
getStartAngle() - Method in class fi.utu.cs.physics.BoundaryCurve
Returns the start angle of the boundary curve.
getStaticCoefficient() - Method in class fi.utu.cs.physics.Friction
Returns the static friction coefficient.
getTangentFriction() - Method in class fi.utu.cs.physics.OrientedBody
Returns the tangent friction.
getTeamName() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the name of the player's team.
getTeamName() - Method in class fi.utu.cs.hockey.net.Client
 
getTime() - Method in class fi.utu.cs.hockey.Game
Returns the time left in the game in milliseconds.
getType() - Method in class fi.utu.cs.physics.BoundaryLine
Returns the type of the boundary line.
getType() - Method in class fi.utu.cs.physics.Universe
Returns the type of the universe.
getVelocity() - Method in class fi.utu.cs.physics.Body
Returns the velocity of the body.
getVisitor() - Method in class fi.utu.cs.hockey.Game
Returns the visiting team.
getX() - Method in class fi.utu.cs.physics.Point2
Returns the x coordinate.
getY() - Method in class fi.utu.cs.physics.Point2
Returns the y coordinate.
getZoomFactor() - Method in class fi.utu.cs.appearance.ShapeView
Returns the zoom factor associated with this view.
Goal - class fi.utu.cs.hockey.rink.Goal.
A goal.
GOAL_CREASE_RADIUS - Static variable in class fi.utu.cs.hockey.rink.Rink
Radius of the goal crease.
GOAL_CREASE_RADIUS - Static variable in interface fi.utu.cs.hockey.ai.Constants
Radius of the goal crease.
GOAL_CREASE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the goal crease.
GOAL_LINE_LENGTH - Static variable in class fi.utu.cs.hockey.rink.Rink
The length of the goal line between the rounded corners.
GOAL_LINE_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the goal line.
GOAL_LINE_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the goal line.
GOAL_NET_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the goal net.
GOAL_NET_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the goal net.
GOAL_POST_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the goal post.
GOAL_WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the goal.
GOAL_WIDTH - Static variable in interface fi.utu.cs.hockey.ai.Constants
Width of the goal.
Goal(boolean) - Constructor for class fi.utu.cs.hockey.rink.Goal
A goal.
GoalCrease - class fi.utu.cs.hockey.rink.GoalCrease.
A goal crease.
GoalCrease(boolean) - Constructor for class fi.utu.cs.hockey.rink.GoalCrease
A goal crease.
GOALKEEPER - Static variable in interface fi.utu.cs.hockey.Position
Goalkeeper.
GoalLine - class fi.utu.cs.hockey.rink.GoalLine.
A goal line.
GoalLine(boolean) - Constructor for class fi.utu.cs.hockey.rink.GoalLine
A goal line.
GoalNet - class fi.utu.cs.hockey.rink.GoalNet.
A goal net.
GoalNet(boolean) - Constructor for class fi.utu.cs.hockey.rink.GoalNet
A goal net.
GoalPost - class fi.utu.cs.hockey.rink.GoalPost.
A goal post.
GoalPost(boolean, boolean) - Constructor for class fi.utu.cs.hockey.rink.GoalPost
A goal post.

H

hashCode() - Method in class fi.utu.cs.physics.Tuple2
Returns a hash code value based on the elements of this tuple.
hasNext() - Method in class fi.utu.cs.appearance.ShapeIterator
Returns true if the iteration has more elements.
hasNext() - Method in class fi.utu.cs.hockey.ai.AI.PlayerIterator
Returns true, if the positions are not exhausted.
head(double) - Method in class fi.utu.cs.hockey.Player
Turns the player's orientation a radians clockwise.
head(double) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the player's heading to the angle a in radians.
head(double) - Method in class fi.utu.cs.hockey.net.Client
 
HEADING_ANGLE - Static variable in interface fi.utu.cs.hockey.net.Communication
Array index for the angle of heading.
headingTo(double[]) - Method in class fi.utu.cs.hockey.ai.AI
Returns the angle of heading to the point (p[X_COORDINATE], p[Y_COORDINATE]) from the player's current location.
headingTo(double, double) - Method in class fi.utu.cs.hockey.ai.AI
Returns the angle of heading to the point (x, y) from the player's current location.
HOME_ENDZONE_LEFT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at home endzone on the left side.
HOME_ENDZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at our endzone on the right side.
HOME_NEUTRAL_ZONE_LEFT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at our neutral zone on the left side.
HOME_NEUTRAL_ZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at our neutral zone on the right side.
HORIZONTAL - Static variable in class fi.utu.cs.physics.BoundaryLine
A horizontal boundary line.
HORIZONTAL - Static variable in class fi.utu.cs.physics.Point2
A comparator for the x coordinates of Point2 objects.

I

inelasticCollision(Body) - Method in class fi.utu.cs.physics.Particle
Realizes an inelastic collision for the particle and the body other.
inelasticCollision(Body) - Method in class fi.utu.cs.physics.BoundaryCurve
Realizes an inelastic collision for the static boundary and the body other.
inelasticCollision(Body) - Method in class fi.utu.cs.physics.BoundaryLine
Realizes an inelastic collision for the static boundary and the body other.
inelasticCollision(Body) - Method in class fi.utu.cs.physics.Body
Realizes an inelastic collision for both the body and the body other.
INFINITE - Static variable in class fi.utu.cs.physics.Universe
An infinite universe which does not impose any limits to the position of the bodies.
isColliding(Body) - Method in class fi.utu.cs.physics.Body
Returns whether the body collides with the body other.
isCollisionNotified(Class) - Method in class fi.utu.cs.physics.Particle
Returns whether the collisions of and to this particle by instances of the class c are notified.
isCollisionNotified(Particle) - Method in class fi.utu.cs.physics.Particle
Returns whether the collisions of and to this particle by the particle p are notified.
isCorporeal() - Method in class fi.utu.cs.physics.Particle
Returns true if the particle is corporeal or false if the particle is ethereal.
isCrossed(Body, double) - Method in class fi.utu.cs.physics.Boundary
Checks whether the boundary will be crossed by the body other within the next dt seconds.
isCrossedByBoundingBox(double, double, double, double, double) - Method in class fi.utu.cs.physics.Boundary
Returns true, if the bounding box of the path (x1, y1)-(x2, y2) of a circle with a radius r crosses the boundary; otherwise, returns false.
isCrossedByBoundingBox(double, double, double, double, double) - Method in class fi.utu.cs.physics.BoundaryCurve
Returns true, if the bounding box of the path (x1, y1)-(x2, y2) of a circle with a radius r crosses the boundary curve; otherwise, returns false.
isCrossedByBoundingBox(double, double, double, double, double) - Method in class fi.utu.cs.physics.BoundaryLine
Returns true, if the bounding box of the path (x1, y1)-(x2, y2) of a circle with a radius r crosses the boundary line; otherwise, returns false.
isCrossedByLine(double, double, double, double) - Method in class fi.utu.cs.physics.Boundary
Returns true, if the line (x1, y1)-(x2, y2) crosses the boundary; otherwise, returns false.
isCrossedByLine(double, double, double, double) - Method in class fi.utu.cs.physics.BoundaryCurve
Returns true, if the line (x1, y1)-(x2, y2) crosses the boundary curve; otherwise, returns false.
isCrossedByLine(double, double, double, double) - Method in class fi.utu.cs.physics.BoundaryLine
Returns true, if the line (x1, y1)-(x2, y2) crosses the boundary line; otherwise, returns false.
isDrawn() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a boolean value indicating whether the outline of the shape is drawn or not.
isDrawn() - Method in interface fi.utu.cs.appearance.Shapable
Returns a boolean value indicating whether the outline of the shape is drawn or not.
isDrawn() - Method in class fi.utu.cs.hockey.Player
 
isDrawn() - Method in class fi.utu.cs.hockey.Puck
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.Circle
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.Goal
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.GoalNet
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.Line
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.Spot
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
isDrawn() - Method in class fi.utu.cs.hockey.rink.ScoreLine
 
isFilled() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a boolean value indicating whether the shape is filled or not.
isFilled() - Method in interface fi.utu.cs.appearance.Shapable
Returns a boolean value indicating whether the shape is filled or not.
isFilled() - Method in class fi.utu.cs.hockey.Player
 
isFilled() - Method in class fi.utu.cs.hockey.Puck
 
isFilled() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
isFilled() - Method in class fi.utu.cs.hockey.rink.Circle
 
isFilled() - Method in class fi.utu.cs.hockey.rink.Goal
 
isFilled() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
isFilled() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
isFilled() - Method in class fi.utu.cs.hockey.rink.Line
 
isFilled() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
isFilled() - Method in class fi.utu.cs.hockey.rink.Spot
 
isFilled() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
isFoul(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team commits a foul, or if h == false and the visiting team commits a foul.
isFoul(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether a team has caused some other foul.
isFoul(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isFree(int) - Method in class fi.utu.cs.hockey.Team
Returns the whether the position p is not taken already.
isGameOver() - Method in class fi.utu.cs.hockey.Game
Returns true, if the game is over.
isGameOver() - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether the game is over.
isGameOver() - Method in class fi.utu.cs.hockey.net.Client
 
isGameStopped() - Method in class fi.utu.cs.hockey.Game
Returns true, if the game is stopped.
isGameStopped() - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether the game is stopped.
isGameStopped() - Method in class fi.utu.cs.hockey.net.Client
 
isGoal(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team has scored, or if h == false and the visiting team has scored.
isGoal(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether a team has scored a goal.
isGoal(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isGoalieKeepingPuck(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team goalie keeps the puck, or if h == false and the visiting team goalie keeps the puck.
isGoalieKeepingPuck(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether the goalkeeper of a team is keeping the puck.
isGoalieKeepingPuck(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isHome() - Method in class fi.utu.cs.hockey.Team
Returns true, if this is the home team.
isHome() - Method in class fi.utu.cs.hockey.Player
Returns true if the player belongs to the home team.
isIcing(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team causes an icing, or if h == false and the visiting team causes an icing.
isIcing(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether a team is in icing.
isIcing(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isInelasticCollision(Body, Particle) - Method in class fi.utu.cs.physics.Universe
Returns true if a collision between the body b and the particle p is inelastic; otherwise, returns false.
isInelasticCollision(Class, Class) - Method in class fi.utu.cs.physics.Universe
Returns true if collisions between instances of the classes bc and pc are inelastic; otherwise, returns false.
isInHomeTeam() - Method in interface fi.utu.cs.hockey.net.Communication
Returns true if the player belongs to the home team; otherwise returns false.
isInHomeTeam() - Method in class fi.utu.cs.hockey.net.Client
 
isInterferingGoalie(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team is interfering the goalie, or if h == false and the visiting team is interfering the goalie.
isInterferingGoalie(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether any member of a team is interfering the other team's goalie.
isInterferingGoalie(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isInTheSameQuadrant(Vector2) - Method in class fi.utu.cs.physics.Vector2
Returns whether the vector other resides in the same coordinate quadrant as this vector.
isJoined() - Method in interface fi.utu.cs.hockey.net.Communication
Returns true, if the player has joined a game.
isJoined() - Method in class fi.utu.cs.hockey.net.Client
 
isNormalCoordinateSystem() - Method in class fi.utu.cs.appearance.ShapeView
Returns true if the view uses the normal coordinate system.
isOffside(boolean) - Method in class fi.utu.cs.hockey.Game
Returns true, if h == true and the home team causes an offside, or if h == false and the visiting team causes an offside.
isOffside(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns whether a team is in offside.
isOffside(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
isOverlapping(Body) - Method in class fi.utu.cs.physics.Body
Checks whether the body overlaps the body other.
isPuckUnplayable() - Method in class fi.utu.cs.hockey.Game
Returns true, if the puck has become unplayable.
isPuckUnplayable() - Method in interface fi.utu.cs.hockey.net.Communication
Returns true if the puck has become unplayable.
isPuckUnplayable() - Method in class fi.utu.cs.hockey.net.Client
 
isPuckWithinReach() - Method in class fi.utu.cs.hockey.ai.AI
Returns true if the puck is within the reach of the player.
isScreenCoordinateSystem() - Method in class fi.utu.cs.appearance.ShapeView
Returns true if the view uses the screen coordinate system.
iterator() - Method in interface fi.utu.cs.appearance.MultiShapable
 
iterator() - Method in class fi.utu.cs.hockey.Player
 
iterator() - Method in class fi.utu.cs.hockey.Puck
 
iteratorAll() - Method in class fi.utu.cs.hockey.ai.AI
Returns an iterator for all player positions.
iteratorDefense() - Method in class fi.utu.cs.hockey.ai.AI
Returns an iterator for defense positions.
iteratorForward() - Method in class fi.utu.cs.hockey.ai.AI
Returns an iterator for forward positions.

K

keepPuck() - Method in interface fi.utu.cs.hockey.net.Communication
Keeps the puck, if the player is a goalkeeper.
keepPuck() - Method in class fi.utu.cs.hockey.net.Client
 
keepPuck(Player) - Method in class fi.utu.cs.hockey.Game
Lets the goalkeeper p keep the puck, if possible.

L

LEFT_DEFENSE - Static variable in interface fi.utu.cs.hockey.Position
Left defense.
LEFT_ENDBOARD - Static variable in interface fi.utu.cs.hockey.ai.Constants
X-coordinate of the left endboard.
LEFT_WING - Static variable in interface fi.utu.cs.hockey.Position
Left wing.
LENGTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Length of the ice hockey rink.
length() - Method in class fi.utu.cs.physics.Vector2
Returns the length of this vector.
lengthSquared() - Method in class fi.utu.cs.physics.Vector2
Returns the squared length of this vector.
Line - class fi.utu.cs.hockey.rink.Line.
A line.
Line(double, double, double, Color) - Constructor for class fi.utu.cs.hockey.rink.Line
A line from d meters from center with length l, width w and color c.

M

max() - Method in class fi.utu.cs.physics.Tuple2
Returns the maximum of the elements.
messages(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns a team's messages.
messages(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
min() - Method in class fi.utu.cs.physics.Tuple2
Returns the minimum of the elements.
MomentaryBody - class fi.utu.cs.physics.MomentaryBody.
A moving physical body with mass, dimensionality and a finite lifetime.
MomentaryBody(double, double, double) - Constructor for class fi.utu.cs.physics.MomentaryBody
Constructs a body with the mass m, the radius r and the lifetime lt.
MomentaryBody(double, double, double, Point2) - Constructor for class fi.utu.cs.physics.MomentaryBody
Constructs a body with the mass m, the radius r, the lifetime lt and the position p.
MomentaryBody(double, double, double, Point2, Vector2) - Constructor for class fi.utu.cs.physics.MomentaryBody
Constructs a body with the mass m, the radius r, the lifetime lt, the position p and the velocity v.
MomentaryBody(double, double, double, Point2, Vector2, Vector2) - Constructor for class fi.utu.cs.physics.MomentaryBody
Constructs a body with the mass m, the radius r, the lifetime lt, the position p, the velocity v and the acceleration a.
multiply(double) - Method in class fi.utu.cs.physics.Tuple2
Multiplies both elements with value.
multiply(double) - Method in class fi.utu.cs.physics.Vector2
Multiplies the vector with the scalar s.
MultiShapable - interface fi.utu.cs.appearance.MultiShapable.
Provides definitions for objects comprising multiple shapable objects that can be displayed in the Graphics2D context.

N

negate() - Method in class fi.utu.cs.physics.Tuple2
Negates the elements.
negateFirstElement() - Method in class fi.utu.cs.physics.Tuple2
Negates the first element.
negateSecondElement() - Method in class fi.utu.cs.physics.Tuple2
Negates the second element.
NEUTRAL_ZONE_FACE_OFF_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the neutral zone face off spot.
next() - Method in class fi.utu.cs.appearance.ShapeIterator
Returns the next shapable object in the iteration.
next() - Method in class fi.utu.cs.hockey.ai.AI.PlayerIterator
Returns the next position.
NO_FACEOFF - Static variable in interface fi.utu.cs.hockey.net.Communication
No faceoff.
NONE - Static variable in class fi.utu.cs.physics.Universe.CollisionNotification
None of the counterparts.

O

OrientedBody - class fi.utu.cs.physics.OrientedBody.
A moving physical body with mass, dimensionality and orientation.
OrientedBody(double, double, Vector2) - Constructor for class fi.utu.cs.physics.OrientedBody
Constructs a body with the mass m, the radius r and the orientation o.
OrientedBody(double, double, Vector2, Point2) - Constructor for class fi.utu.cs.physics.OrientedBody
Constructs a body with the mass m, the radius r, the orientation o and the position p.
OrientedBody(double, double, Vector2, Point2, Vector2) - Constructor for class fi.utu.cs.physics.OrientedBody
Constructs a body with the mass m, the radius r, the orientation o, the position p and the velocity v.
OrientedBody(double, double, Vector2, Point2, Vector2, Vector2) - Constructor for class fi.utu.cs.physics.OrientedBody
Constructs a body with the mass m, the radius r, the orientation o, the position p, the velocity v and the acceleration a.
ORIGIN - Static variable in class fi.utu.cs.physics.Point2
The origin residing in the coordinates (0.0, 0.0).
OTHER - Static variable in class fi.utu.cs.physics.BoundaryLine
Non-vertical and non-horizontal boundary line.
OUR_BLUE_LINE - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of own blue line.
OUR_ENDBOARD - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of own endboard.
OUR_ENDZONE_FACEOFF - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of own endzone faceoff spot.
OUR_ENDZONE_LEFT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at our endzone on the left side.
OUR_ENDZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at our endzone on the right side.
OUR_GOAL_LINE - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of own goal line.
OUR_NEUTRAL_ZONE_FACEOFF - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of own neutral zone faceoff spot.
OUR_NEUTRAL_ZONE_LEFT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at our neutral zone on the left side.
OUR_NEUTRAL_ZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at our neutral zone on the right side.

P

paint() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a Paint object that is used for filling the shape.
paint() - Method in interface fi.utu.cs.appearance.Shapable
Returns a Paint object that is used for filling the shape.
paint() - Method in class fi.utu.cs.hockey.Player
 
paint() - Method in class fi.utu.cs.hockey.Puck
 
paint() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
paint() - Method in class fi.utu.cs.hockey.rink.Circle
 
paint() - Method in class fi.utu.cs.hockey.rink.Goal
 
paint() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
paint() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
paint() - Method in class fi.utu.cs.hockey.rink.Line
 
paint() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
paint() - Method in class fi.utu.cs.hockey.rink.Spot
 
paint() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
paintComponent(Graphics) - Method in class fi.utu.cs.appearance.ShapeView
Draws the view when invoked by Swing.
Particle - class fi.utu.cs.physics.Particle.
A fundamental particle.
Particle() - Constructor for class fi.utu.cs.physics.Particle
Constructs a particle that is corporeal, does not report on collisions and has no owner.
Player - class fi.utu.cs.hockey.Player.
A player.
PLAYER_RADIUS - Static variable in interface fi.utu.cs.hockey.ai.Constants
Player's radius.
PLAYER_REACHABILITY - Static variable in interface fi.utu.cs.hockey.ai.Constants
Player's reachability.
player(boolean, int) - Method in interface fi.utu.cs.hockey.net.Communication
Returns the location and the angle of the heading of a player.
player(boolean, int) - Method in class fi.utu.cs.hockey.net.Client
 
Player(Point2) - Constructor for class fi.utu.cs.hockey.Player
Creates a player at location p.
PLAYERS - Static variable in class fi.utu.cs.hockey.Team
Total number of players in a team.
Point2 - class fi.utu.cs.physics.Point2.
A two-element point of double-precision floating point x, y coordinates.
Point2(double, double) - Constructor for class fi.utu.cs.physics.Point2
Creates a new two-element point with the given coordinates.
Position - interface fi.utu.cs.hockey.Position.
Player positions.
project(Vector2) - Method in class fi.utu.cs.physics.Vector2
Returns a projection of the vector other to this vector.
Puck - class fi.utu.cs.hockey.Puck.
A puck.
PUCK_DIAMETER - Static variable in interface fi.utu.cs.hockey.ai.Constants
Diameter of the puck.
puck() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the location of the puck.
puck() - Method in class fi.utu.cs.hockey.net.Client
 
Puck(Point2) - Constructor for class fi.utu.cs.hockey.Puck
Creates a puck at position p.

R

RADIUS - Static variable in class fi.utu.cs.hockey.Player
Radius of a player in meters.
REACHABILITY - Static variable in class fi.utu.cs.hockey.Player
Reachability of a player in meters.
react() - Method in class fi.utu.cs.hockey.ai.AI
Reacts to the game events.
removeAll() - Method in class fi.utu.cs.physics.Universe
Removes all bodies and boundaries from the universe and sets their owner to null.
removeBody(Body) - Method in class fi.utu.cs.physics.Universe
Removes the body b from the universe and sets its owner to null.
removeBoundary(Boundary) - Method in class fi.utu.cs.physics.Universe
Removes the boundary b from the universe and sets its owner to null.
removeCollisionNotification(Class) - Method in class fi.utu.cs.physics.Particle
Removes the class c from the collision notifications.
RIGHT_DEFENSE - Static variable in interface fi.utu.cs.hockey.Position
Right defense.
RIGHT_ENDBOARD - Static variable in interface fi.utu.cs.hockey.ai.Constants
X-coordinate of the right endboard.
RIGHT_WING - Static variable in interface fi.utu.cs.hockey.Position
Right wing.
Rink - class fi.utu.cs.hockey.rink.Rink.
Definitions for an ice hockey rink.
RINK_LENGTH - Static variable in interface fi.utu.cs.hockey.ai.Constants
Length of the rink.
RINK_WIDTH - Static variable in interface fi.utu.cs.hockey.ai.Constants
Width of the rink.
Rink(Universe) - Constructor for class fi.utu.cs.hockey.rink.Rink
Creates a rink in the universe u.
rotate(double) - Method in class fi.utu.cs.physics.Vector2
Rotates the vector counterclockwise.
rotate180() - Method in class fi.utu.cs.physics.Vector2
Rotates the vector 180 degrees counterclockwise.
rotate270() - Method in class fi.utu.cs.physics.Vector2
Rotates the vector 270 degrees counterclockwise.
rotate90() - Method in class fi.utu.cs.physics.Vector2
Rotates the vector 90 degrees counterclockwise.
run() - Method in class fi.utu.cs.hockey.Game
Runs the game.
run() - Method in class fi.utu.cs.hockey.ai.AI
Calls repeatedly the react method.

S

say(long) - Method in interface fi.utu.cs.hockey.net.Communication
Says the 64-bit long word s.
say(long) - Method in class fi.utu.cs.hockey.net.Client
 
scalarProduct(Vector2) - Method in class fi.utu.cs.physics.Vector2
Returns the scalar product of this vector and the vector other.
SCORE_LINE_OFFSET - Static variable in class fi.utu.cs.hockey.rink.Rink
Distance from the center line to the scoring line.
score(boolean) - Method in interface fi.utu.cs.hockey.net.Communication
Returns the score of a team.
score(boolean) - Method in class fi.utu.cs.hockey.net.Client
 
ScoreLine - class fi.utu.cs.hockey.rink.ScoreLine.
A score line.
ScoreLine(boolean) - Constructor for class fi.utu.cs.hockey.rink.ScoreLine
A score line.
scoreLines - Variable in class fi.utu.cs.hockey.rink.Rink
 
SECOND - Static variable in class fi.utu.cs.physics.Universe.CollisionNotification
The second counterpart.
secondElementSign() - Method in class fi.utu.cs.physics.Tuple2
Returns the sign of the second element.
sendGameState() - Method in class fi.utu.cs.hockey.net.Server
Sends the current game state to the clients.
Server - class fi.utu.cs.hockey.net.Server.
A hockey game server.
Server(int, int, String, int, Game) - Constructor for class fi.utu.cs.hockey.net.Server
Constructs a server for the hockey game g.
set(double, double) - Method in class fi.utu.cs.physics.Friction
Sets the friction coefficients.
set(double, double) - Method in class fi.utu.cs.physics.Tuple2
Sets the elements.
set(double, double) - Method in class fi.utu.cs.physics.Vector2
Sets the horizontal and vertical component.
set(double, double) - Method in class fi.utu.cs.physics.Point2
Sets the coordinates.
set(Friction) - Method in class fi.utu.cs.physics.Friction
Sets the friction coeffients to the same values as in other.
set(Point2) - Method in class fi.utu.cs.physics.Point2
Sets the coordinates to the same values as in other.
set(Point2, Point2) - Method in class fi.utu.cs.physics.Vector2
Sets the horizontal and vertical components to correspond the transfer from the point source to the point target.
set(Tuple2) - Method in class fi.utu.cs.physics.Tuple2
Sets the elements to the same values as in other.
set(Vector2) - Method in class fi.utu.cs.physics.Vector2
Sets the horizontal and vertical components to the same values as in other.
setAcceleration(double, double) - Method in class fi.utu.cs.physics.Body
Sets the acceleration of the body.
setAcceleration(Vector2) - Method in class fi.utu.cs.physics.Body
Sets the acceleration of the body to a.
setAccelerationOfGravity(double) - Method in class fi.utu.cs.physics.Universe
Sets the acceleration of gravity of this universe to g.
setColors(Color, Color) - Method in class fi.utu.cs.hockey.Player
Sets the player's helmet color to h and jersey color to j.
setCorporeal() - Method in class fi.utu.cs.physics.Particle
Sets the particle to be corporeal.
setDeltaX(double) - Method in class fi.utu.cs.physics.Vector2
Sets the horizontal component to the value dx.
setDeltaY(double) - Method in class fi.utu.cs.physics.Vector2
Sets the vertical component to the value dy.
setEpsilon(double) - Method in class fi.utu.cs.physics.EpsilonComparator
Sets the epsilon value to e.
setEthereal() - Method in class fi.utu.cs.physics.Particle
Sets the particle to be ethereal.
setFirstElement(double) - Method in class fi.utu.cs.physics.Tuple2
Sets the first element to the value v.
setFriction(Friction) - Method in class fi.utu.cs.physics.FrictionalBody
Sets the friction of the body to f.
setHelmetColor(Color) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the name of the player's helmet to h.
setHelmetColor(Color) - Method in class fi.utu.cs.hockey.net.Client
 
setInelasticCollision(Class, Class) - Method in class fi.utu.cs.physics.Universe
Sets the collisions between instances of the classes bc and pc to be inelastic.
setJerseyColor(Color) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the name of the player's jersey to j.
setJerseyColor(Color) - Method in class fi.utu.cs.hockey.net.Client
 
setKineticCoefficient(double) - Method in class fi.utu.cs.physics.Friction
Sets the kinetic friction coefficient to the value k.
setLifetime(double) - Method in class fi.utu.cs.physics.MomentaryBody
Sets the lifetime to lt seconds.
setMass(double) - Method in class fi.utu.cs.physics.Body
Sets the mass of the body to m.
setName(String) - Method in class fi.utu.cs.hockey.Team
Sets the team's name to n.
setName(String) - Method in class fi.utu.cs.hockey.Player
Sets the player's name to s.
setNormalCoordinateSystem() - Method in class fi.utu.cs.appearance.ShapeView
Sets the normal coordinate system to this view.
setNormalFriction(Friction) - Method in class fi.utu.cs.physics.OrientedBody
Sets the normal friction to f
setNumber(int) - Method in class fi.utu.cs.hockey.Player
Sets the player's number to n.
setNumber(int) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the player's number to n.
setNumber(int) - Method in class fi.utu.cs.hockey.net.Client
 
setOrientation(Vector2) - Method in class fi.utu.cs.physics.OrientedBody
Sets the orientation to o.
setOwner(Universe) - Method in class fi.utu.cs.physics.Particle
Sets the universe that owns the particle to u.
setPlayerName(String) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the player's name to s.
setPlayerName(String) - Method in class fi.utu.cs.hockey.net.Client
 
setPosition(double, double) - Method in class fi.utu.cs.physics.Body
Sets the position of the body.
setPosition(int) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the player's position in the team to p.
setPosition(int) - Method in class fi.utu.cs.hockey.net.Client
 
setPosition(Point2) - Method in class fi.utu.cs.physics.Body
Sets the position of the body to p.
setRadius(double) - Method in class fi.utu.cs.physics.Body
Sets the radius of the bounding circle to r.
setRotated() - Method in class fi.utu.cs.appearance.ShapeView
 
setScreenCoordinateSystem() - Method in class fi.utu.cs.appearance.ShapeView
Sets the screen coordinate system to this view.
setSecondElement(double) - Method in class fi.utu.cs.physics.Tuple2
Sets the second element to the value v.
setShapes(List) - Method in class fi.utu.cs.appearance.ShapeView
Sets the shapable list to s.
setStaticCoefficient(double) - Method in class fi.utu.cs.physics.Friction
Sets the static friction coefficient to the value s.
setTangentFriction(Friction) - Method in class fi.utu.cs.physics.OrientedBody
Sets the tangent friction to f
setTeamName(String) - Method in interface fi.utu.cs.hockey.net.Communication
Sets the name of the player's team to t.
setTeamName(String) - Method in class fi.utu.cs.hockey.net.Client
 
setVelocity(double, double) - Method in class fi.utu.cs.physics.Body
Sets the velocity of the body.
setVelocity(Vector2) - Method in class fi.utu.cs.physics.Body
Sets the velocity of the body to v.
setVisibleRegion(Rectangle2D) - Method in class fi.utu.cs.appearance.ShapeView
Sets the visible region to the rectangle r.
setX(double) - Method in class fi.utu.cs.physics.Point2
Sets the x coordinate to x.
setY(double) - Method in class fi.utu.cs.physics.Point2
Sets the y coordinate to y.
setZoomFactor(double) - Method in class fi.utu.cs.appearance.ShapeView
Sets the zoom factor to z.
Shapable - interface fi.utu.cs.appearance.Shapable.
Provides definitions for objects that can be displayed in the Graphics2D context.
shape() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a Shape object that defines the appearance of the object.
shape() - Method in interface fi.utu.cs.appearance.Shapable
Returns a Shape object that defines the appearance of the object.
shape() - Method in class fi.utu.cs.hockey.Player
 
shape() - Method in class fi.utu.cs.hockey.Puck
 
shape() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
shape() - Method in class fi.utu.cs.hockey.rink.Circle
 
shape() - Method in class fi.utu.cs.hockey.rink.Goal
 
shape() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
shape() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
shape() - Method in class fi.utu.cs.hockey.rink.Line
 
shape() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
shape() - Method in class fi.utu.cs.hockey.rink.Spot
 
shape() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
ShapeAdapter - class fi.utu.cs.appearance.ShapeAdapter.
An abstract adapter class for defining shapable objects that can be displayed in the Graphics2D context.
ShapeAdapter() - Constructor for class fi.utu.cs.appearance.ShapeAdapter
 
ShapeIterator - class fi.utu.cs.appearance.ShapeIterator.
An iterator over an array of shapable objects.
ShapeIterator(Shapable[]) - Constructor for class fi.utu.cs.appearance.ShapeIterator
Constructs an iterator for the shapable objects.
ShapeView - class fi.utu.cs.appearance.ShapeView.
A Swing component that displays a list of Shapable objects.
ShapeView() - Constructor for class fi.utu.cs.appearance.ShapeView
Creates a view.
ShapeView(List) - Constructor for class fi.utu.cs.appearance.ShapeView
Creates a view to the shapable list s.
ShapeView(List, double) - Constructor for class fi.utu.cs.appearance.ShapeView
Creates a view to the shapable list s with the zoom factor z.
ShapeView(List, double, boolean) - Constructor for class fi.utu.cs.appearance.ShapeView
Creates a view to the shapable list s with the zoom factor z using the screen coordinate system if c == true or the normal coordinate system if c == false.
shoot(double) - Method in interface fi.utu.cs.hockey.net.Communication
Shoots the puck with the relative power p, where p is from the range [0.0, 1.0].
shoot(double) - Method in class fi.utu.cs.hockey.net.Client
 
shoot(Player, double) - Method in class fi.utu.cs.hockey.Game
Lets the player p shoot the puck with the proportional power s, if possible.
SideBoard - class fi.utu.cs.hockey.rink.SideBoard.
A side board.
SideBoard(boolean) - Constructor for class fi.utu.cs.hockey.rink.SideBoard
A side board.
size() - Method in class fi.utu.cs.physics.Universe
Deprecated. As of version 1.1, replaced by Universe.bodySize().
size(Class) - Method in class fi.utu.cs.physics.Universe
Deprecated. As of version 1.1, replaced by Universe.bodySize(Class).
Spot - class fi.utu.cs.hockey.rink.Spot.
A spot.
Spot(double, double, double, Color) - Constructor for class fi.utu.cs.hockey.rink.Spot
A spot with a center at the point (px, py) radius r and color c.
stroke() - Method in class fi.utu.cs.appearance.ShapeAdapter
Returns a Stroke object that is used for drawing the outline.
stroke() - Method in interface fi.utu.cs.appearance.Shapable
Returns a Stroke object that is used for drawing the outline.
stroke() - Method in class fi.utu.cs.hockey.Player
 
stroke() - Method in class fi.utu.cs.hockey.Puck
 
stroke() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
stroke() - Method in class fi.utu.cs.hockey.rink.Circle
 
stroke() - Method in class fi.utu.cs.hockey.rink.Goal
 
stroke() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
stroke() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
stroke() - Method in class fi.utu.cs.hockey.rink.Line
 
stroke() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
stroke() - Method in class fi.utu.cs.hockey.rink.Spot
 
stroke() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
swap() - Method in class fi.utu.cs.physics.Tuple2
Swaps the elements.

T

Team - class fi.utu.cs.hockey.Team.
A team.
Team() - Constructor for class fi.utu.cs.hockey.Team
Constructs an empty, nameless team.
teamUpdated() - Method in class fi.utu.cs.hockey.Game
Signal that teams have been updated.
THEIR_BLUE_LINE - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of opponent's blue line.
THEIR_ENDBOARD - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of opponent's endboard.
THEIR_ENDZONE_FACEOFF - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of opponent's endzone faceoff spot.
THEIR_ENDZONE_LEFT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at their endzone on the left side.
THEIR_ENDZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at their endzone on the right side.
THEIR_GOAL_LINE - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of opponent's goal line.
THEIR_NEUTRAL_ZONE_FACEOFF - Static variable in interface fi.utu.cs.hockey.ai.Constants
Y-coordinate of opponent's neutral zone faceoff spot.
THEIR_NEUTRAL_ZONE_LEFT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at their neutral zone on the left side.
THEIR_NEUTRAL_ZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.net.Communication
Faceoff at their neutral zone on the right side.
time() - Method in interface fi.utu.cs.hockey.net.Communication
Returns the time left in the game in milliseconds.
time() - Method in class fi.utu.cs.hockey.net.Client
 
TOROID - Static variable in class fi.utu.cs.physics.Universe
An infinite universe of finite size where the opposite vertical and horizontal edges are connected to form a torus.
toString() - Method in class fi.utu.cs.hockey.Team
 
toString() - Method in class fi.utu.cs.hockey.Player
 
toString() - Method in class fi.utu.cs.hockey.Puck
 
toString() - Method in class fi.utu.cs.hockey.rink.CornerBoard
 
toString() - Method in class fi.utu.cs.hockey.rink.CenterCircle
 
toString() - Method in class fi.utu.cs.hockey.rink.CenterIceSpot
 
toString() - Method in class fi.utu.cs.hockey.rink.CenterLine
 
toString() - Method in class fi.utu.cs.hockey.rink.BlueLine
 
toString() - Method in class fi.utu.cs.hockey.rink.FaceOffCircle
 
toString() - Method in class fi.utu.cs.hockey.rink.FaceOffSpot
 
toString() - Method in class fi.utu.cs.hockey.rink.Goal
 
toString() - Method in class fi.utu.cs.hockey.rink.GoalCrease
 
toString() - Method in class fi.utu.cs.hockey.rink.GoalLine
 
toString() - Method in class fi.utu.cs.hockey.rink.GoalNet
 
toString() - Method in class fi.utu.cs.hockey.rink.GoalPost
 
toString() - Method in class fi.utu.cs.hockey.rink.EndBoard
 
toString() - Method in class fi.utu.cs.hockey.rink.SideBoard
 
toString() - Method in class fi.utu.cs.hockey.rink.ScoreLine
 
toString() - Method in class fi.utu.cs.physics.FrictionalBody
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.Particle
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.OrientedBody
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.BoundaryCurve
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.BoundaryLine
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.MomentaryBody
Returns a string that contains the values of the attributes.
toString() - Method in class fi.utu.cs.physics.Tuple2
Returns a string that contains the values of the elements.
toString() - Method in class fi.utu.cs.physics.Body
Returns a string that contains the values of the attributes.
transfer(Point2) - Method in class fi.utu.cs.physics.Vector2
Creates and returns a point that is transfered from the point source according to this vector.
transfer(Vector2) - Method in class fi.utu.cs.physics.Point2
Transfers the coordinates according to the vector v.
transpose(Point2) - Method in class fi.utu.cs.physics.Universe
Transposes the point p according to the type of the universe.
Tuple2 - class fi.utu.cs.physics.Tuple2.
A two-element tuple of double-precision floating point values.
Tuple2(double, double) - Constructor for class fi.utu.cs.physics.Tuple2
Creates a new two-element tuple with the given values.

U

unitVector() - Method in class fi.utu.cs.physics.Vector2
Returns a unit vector corresponding to this vector.
Universe - class fi.utu.cs.physics.Universe.
A universe comprising a collection of Body objects.
Universe.CollisionNotification - class fi.utu.cs.physics.Universe.CollisionNotification.
Comprises a Body object and a Particle object that have been the counterparts in a collision.
Universe.CollisionNotification(Body, Body) - Constructor for class fi.utu.cs.physics.Universe.CollisionNotification
Creates a notification for the bodies b1 and b2
Universe.CollisionNotification(Body, Particle) - Constructor for class fi.utu.cs.physics.Universe.CollisionNotification
Creates a notification for the body b and the particle p
Universe() - Constructor for class fi.utu.cs.physics.Universe
Creates an infinite universe.
Universe(int, Point2, Point2) - Constructor for class fi.utu.cs.physics.Universe
Creates a universe.

V

Vector2 - class fi.utu.cs.physics.Vector2.
A two-component vector of double-precision floating point values.
Vector2(double, double) - Constructor for class fi.utu.cs.physics.Vector2
Creates a new two-component vector with the given values.
Vector2(double, double, double, double) - Constructor for class fi.utu.cs.physics.Vector2
Creates a new two-component vector from the given points.
Vector2(Point2, Point2) - Constructor for class fi.utu.cs.physics.Vector2
Creates a new two-component vector from the given points.
vectorFrom(Point2) - Method in class fi.utu.cs.physics.Point2
Creates and returns a vector that corresponds the transfer from the point source to this point.
vectorTo(Point2) - Method in class fi.utu.cs.physics.Point2
Creates and returns a vector that corresponds the transfer from this point to the point target.
VERTICAL - Static variable in class fi.utu.cs.physics.BoundaryLine
A vertical boundary line.
VERTICAL - Static variable in class fi.utu.cs.physics.Point2
A comparator for the y coordinates of Point2 objects.
VISITOR_ENDZONE_LEFT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at their endzone on the left side.
VISITOR_ENDZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at their endzone on the right side.
VISITOR_NEUTRAL_ZONE_LEFT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at their neutral zone on the left side.
VISITOR_NEUTRAL_ZONE_RIGHT - Static variable in interface fi.utu.cs.hockey.rink.FaceOff
Faceoff at their neutral zone on the right side.

W

WIDTH - Static variable in class fi.utu.cs.hockey.rink.Rink
Width of the ice hockey rink.

X

X_COORDINATE - Static variable in interface fi.utu.cs.hockey.net.Communication
Array index for the x-coordinate.

Y

Y_COORDINATE - Static variable in interface fi.utu.cs.hockey.net.Communication
Array index for the y-coordinate.

Z

ZERO - Static variable in class fi.utu.cs.physics.Friction
A friction with a zero static and dynamic coefficients.
ZERO - Static variable in class fi.utu.cs.physics.Vector2
A vector with the length 0.0.

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