|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsofia.micro.greenfoot.Greenfoot
public class Greenfoot
A small "adaptor" class that provides Greenfoot-style static methods for some Sofia features. It is intended to provide for source-level compatibility of some Greenfoot examples.
Method Summary | |
---|---|
static int |
getRandomNumber(int limit)
Return a random number between 0 (inclusive) and limit (exclusive). |
static void |
setSpeed(int speed)
Set the speed of the execution. |
static void |
start()
Run (or resume) the execution. |
static void |
stop()
Pause the execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setSpeed(int speed)
speed
- The new speed. the value must be in the range (1..100)public static void stop()
public static void start()
public static int getRandomNumber(int limit)
limit
- The upper limit of the generated number--the generated
number will be strictly less than this limit.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |