sofia.micro.jeroo
Class Island

java.lang.Object
  extended by greenfoot.sofiainternal.World
      extended by sofia.micro.World
          extended by sofia.micro.ScriptableWorld
              extended by sofia.micro.jeroo.Island
All Implemented Interfaces:
Script

public class Island
extends ScriptableWorld

Represents an island where Jeroos live (e.g., Santong Island).

Version:
$Date: 2012/08/06 11:13 $
Author:
Stephen Edwards, Last changed by $Author: edwards $

Constructor Summary
Island()
          Construct a new island with a default size of 20 x 12 cells.
Island(int width, int height)
          Construct a new world.
 
Method Summary
 
Methods inherited from class sofia.micro.ScriptableWorld
act, add, add, getScript, remove, script, scriptStep, setBackgroundColor, setCellBackground, setGridColor, setScript, setWorldBackground, stopScript
 
Methods inherited from class sofia.micro.World
backgroundIsForCells, getBackground, getHeight, getObjects, getObjects, getObjectsAt, getOrientation, getSpeed, getWidth, numberOfObjects, setActOrder, setCellBackground, setOrientation, setPaintOrder, setScaledCellSize, setSpeed, setWorldBackground, start, started, stop, stopped
 
Methods inherited from class greenfoot.sofiainternal.World
_gf_addObject, _gf_getBackground, _gf_getCellSize, _gf_getColorAt, _gf_getIntersectingObjects, _gf_getNeighbours, _gf_getObjects, _gf_getObjectsAt, _gf_getObjectsInDirection, _gf_getObjectsInRange, _gf_getOneIntersectingObject, _gf_getOneObjectAt, _gf_removeObject, _gf_removeObjects, _gf_repaint, _gf_setActOrder, _gf_setBackground, _gf_setBackground, _gf_setPaintOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Island

public Island()
Construct a new island with a default size of 20 x 12 cells.


Island

public Island(int width,
              int height)
Construct a new world. The size of the world (in number of cells) must be specified.

Parameters:
width - The width of the world (in cells).
height - The height of the world (in cells).


Greenfoot homepage