Uses of Class
ppJava.serie04.oceanlife.OceanObject

Uses of OceanObject in ppJava.serie04.oceanlife
 

Subclasses of OceanObject in ppJava.serie04.oceanlife
 class Bubble
          A bubble floating up in the ocean
 class Fish
          A fish, swimming in the ocean
 class Plant
          A plant, growing in the ocean
 class Stone
          A stone falling down in the ocean
 

Fields in ppJava.serie04.oceanlife declared as OceanObject
private  OceanObject OceanGUI.pendingObject
          This object is generated if ToolBarItem is clicked and added if set a position in OceanCanvasPanel
 

Fields in ppJava.serie04.oceanlife with type parameters of type OceanObject
(package private)  java.util.LinkedList<OceanObject> OceanObjectJUnitTest.objList
           
private  java.util.LinkedList<OceanObject> Ocean.oceanObjects
           
 

Methods in ppJava.serie04.oceanlife that return types with arguments of type OceanObject
 java.util.LinkedList<OceanObject> OceanInterface.getOceanObjects()
          Returns a linked list of all OceanObjects
 java.util.LinkedList<OceanObject> Ocean.getOceanObjects()
           
 

Methods in ppJava.serie04.oceanlife with parameters of type OceanObject
 void OceanGUI.addNewObject(OceanObject oceanObject)
          Adds a oceanObject to ComboBox (of toolBar) and appends it to ocean
 void OceanInterface.addOceanObject(OceanObject oceanObject)
          Appends an oceanObject to the list
 void Ocean.addOceanObject(OceanObject oceanObject)
           
 void Fish.changeDirections(OceanObject tempRefObject)
          Change the directions and turn around the image
 void OceanObject.changeDirections(OceanObject tempRefObject)
          Change the direction in which to move of the object
private  void OceanObjectJUnitTest.checkNewObject(int[] position, OceanObject oceanObject)
           
private  void OceanObjectJUnitTest.checkObjectPosition(OceanObject oceanObject)
           
 boolean OceanObject.hasSameDirection(OceanObject tempRefObject)
          Have two objects the same X-direction?
 boolean OceanObject.isVulnerableTo(OceanObject tempRefObject)
          Can an object be eaten by another object?
 

Method parameters in ppJava.serie04.oceanlife with type arguments of type OceanObject
 void OceanGUI.checkObjectPositions(java.util.LinkedList<OceanObject> oceanObjects)
          Collision detection (i.e.
private  void OceanGUI.initOcean(java.util.LinkedList<OceanObject> objList)
          Initializes an ocean with fixed size and a list of OceanObjects
 void OceanInterface.setOceanObjects(java.util.LinkedList<OceanObject> oceanObjects)
          Sets a list of OceanObjects
 void Ocean.setOceanObjects(java.util.LinkedList<OceanObject> oceanObjects)
           
 

Constructor parameters in ppJava.serie04.oceanlife with type arguments of type OceanObject
Ocean(int width, int depth, java.util.LinkedList<OceanObject> oceanObjects)
          Constructor for an ocean with bounds and a already defined linked list of oceanObjects which can be null