spacewar
Class Bullet

java.lang.Object
  |
  +--spacewar.SpaceObject
        |
        +--spacewar.Bullet

class Bullet
extends SpaceObject


Constructor Summary
(package private) Bullet(Game theGame, double xP, double yP, double xV, double yV)
          
Advised by: spacewar.Display2.BulletDA, spacewar.Display1.BulletDA
 
Method Summary
(package private)  void clockTick()
          
(package private)  int getSize()
          
(package private)  void handleCollision(SpaceObject obj)
          
 
Methods inherited from class spacewar.SpaceObject
, accelerate, die, getGame, getOldXPos, getOldYPos, getXPos, getXVel, getYPos, getYVel, isAlive, setIsAlive, setXVel, setYVel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bullet

Bullet(Game theGame,
       double xP,
       double yP,
       double xV,
       double yV)

Advised by: spacewar.Display2.BulletDA, spacewar.Display1.BulletDA
Method Detail

getSize

int getSize()
Overrides:
getSize in class SpaceObject

handleCollision

void handleCollision(SpaceObject obj)
Overrides:
handleCollision in class SpaceObject

clockTick

void clockTick()
Overrides:
clockTick in class SpaceObject