fi.utu.cs.hockey.rink
Class GoalLine

java.lang.Object
  |
  +--fi.utu.cs.physics.Particle
        |
        +--fi.utu.cs.physics.Boundary
              |
              +--fi.utu.cs.physics.BoundaryLine
                    |
                    +--fi.utu.cs.hockey.rink.Line
                          |
                          +--fi.utu.cs.hockey.rink.GoalLine
All Implemented Interfaces:
Shapable

public class GoalLine
extends Line

A goal line.


Field Summary
 
Fields inherited from class fi.utu.cs.physics.BoundaryLine
HORIZONTAL, OTHER, VERTICAL
 
Fields inherited from class fi.utu.cs.physics.Boundary
boundaryEpsilon
 
Constructor Summary
GoalLine(boolean half)
          A goal line.
 
Method Summary
 java.lang.String toString()
          Returns a string that contains the values of the attributes.
 
Methods inherited from class fi.utu.cs.hockey.rink.Line
color, isDrawn, isFilled, paint, shape, stroke
 
Methods inherited from class fi.utu.cs.physics.BoundaryLine
elasticCollision, getEndPoints, getType, inelasticCollision, isCrossedByBoundingBox, isCrossedByLine
 
Methods inherited from class fi.utu.cs.physics.Boundary
isCrossed
 
Methods inherited from class fi.utu.cs.physics.Particle
addCollisionNotification, clearCollisionNotifications, getOwner, isCollisionNotified, isCollisionNotified, isCorporeal, removeCollisionNotification, setCorporeal, setEthereal, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoalLine

public GoalLine(boolean half)
A goal line.

Parameters:
half - In which half of the rink the line is.
Method Detail

toString

public java.lang.String toString()
Description copied from class: BoundaryLine
Returns a string that contains the values of the attributes.

Overrides:
toString in class BoundaryLine