Class RandomShip

java.lang.Object
  |
  +--java.util.Observable
        |
        +--Body
              |
              +--Ship
                    |
                    +--DefaultShip
                          |
                          +--RandomShip
All Implemented Interfaces:
java.io.Serializable

public class RandomShip
extends DefaultShip

Create DefaultShip at a random location within the ((0,0),(600,-600)) rectangle, with some speed, acceleration, angle rate...

See Also:
Serialized Form

Inner classes inherited from class Ship
Ship.Fire
 
Inner classes inherited from class Body
Body.CollisionCheck, Body.CreatedLaterException, Body.DisabledException, Body.Projection
 
Fields inherited from class Body
angle, creation, id, movementX, movementY, player, positionX, positionY, radius, time, type
 
Constructor Summary
RandomShip(int playerId, long when)
           
 
Methods inherited from class DefaultShip
collision, destroy, fireOnce
 
Methods inherited from class Ship
deactivate, setAccelerating, setFiring, setFiringOff, setTurning
 
Methods inherited from class Body
activate, collisionCheck, collisionCheck, disable, enable, getAcceleration, getAngle, getId, getMaster, getPlayer, getRadius, getTime, getType, getX, getY, isAccelerating, project, setAcceleration, setAngleRate, update, updateComponents
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomShip

public RandomShip(int playerId,
                  long when)