Modifier and Type | Method and Description |
---|---|
static java.lang.String |
SoundPlayed.get()
It returns the file name of the sound that has played.
|
static boolean |
SoundPlayed.get(java.lang.String soundPlayed)
It tells if it has played a sound associated with a file name.
|
static int |
WorldCreator.getDelay()
It returns the delay was set by any object.
|
static boolean |
WorldCreator.getDelay(int delay)
It verifies any object has set a delay.
|
static int |
WorldCreator.getSpeed()
It return the speed of the animation that was set by any object.
|
static boolean |
WorldCreator.getSpeed(int speed)
It verifies that any object has set this speed of the animation.
|
static <worldType> |
WorldCreator.getWorld(java.lang.Class<? extends greenfoot.World> worldType,
java.lang.Object... parameters)
It creates and activates a user world for testing.
|
static greenfoot.World |
WorldCreator.getWorld(int worldWidth,
int worldHeight,
int cellSize)
It creates and activates a generic world for testing.
|
static boolean |
WorldCreator.isStart()
It verifies if any object has start the animation calling to Greenfoot.Start().
|
static boolean |
WorldCreator.isStop()
It verifies if object has paused the animation calling to Greenfoot.Stop().
|
static void |
EventDispatch.keyboardExited()
It removes all events of the keyboard buffer.
|
static void |
EventDispatch.keyPressed(java.lang.String key)
It simulates a keyborad key that is pressed into the current world.
|
static void |
EventDispatch.keyReleased(java.lang.String key)
It simulates a keyborad key that is released into the current world.
|
static void |
EventDispatch.keyTyped(java.lang.String key)
It simulates a keyborad key that is typed into the current world.
|
static void |
EventDispatch.mouseClicked(int x,
int y)
It simulates that a mouse botton has been clicked into the current world.
|
static void |
EventDispatch.mouseClicked(int x,
int y,
int button,
int nClickes)
It simulates that a mouse botton has been clicked into the current world.
|
static void |
EventDispatch.mouseDragged(int x,
int y)
It simulates that a mouse button has been dragged over the current world.
|
static void |
EventDispatch.mouseDragged(int x,
int y,
int button)
It simulates that a mouse button has been dragged over the current world.
|
static void |
EventDispatch.mouseExited()
It removes all events of the mouse buffer.
|
static void |
EventDispatch.mouseMoved(int x,
int y)
It simulates that the mouse is moved around the current world.
|
static void |
EventDispatch.mousePressed(int x,
int y)
It simulates that a mouse botton has been pressed into the current world.
|
static void |
EventDispatch.mousePressed(int x,
int y,
int button)
It simulates that a mouse botton has been pressed into the current world.
|
static void |
EventDispatch.mouseReleased(int x,
int y)
It simulates that a mouse botton is released into the current world.
|
static void |
EventDispatch.mouseReleased(int x,
int y,
int button)
It simulates that a mouse botton is released into the current world.
|
static void |
WorldCreator.runOnce()
It executes one acts cycle (the act of world and the acts
of actors added to current world of the scenario).
|
static void |
WorldCreator.runOnce(greenfoot.Actor... actors)
It executes one act of the referred actors, that is, of the
actors of the list that is passed as a parameter only when
theirs world is the current world of the scenario.
|
static void |
WorldCreator.runOnce(greenfoot.World world)
It executes one acts cycle (the act of world and the acts
of actors added to world).
|
static void |
WorldCreator.runOnce(greenfoot.World world,
greenfoot.Actor... actors)
It executes an act cycle of the world and referenced actors that
have been added to this world.
|
static void |
Random.set(int nextNumber)
It queues a number in FIFO order for any next
Greenfoot.getRandomNumber(maximun) operation.
|
static void |
Random.set(int nextNumber,
java.lang.Class<?> callerClass)
It queues a number in FIFO order for any next
Greenfoot.getRandomNumber(maximun) operation
from objects of specific class.
|
static void |
Ask.set(java.lang.String nextAsk)
It queues a string in FIFO order for any next Greenfoot.ack("...") operation.
|
static void |
Ask.set(java.lang.String nextAsk,
java.lang.Class<?> callerClass)
It queues a string in FIFO order for any next Greenfoot.ack("...") operation
from objects of specific class.
|
static void |
WorldCreator.setMicLevel(int level)
It queues a microphone level in FIFO order for any next Greenfoot.getMicLevel() operation.
|