|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.examples.pong.Mass
org.smartfrog.examples.pong.Obstacle
org.smartfrog.examples.pong.Ball
public class Ball
Defines the utility methods for Ball object.
| Field Summary |
|---|
| Fields inherited from class org.smartfrog.examples.pong.Obstacle |
|---|
size |
| Constructor Summary | |
|---|---|
Ball(int mass,
java.awt.geom.Point2D initialPosition,
java.awt.Dimension initialSize)
Constructor. |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g2d)
Draws the Ball object. |
| Methods inherited from class org.smartfrog.examples.pong.Obstacle |
|---|
collide, collide, elasticCollision, getDimension, getLowerRightBound, getUpperLeftBound, setDimension, setDimension |
| Methods inherited from class org.smartfrog.examples.pong.Mass |
|---|
getAccel, getMass, getPosition, getSpeed, setAccel, setMass, setPosition, setPosition, setSpeed, setSpeed, toString, updatePosition, updateSpeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ball(int mass,
java.awt.geom.Point2D initialPosition,
java.awt.Dimension initialSize)
mass - the mass of the ballinitialPosition - the initial position of the ballinitialSize - the dimension size| Method Detail |
|---|
public void draw(java.awt.Graphics2D g2d)
draw in class Obstacleg2d - the graphics object
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||