|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface class for all SimWorlds.
Method Summary | |
void |
addObject(SimObject o)
Adds an object to this SimWorld |
int |
getBrightness(double x,
double y,
double z)
Returns the light level at the specified co-ordinate. |
java.util.LinkedList |
getObjectList()
Returns this SimWorld's object list |
long |
getTime()
Returns the number of 'ticks' since this world was started |
java.awt.Color |
getWorldColor()
Returns the background color of this SimWorld Created by: Simon Zienkiewicz |
boolean |
hasObstacle(double x,
double y,
double z)
Checks whether there is an obstacle in the specified co-ordinate |
void |
tick()
Performs one update loop |
Method Detail |
public void tick()
public long getTime()
public int getBrightness(double x, double y, double z)
x
- the x coordinate of position searchedy
- the y coordinate of position searchedz
- the z coordinate of position searched
public boolean hasObstacle(double x, double y, double z)
x
- the x coordinate of position searchedy
- the y coordinate of position searchedz
- the z coordinate of position searched
public java.util.LinkedList getObjectList()
public void addObject(SimObject o)
o
- the SimObject to be addedpublic java.awt.Color getWorldColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |