| Package | Description | 
|---|---|
| asteroids.facade | |
| asteroids.model | 
| Modifier and Type | Method and Description | 
|---|---|
Bullet | 
Facade.createBullet(double x,
            double y,
            double velocityX,
            double velocityY,
            double radius)
BULLET: Basic methods 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<? extends Bullet> | 
Facade.getBulletsOnShip(Ship ship)
SHIP: Methods related to loaded bullets 
 | 
java.util.Set<? extends Bullet> | 
Facade.getWorldBullets(World world)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Facade.addBulletToWorld(World world,
                Bullet bullet)  | 
double | 
Facade.getBulletMass(Bullet bullet)  | 
double[] | 
Facade.getBulletPosition(Bullet bullet)  | 
double | 
Facade.getBulletRadius(Bullet bullet)  | 
Ship | 
Facade.getBulletShip(Bullet bullet)  | 
Ship | 
Facade.getBulletSource(Bullet bullet)  | 
double[] | 
Facade.getBulletVelocity(Bullet bullet)  | 
World | 
Facade.getBulletWorld(Bullet bullet)  | 
boolean | 
Facade.isTerminatedBullet(Bullet bullet)  | 
void | 
Facade.loadBulletOnShip(Ship ship,
                Bullet bullet)  | 
void | 
Facade.removeBulletFromShip(Ship ship,
                    Bullet bullet)  | 
void | 
Facade.removeBulletFromWorld(World world,
                     Bullet bullet)  | 
void | 
Facade.terminateBullet(Bullet bullet)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Facade.loadBulletsOnShip(Ship ship,
                 java.util.Collection<Bullet> bullets)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<Bullet> | 
Ship.getBullets()
Return the bullets loaded onto this ship. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
Ship.isValidBullet(Bullet bullet)
Return true if given bullet is not loaded on ship. 
 | 
void | 
Ship.loadBullet(Bullet bullet)
Load the given bullet onto the ship. 
 | 
void | 
Ship.removeBulletShip(Bullet bullet)
Remove given bullet from ship. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Ship.loadSetOfBullets(java.util.Collection<Bullet> bullets)
Load a set of bullets onto the ship. 
 |