SmartFrog 3.10.000

org.smartfrog.examples.pong
Class Immobile

java.lang.Object
  extended by org.smartfrog.examples.pong.Mass
      extended by org.smartfrog.examples.pong.Obstacle
          extended by org.smartfrog.examples.pong.Immobile

public class Immobile
extends Obstacle

Defines the Immobile object.


Field Summary
 
Fields inherited from class org.smartfrog.examples.pong.Obstacle
size
 
Constructor Summary
Immobile(int mass, java.awt.geom.Point2D initialPosition, java.awt.Dimension initialSize)
          Constructor.
 
Method Summary
 boolean collide(Obstacle obs, double timeWindow)
          Checks if obstacle collides or not.
 
Methods inherited from class org.smartfrog.examples.pong.Obstacle
collide, draw, 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

Immobile

public Immobile(int mass,
                java.awt.geom.Point2D initialPosition,
                java.awt.Dimension initialSize)
Constructor.

Parameters:
mass - the mass of the ball
initialPosition - the initial position of the ball
initialSize - the dimwnsion size
Method Detail

collide

public boolean collide(Obstacle obs,
                       double timeWindow)
Checks if obstacle collides or not.

Overrides:
collide in class Obstacle
Parameters:
obs - obstacle
timeWindow - window time
Returns:
true if collided else false

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP