Package | Description |
---|---|
controller | |
model |
Modifier and Type | Method and Description |
---|---|
private OceanObject |
MouseListener.getObjectFromClickPosition(java.awt.Point cP)
Gets the object from click position.
|
Modifier and Type | Class and Description |
---|---|
class |
Bubble
The Class Bubble.
|
class |
CokeCan
The Class CokeCan.
|
class |
Fish
The Class Fish.
|
class |
Plant
The Class Plant.
|
class |
Shark
The Class Shark.
|
class |
Stone
The Class Stone.
|
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<OceanObject> |
Ocean.newObjects
Holds the objects that are added to the ocean after all the collisions have been dealt with.
|
private java.util.LinkedList<OceanObject> |
Ocean.oceanObjects
The ocean's object list.
|
static java.util.LinkedList<OceanObject> |
Ocean.oceanObjectTypes
The Constant oceanObjectTypes.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<OceanObject> |
Ocean.getNewObjects()
Gets the new objects.
|
java.util.LinkedList<OceanObject> |
Ocean.getOceanObjects()
Returns the list of all oceanObjects.
|
java.util.LinkedList<OceanObject> |
OceanInterface.getOceanObjects() |
Modifier and Type | Method and Description |
---|---|
void |
Ocean.addOceanObject(OceanObject obj)
This method adds the given object to the list.
|
void |
OceanInterface.addOceanObject(OceanObject obj)
With this method, you add a new object to the
OceanObjectList (also to the ocean).
|
java.lang.Boolean |
Ocean.contains(OceanObject o)
This method checks the ocenObjectList; is the given object in the list?
|
java.lang.Boolean |
OceanInterface.contains(OceanObject o) |
void |
OceanObject.crushLowerObject(OceanObject obj2)
Crush the lower object.
|
void |
OceanObject.meBounce(OceanObject obj2)
Me bounce.
|
java.lang.Boolean |
OceanObject.movementCollisionTwo(OceanObject obj2)
Movement collision two.
|
java.lang.Boolean |
Ocean.positionOccupied(OceanObject o) |
java.lang.Boolean |
OceanInterface.positionOccupied(OceanObject o)
Determines whether the position of the object o is occupied
(i.e. whether the object o can be added there).
|
abstract void |
OceanObject.reaktion(OceanObject obj2)
This method describes the reaction of an object with a second object.
|
void |
CokeCan.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
void |
Shark.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
void |
Fish.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
void |
Bubble.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
void |
Plant.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
void |
Stone.reaktion(OceanObject obj2)
This method describes the way an object reacts after a collision.
|
java.lang.Boolean |
OceanObject.RectangleIntersect(OceanObject obj2)
This method detects a collision of two objects.
|
void |
Ocean.removeOceanObject(OceanObject o) |
void |
OceanInterface.removeOceanObject(OceanObject o)
This method removes a specific object from the OceanObjectList.
|
void |
OceanObject.topple(OceanObject obj2)
Topples the object left or right, by collision with object2.
|
void |
OceanObject.youBounce(OceanObject obj2)
You bounce.
|
Modifier and Type | Method and Description |
---|---|
private void |
Ocean.addNewlySpawnedObjectsToOcean(java.util.LinkedList<OceanObject> newObjects)
Adds the newly spawned objects to ocean.
|
private void |
Ocean.processStalledCollisions(java.util.LinkedList<Pair<OceanObject,OceanObject>> collisions)
This method deals with all the collisions that have occurred between ocean objects.
|
private void |
Ocean.processStalledCollisions(java.util.LinkedList<Pair<OceanObject,OceanObject>> collisions)
This method deals with all the collisions that have occurred between ocean objects.
|
void |
Ocean.setNewObjects(java.util.LinkedList<OceanObject> newObjects)
Sets the new objects.
|
void |
Ocean.setOceanObjects(java.util.LinkedList<OceanObject> oceanObjects) |
void |
OceanInterface.setOceanObjects(java.util.LinkedList<OceanObject> oceanObjects)
This method sets the ocean object list.
|
Constructor and Description |
---|
Ocean(int width,
int depth,
java.util.LinkedList<OceanObject> oceanObjects)
Instantiates a new ocean.
|