Package com.graphics

Examples of com.graphics.Shape


   * add new fishfood to the simulation
   * @param food
   *       for future development - when fishfood types will be supported.
   */
  public static void addFood(String food) {
    Shape s = new FishFood(cam);
    sim_shapes.add(s)
  }
View Full Code Here


 
  /**
   * moves the simulation forward
   */
  public static void step(){
    Shape s;
    for(int i = 0;i<sim_shapes.size();i++){
      s = sim_shapes.get(i);
      if(s instanceof Fish)
        ((Fish)s).fishStep();
      else if(s instanceof FishFood)
View Full Code Here

TOP

Related Classes of com.graphics.Shape

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.