- getActor() - Method in class greenfoot.MouseInfo
-
Return the actor (if any) that the current mouse behaviour is related to.
- getAwtImage() - Method in class greenfoot.GreenfootImage
-
Returns the java.awt.image.BufferedImage that backs this GreenfootImage.
- getBackground() - Method in class greenfoot.World
-
Return the world's background image.
- getButton() - Method in class greenfoot.MouseInfo
-
The number of the pressed or clicked button (if any).
- getCellSize() - Method in class greenfoot.World
-
Return the size of a cell (in pixels).
- getClickCount() - Method in class greenfoot.MouseInfo
-
Return the number of mouse clicks associated with this mouse event.
- getColor() - Method in class greenfoot.GreenfootImage
-
Return the current drawing color.
- getColorAt(int, int) - Method in class greenfoot.GreenfootImage
-
Return the color at the given pixel.
- getColorAt(int, int) - Method in class greenfoot.World
-
Return the color at the centre of the cell.
- getFont() - Method in class greenfoot.GreenfootImage
-
Get the current font.
- getHeight() - Method in class greenfoot.GreenfootImage
-
Return the height of the image.
- getHeight() - Method in class greenfoot.World
-
Return the height of the world (in number of cells).
- getImage() - Method in class greenfoot.Actor
-
Returns the image used to represent this actor.
- getInt(int) - Method in class greenfoot.UserInfo
-
Get the value of the int at the given index (0 to NUM_INTS-1, inclusive).
- getIntersectingObjects(Class) - Method in class greenfoot.Actor
-
Return all the objects that intersect this object.
- getKey() - Static method in class greenfoot.Greenfoot
-
Get the most recently pressed key, since the last time this method was
called.
- getMicLevel() - Static method in class greenfoot.Greenfoot
-
Get the microphone input level.
- getMouseInfo() - Static method in class greenfoot.Greenfoot
-
Return a mouse info object with information about the state of the
mouse.
- getMyInfo() - Static method in class greenfoot.UserInfo
-
Get the data stored for the current user.
- getNearby(int) - Static method in class greenfoot.UserInfo
-
Get a sorted list of the UserInfo items for this scenario surrounding the current user.
- getNeighbours(int, boolean, Class) - Method in class greenfoot.Actor
-
Return the neighbours to this object within a given distance.
- getObjects(Class) - Method in class greenfoot.World
-
Get all the objects in the world, or all the objects of a particular class.
- getObjectsAt(int, int, Class) - Method in class greenfoot.World
-
Return all objects at a given cell.
- getObjectsAtOffset(int, int, Class) - Method in class greenfoot.Actor
-
Return all objects that intersect the center of the given location (relative to
this object's location).
- getObjectsInRange(int, Class) - Method in class greenfoot.Actor
-
Return all objects within range 'radius' around this object.
- getOneIntersectingObject(Class) - Method in class greenfoot.Actor
-
Return an object that intersects this object.
- getOneObjectAtOffset(int, int, Class) - Method in class greenfoot.Actor
-
Return one object that is located at the specified cell (relative to this
objects location).
- getRandomNumber(int) - Static method in class greenfoot.Greenfoot
-
Return a random number between 0 (inclusive) and limit (exclusive).
- getRank() - Method in class greenfoot.UserInfo
-
Get the users overall rank for this scenario.
- getRotation() - Method in class greenfoot.Actor
-
Return the current rotation of this actor.
- getScore() - Method in class greenfoot.UserInfo
-
Get the user's score.
- getString(int) - Method in class greenfoot.UserInfo
-
Get the value of the String at the given index (0 to NUM_STRINGS-1, inclusive).
- getTop(int) - Static method in class greenfoot.UserInfo
-
Get a sorted list of the UserInfo items for this scenario, starting at the top.
- getTransparency() - Method in class greenfoot.GreenfootImage
-
Return the current transparency of the image.
- getUserImage() - Method in class greenfoot.UserInfo
-
Return an image of the user.
- getUserName() - Method in class greenfoot.UserInfo
-
Get the username of the user that this storage belongs to.
- getVolume() - Method in class greenfoot.GreenfootSound
-
Get the current volume of the sound, between 0 (off) and 100 (loudest.)
- getWidth() - Method in class greenfoot.GreenfootImage
-
Return the width of the image.
- getWidth() - Method in class greenfoot.World
-
Return the width of the world (in number of cells).
- getWorld() - Method in class greenfoot.Actor
-
Return the world that this actor lives in.
- getX() - Method in class greenfoot.Actor
-
Return the x-coordinate of the actor's current location.
- getX() - Method in class greenfoot.MouseInfo
-
Return the current x position of the mouse cursor.
- getY() - Method in class greenfoot.Actor
-
Return the y-coordinate of the object's current location.
- getY() - Method in class greenfoot.MouseInfo
-
Return the current y position of the mouse cursor.
- greenfoot - package greenfoot
-
- Greenfoot - Class in greenfoot
-
This utility class provides methods to control the simulation
and interact with the system.
- Greenfoot() - Constructor for class greenfoot.Greenfoot
-
- GreenfootImage - Class in greenfoot
-
An image to be shown on screen.
- GreenfootImage(String) - Constructor for class greenfoot.GreenfootImage
-
Create an image from an image file.
- GreenfootImage(int, int) - Constructor for class greenfoot.GreenfootImage
-
Create an empty (transparent) image with the specified size.
- GreenfootImage(GreenfootImage) - Constructor for class greenfoot.GreenfootImage
-
Create a GreenfootImage from another GreenfootImage.
- GreenfootImage(String, int, Color, Color) - Constructor for class greenfoot.GreenfootImage
-
Creates an image with the given string drawn as text using the given font size, with the given foreground
color on the given background color.
- GreenfootSound - Class in greenfoot
-
Represents audio that can be played in Greenfoot.
- GreenfootSound(String) - Constructor for class greenfoot.GreenfootSound
-
Creates a new sound from the given file.
- scale(int, int) - Method in class greenfoot.GreenfootImage
-
Scales this image to a new size.
- setActOrder(Class...) - Method in class greenfoot.World
-
Set the act order of objects in the world.
- setBackground(GreenfootImage) - Method in class greenfoot.World
-
Set a background image for the world.
- setBackground(String) - Method in class greenfoot.World
-
Set a background image for the world from an image file.
- setColor(Color) - Method in class greenfoot.GreenfootImage
-
Set the current drawing color.
- setColorAt(int, int, Color) - Method in class greenfoot.GreenfootImage
-
Sets the color at the given pixel to the given color.
- setFont(Font) - Method in class greenfoot.GreenfootImage
-
Set the current font.
- setImage(String) - Method in class greenfoot.Actor
-
Set an image for this actor from an image file.
- setImage(GreenfootImage) - Method in class greenfoot.Actor
-
Set the image for this actor to the specified image.
- setInt(int, int) - Method in class greenfoot.UserInfo
-
Set the value of the int at the given index (0 to NUM_INTS-1, inclusive).
- setLocation(int, int) - Method in class greenfoot.Actor
-
Assign a new location for this actor.
- setPaintOrder(Class...) - Method in class greenfoot.World
-
Set the paint order of objects in the world.
- setRotation(int) - Method in class greenfoot.Actor
-
Set the rotation of this actor.
- setScore(int) - Method in class greenfoot.UserInfo
-
Set the user's score.
- setSpeed(int) - Static method in class greenfoot.Greenfoot
-
Set the speed of the execution.
- setString(int, String) - Method in class greenfoot.UserInfo
-
Get the value of the String at the given index (0 to NUM_STRINGS-1, inclusive).
- setTransparency(int) - Method in class greenfoot.GreenfootImage
-
Set the transparency of the image.
- setVolume(int) - Method in class greenfoot.GreenfootSound
-
Set the current volume of the sound between 0 (off) and 100 (loudest.)
- setWorld(World) - Static method in class greenfoot.Greenfoot
-
Sets the World to run to the one given.
- start() - Static method in class greenfoot.Greenfoot
-
Run (or resume) the execution.
- started() - Method in class greenfoot.World
-
This method is called by the Greenfoot system when the execution has
started.
- stop() - Static method in class greenfoot.Greenfoot
-
Pause the execution.
- stop() - Method in class greenfoot.GreenfootSound
-
Stop playing this sound if it is currently playing.
- stopped() - Method in class greenfoot.World
-
This method is called by the Greenfoot system when the execution has
stopped.
- store() - Method in class greenfoot.UserInfo
-
Store the data to the server.
- STRING_LENGTH_LIMIT - Static variable in class greenfoot.UserInfo
-
The maximum number of characters that can be stored in each String