| Package | Description | 
|---|---|
| asteroids.model | |
| asteroids.model.Programs.Expressions | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
Asteroid
A class representing a MinorPlanet of the type Asteroid, involving a position, a velocity and a radius. 
 | 
class  | 
BlackHole
Created by stef on 13-7-17. 
 | 
class  | 
Bullet
A class representing a Bullet involving a position, a velocity, and a radius. 
 | 
class  | 
MinorPlanet
A class representing an Entity of the type MinorPlanet, involving a position, a velocity and a radius. 
 | 
class  | 
Planetoid
A class representing a MinorPlanet of the type Planetoid, involving a position, a velocity and a radius. 
 | 
class  | 
Ship
A class representing an Asteroid Ship involving a position, a velocity, an angle and a radius 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Entity | 
World.getEntityAtPosition(double x,
                   double y)
Return the entity, if any, at the given x- and y-coordinate. 
 | 
Entity[] | 
World.getNextCollidingEntities()
Method that returns the entities involved in the next collision. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<Entity> | 
World.getEntitySet()
Return the set of Entities of this world. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
World.addEntity(Entity entity)
Add the given entity to the world. 
 | 
void | 
Entity.bounceOffEntity(Entity other)
Resolve the bouncing of this entity with another given entity. 
 | 
void | 
Asteroid.collide(Entity other)
Method to resolve collisions between an Asteroid and another entity. 
 | 
void | 
Bullet.collide(Entity other)
Resolve collisions between a bullet and another entity. 
 | 
void | 
BlackHole.collide(Entity other)  | 
abstract void | 
Entity.collide(Entity other)  | 
void | 
Ship.collide(Entity other)
Resolve the collision of a ship with another entity. 
 | 
void | 
Planetoid.collide(Entity other)
Resolve the collision of a Planetoid with another Entity. 
 | 
void | 
MinorPlanet.collide(Entity other)
Resolve the collision of a MinorPlanet with another entity. 
 | 
boolean | 
World.entityOutOfBounds(Entity entity)
Return true if the entity is out of bounds. 
 | 
double | 
Entity.getDistanceBetween(Entity other)
Compute the distance between two entities. 
 | 
double | 
Entity.getDistanceBetweenCenters(Entity other)
Method getting returning the distance between the centers of two entitues 
 | 
double[] | 
Entity.getPositionCollisionWithEntity(Entity other)
Method returning the position of the collision between this and another entity 
 | 
double | 
Entity.getTimeCollisionWithEntity(Entity entity2)
Method returning the time until a collision happens between this entity and entity2 
 | 
boolean | 
Entity.isInRange(Entity other)
Check whether entity is in range of another entity or not. 
 | 
boolean | 
World.isValidEntity(Entity entity)
Return true if the entity is valid for this world. 
 | 
boolean | 
Entity.overlap(Entity other)
Check if two entities overlap. 
 | 
void | 
World.removeEntity(Entity entity)
Remove the given entity from the world. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Entity | 
entity.evaluate(java.lang.Object[] args,
        java.util.Set<Variable> variables)  | 
| Constructor and Description | 
|---|
getRadius(Expression<? extends Entity> entity,
         asteroids.part3.programs.SourceLocation location)  | 
getVelocityX(Expression<? extends Entity> e,
            asteroids.part3.programs.SourceLocation location)  | 
getVelocityY(Expression<? extends Entity> expression,
            asteroids.part3.programs.SourceLocation location)  | 
getX(Expression<? extends Entity> expression,
    asteroids.part3.programs.SourceLocation location)  | 
getY(Expression<? extends Entity> expression,
    asteroids.part3.programs.SourceLocation location)  |