fi.utu.cs.hockey.rink
Class Rink

java.lang.Object
  |
  +--fi.utu.cs.hockey.rink.Rink

public class Rink
extends java.lang.Object

Definitions for an ice hockey rink. All measures are given in meters, and they follow the IIHF Official Rules.


Field Summary
static double BLUE_LINE_OFFSET
          Distance from the center line to the blue line.
static double BLUE_LINE_WIDTH
          Width of the blue line.
static double BOARD_RADIUS
          Radius of the corner boards.
static double BOARD_WIDTH
          Width of the corner boards.
static double CENTER_CIRCLE_RADIUS
          Radius of the center circle.
static double CENTER_CIRCLE_WIDTH
          Width of the center circle.
static double CENTER_ICE_SPOT_RADIUS
          Radius of the center spot.
static double CENTER_LINE_WIDTH
          Width of the center line.
static java.awt.Color COLOR_BLUE
          The blue color used in the center ice spot, center circle, and blue lines.
static java.awt.Color COLOR_BOARD
          The color used in the boards.
static java.awt.Color COLOR_ICE
          The color used in the ice.
static java.awt.Color COLOR_LIGHT_BLUE
          The light blue color used in the goal crease area.
static java.awt.Color COLOR_RED
          The red color used in the center line, goal lines, face off cirles, face off spots, goal crease lines, and goal posts.
static double ENDZONE_FACE_OFF_OFFSET
          Distance from the center line to the endzone face off spot.
static double FACE_OFF_CIRCLE_RADIUS
          Radius of the face off circle.
static double FACE_OFF_CIRCLE_WIDTH
          Width of the face off circle.
static double FACE_OFF_OFFSET
          Distance from the center to the face off spot.
static double FACE_OFF_SPOT_RADIUS
          Radius of the face off spot.
static double GOAL_CREASE_RADIUS
          Radius of the goal crease.
static double GOAL_CREASE_WIDTH
          Width of the goal crease.
static double GOAL_LINE_LENGTH
          The length of the goal line between the rounded corners.
static double GOAL_LINE_OFFSET
          Distance from the center line to the goal line.
static double GOAL_LINE_WIDTH
          Width of the goal line.
static double GOAL_NET_OFFSET
          Distance from the center line to the goal net.
static double GOAL_NET_WIDTH
          Width of the goal net.
static double GOAL_POST_WIDTH
          Width of the goal post.
static double GOAL_WIDTH
          Width of the goal.
static double LENGTH
          Length of the ice hockey rink.
static double NEUTRAL_ZONE_FACE_OFF_OFFSET
          Distance from the center line to the neutral zone face off spot.
static double SCORE_LINE_OFFSET
          Distance from the center line to the scoring line.
 ScoreLine[] scoreLines
           
static double WIDTH
          Width of the ice hockey rink.
 
Constructor Summary
Rink(Universe u)
          Creates a rink in the universe u.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH

public static final double WIDTH
Width of the ice hockey rink.

See Also:
Constant Field Values

LENGTH

public static final double LENGTH
Length of the ice hockey rink.

See Also:
Constant Field Values

BOARD_RADIUS

public static final double BOARD_RADIUS
Radius of the corner boards.

See Also:
Constant Field Values

BOARD_WIDTH

public static final double BOARD_WIDTH
Width of the corner boards.

See Also:
Constant Field Values

GOAL_LINE_WIDTH

public static final double GOAL_LINE_WIDTH
Width of the goal line.

See Also:
Constant Field Values

BLUE_LINE_WIDTH

public static final double BLUE_LINE_WIDTH
Width of the blue line.

See Also:
Constant Field Values

CENTER_LINE_WIDTH

public static final double CENTER_LINE_WIDTH
Width of the center line.

See Also:
Constant Field Values

GOAL_LINE_OFFSET

public static final double GOAL_LINE_OFFSET
Distance from the center line to the goal line.

See Also:
Constant Field Values

GOAL_LINE_LENGTH

public static final double GOAL_LINE_LENGTH
The length of the goal line between the rounded corners.

See Also:
Constant Field Values

BLUE_LINE_OFFSET

public static final double BLUE_LINE_OFFSET
Distance from the center line to the blue line.

See Also:
Constant Field Values

CENTER_CIRCLE_RADIUS

public static final double CENTER_CIRCLE_RADIUS
Radius of the center circle.

See Also:
Constant Field Values

CENTER_CIRCLE_WIDTH

public static final double CENTER_CIRCLE_WIDTH
Width of the center circle.

See Also:
Constant Field Values

CENTER_ICE_SPOT_RADIUS

public static final double CENTER_ICE_SPOT_RADIUS
Radius of the center spot.

See Also:
Constant Field Values

FACE_OFF_CIRCLE_RADIUS

public static final double FACE_OFF_CIRCLE_RADIUS
Radius of the face off circle.

See Also:
Constant Field Values

FACE_OFF_CIRCLE_WIDTH

public static final double FACE_OFF_CIRCLE_WIDTH
Width of the face off circle.

See Also:
Constant Field Values

FACE_OFF_SPOT_RADIUS

public static final double FACE_OFF_SPOT_RADIUS
Radius of the face off spot.

See Also:
Constant Field Values

FACE_OFF_OFFSET

public static final double FACE_OFF_OFFSET
Distance from the center to the face off spot.

See Also:
Constant Field Values

ENDZONE_FACE_OFF_OFFSET

public static final double ENDZONE_FACE_OFF_OFFSET
Distance from the center line to the endzone face off spot.

See Also:
Constant Field Values

NEUTRAL_ZONE_FACE_OFF_OFFSET

public static final double NEUTRAL_ZONE_FACE_OFF_OFFSET
Distance from the center line to the neutral zone face off spot.

See Also:
Constant Field Values

GOAL_CREASE_RADIUS

public static final double GOAL_CREASE_RADIUS
Radius of the goal crease.

See Also:
Constant Field Values

GOAL_CREASE_WIDTH

public static final double GOAL_CREASE_WIDTH
Width of the goal crease.

See Also:
Constant Field Values

GOAL_WIDTH

public static final double GOAL_WIDTH
Width of the goal.

See Also:
Constant Field Values

GOAL_POST_WIDTH

public static final double GOAL_POST_WIDTH
Width of the goal post.

See Also:
Constant Field Values

SCORE_LINE_OFFSET

public static final double SCORE_LINE_OFFSET
Distance from the center line to the scoring line.

See Also:
Constant Field Values

GOAL_NET_WIDTH

public static final double GOAL_NET_WIDTH
Width of the goal net.

See Also:
Constant Field Values

GOAL_NET_OFFSET

public static final double GOAL_NET_OFFSET
Distance from the center line to the goal net.

See Also:
Constant Field Values

COLOR_ICE

public static final java.awt.Color COLOR_ICE
The color used in the ice.


COLOR_BOARD

public static final java.awt.Color COLOR_BOARD
The color used in the boards.


COLOR_RED

public static final java.awt.Color COLOR_RED
The red color used in the center line, goal lines, face off cirles, face off spots, goal crease lines, and goal posts.


COLOR_BLUE

public static final java.awt.Color COLOR_BLUE
The blue color used in the center ice spot, center circle, and blue lines.


COLOR_LIGHT_BLUE

public static final java.awt.Color COLOR_LIGHT_BLUE
The light blue color used in the goal crease area.


scoreLines

public ScoreLine[] scoreLines
Constructor Detail

Rink

public Rink(Universe u)
Creates a rink in the universe u.