| Package | Description | 
|---|---|
| asteroids.facade | |
| asteroids.model | 
| Modifier and Type | Method and Description | 
|---|---|
Ship | 
Facade.createShip()
SHIP: Basic methods 
 | 
Ship | 
Facade.createShip(double positionX,
          double positionY,
          double velocityX,
          double velocityY,
          double radius,
          double angle)  | 
Ship | 
Facade.createShip(double x,
          double y,
          double xVelocity,
          double yVelocity,
          double radius,
          double direction,
          double mass)  | 
Ship | 
Facade.getBulletShip(Bullet bullet)  | 
Ship | 
Facade.getBulletSource(Bullet bullet)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<? extends Ship> | 
Facade.getWorldShips(World world)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Facade.addShipToWorld(World world,
              Ship ship)  | 
java.util.List<java.lang.Object> | 
Facade.executeProgram(Ship ship,
              double dt)  | 
void | 
Facade.fireBullet(Ship ship)  | 
java.util.Set<? extends Bullet> | 
Facade.getBulletsOnShip(Ship ship)
SHIP: Methods related to loaded bullets 
 | 
double[] | 
Facade.getCollisionPosition(Ship ship1,
                    Ship ship2)  | 
double | 
Facade.getDistanceBetween(Ship ship1,
                  Ship ship2)  | 
int | 
Facade.getNbBulletsOnShip(Ship ship)  | 
double | 
Facade.getShipAcceleration(Ship ship)  | 
double | 
Facade.getShipMass(Ship ship)  | 
double | 
Facade.getShipOrientation(Ship ship)  | 
double[] | 
Facade.getShipPosition(Ship ship)  | 
Program | 
Facade.getShipProgram(Ship ship)
PROGRAMS 
 | 
double | 
Facade.getShipRadius(Ship ship)  | 
double[] | 
Facade.getShipVelocity(Ship ship)
METHODS PART 1 
 | 
World | 
Facade.getShipWorld(Ship ship)  | 
double | 
Facade.getTimeToCollision(Ship ship1,
                  Ship ship2)  | 
boolean | 
Facade.isShipThrusterActive(Ship ship)  | 
boolean | 
Facade.isTerminatedShip(Ship ship)  | 
void | 
Facade.loadBulletOnShip(Ship ship,
                Bullet bullet)  | 
void | 
Facade.loadBulletsOnShip(Ship ship,
                 java.util.Collection<Bullet> bullets)  | 
void | 
Facade.loadProgramOnShip(Ship ship,
                 Program program)  | 
void | 
Facade.move(Ship ship,
    double dt)  | 
boolean | 
Facade.overlap(Ship ship1,
       Ship ship2)  | 
void | 
Facade.removeBulletFromShip(Ship ship,
                    Bullet bullet)  | 
void | 
Facade.removeShipFromWorld(World world,
                   Ship ship)  | 
void | 
Facade.setThrusterActive(Ship ship,
                 boolean active)  | 
void | 
Facade.terminateShip(Ship ship)  | 
void | 
Facade.thrust(Ship ship,
      double amount)  | 
void | 
Facade.turn(Ship ship,
    double angle)  | 
| Modifier and Type | Method and Description | 
|---|---|
Ship | 
Bullet.getBulletSource()
Return the source of the fired bullet as a Ship. 
 | 
Ship | 
Bullet.getShip()
Return the ship to which the current bullet is attached to. 
 | 
Ship | 
Program.getShip()  | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
Entity.getTimeCollisionWithShip(Ship ship2)
Method returning the time until a collision happens between this entity and ship2 
 | 
void | 
Bullet.setBulletsource(Ship ship)
Set the source of the fired bullet to the given ship 
 | 
void | 
Bullet.setShip(Ship ship)
Sets the ship of the current bullet to the given ship. 
 | 
void | 
Program.setShip(Ship ship)  |