fi.utu.cs.hockey.rink
Class GoalNet

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.GoalNet
All Implemented Interfaces:
Shapable

public class GoalNet
extends Line

A goal net.


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
GoalNet(boolean half)
          A goal net.
 
Method Summary
 boolean isDrawn()
          Returns a boolean value indicating whether the outline of the shape is drawn or not.
 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, 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

GoalNet

public GoalNet(boolean half)
A goal net.

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

isDrawn

public boolean isDrawn()
Description copied from interface: Shapable
Returns a boolean value indicating whether the outline of the shape is drawn or not.

Specified by:
isDrawn in interface Shapable
Overrides:
isDrawn in class Line
See Also:
Shapable.stroke(), Shapable.color()

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