|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fi.utu.cs.physics.Particle
|
+--fi.utu.cs.physics.Body
|
+--fi.utu.cs.physics.FrictionalBody
|
+--fi.utu.cs.hockey.Puck
A puck.
| Field Summary | |
static double |
DIAMETER
Diameter of the puck. |
| Fields inherited from interface fi.utu.cs.hockey.rink.FaceOff |
CENTER_SPOT, HOME_ENDZONE_LEFT, HOME_ENDZONE_RIGHT, HOME_NEUTRAL_ZONE_LEFT, HOME_NEUTRAL_ZONE_RIGHT, VISITOR_ENDZONE_LEFT, VISITOR_ENDZONE_RIGHT, VISITOR_NEUTRAL_ZONE_LEFT, VISITOR_NEUTRAL_ZONE_RIGHT |
| Constructor Summary | |
Puck(Point2 p)
Creates a puck at position p. |
|
| Method Summary | |
java.awt.Color |
color()
Returns a Color object that is used for drawing
the outline. |
void |
faceoff(int s)
Drops the puck at faceoff spot s. |
boolean |
isDrawn()
Returns a boolean value indicating whether the outline of the shape is drawn or not. |
boolean |
isFilled()
Returns a boolean value indicating whether the shape is filled or not. |
ShapeIterator |
iterator()
|
java.awt.Paint |
paint()
Returns a Paint object that is used for filling
the shape. |
java.awt.Shape |
shape()
Returns a Shape object that defines the appearance
of the object. |
java.awt.Stroke |
stroke()
Returns a Stroke object that is used for drawing
the outline. |
java.lang.String |
toString()
Returns a string that contains the values of the attributes. |
| Methods inherited from class fi.utu.cs.physics.FrictionalBody |
futureVelocity, getFriction, setFriction |
| Methods inherited from class fi.utu.cs.physics.Body |
advance, elasticCollision, futurePosition, getAcceleration, getMass, getPosition, getRadius, getVelocity, inelasticCollision, isColliding, isOverlapping, setAcceleration, setAcceleration, setMass, setPosition, setPosition, setRadius, setVelocity, setVelocity |
| 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 |
| Field Detail |
public static final double DIAMETER
| Constructor Detail |
public Puck(Point2 p)
p.
| Method Detail |
public void faceoff(int s)
s.
FaceOffpublic java.awt.Shape shape()
ShapableShape object that defines the appearance
of the object.
shape in interface ShapableShapepublic boolean isDrawn()
Shapable
isDrawn in interface ShapableShapable.stroke(),
Shapable.color()public java.awt.Stroke stroke()
ShapableStroke object that is used for drawing
the outline.
stroke in interface ShapableShapable.isDrawn(),
Strokepublic java.awt.Color color()
ShapableColor object that is used for drawing
the outline.
color in interface ShapableShapable.isDrawn(),
Colorpublic boolean isFilled()
Shapable
isFilled in interface ShapableShapable.paint()public java.awt.Paint paint()
ShapablePaint object that is used for filling
the shape.
paint in interface ShapableShapable.isFilled(),
Paintpublic ShapeIterator iterator()
iterator in interface MultiShapablepublic java.lang.String toString()
FrictionalBody
toString in class FrictionalBody
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||