A C D F G I M N P R S T U W

A

act() - Method in class greenfoot.Actor
每个actor的act方法都会被Greenfoot框架在每一个动作步(逻辑帧)中按指定的顺序依次调用,从而使得actor对象能够执行act方法所描述的动作行为。
act() - Method in class greenfoot.World
World对象的act方法。
Actor - Class in greenfoot
在Greenfoot世界中,每一个物体(对象 Object)都称为一个 Actor。
Actor() - Constructor for class greenfoot.Actor
创建一个Actor。
addedToWorld(World) - Method in class greenfoot.Actor
Greenfoot框架会在本actor被添加到对应的world后,立即调用此方法。
addObject(Actor, int, int) - Method in class greenfoot.World
向场景中添加一个actor对象。

C

clear() - Method in class greenfoot.GreenfootImage
清空全图。

D

delay(int) - Static method in class greenfoot.Greenfoot
将当前的逻辑执行延后一定数量的时间步。
drawImage(GreenfootImage, int, int) - Method in class greenfoot.GreenfootImage
将指定的图片绘制到本图片上。
drawLine(int, int, int, int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色在(x1, y1)(x2, y2)的两点之间绘制一条直线。
drawOval(int, int, int, int) - Method in class greenfoot.GreenfootImage
用当前绘制颜色绘制一个由指定矩形边界定义的椭圆轮廓。
drawPolygon(int[], int[], int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色绘制一个由顶点坐标数组x y 所定义的多边形轮廓。
drawRect(int, int, int, int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色绘制指定的矩形轮廓。
drawShape(Shape) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色在本图像上直接绘制指定的几何形体。
drawString(String, int, int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色和字体绘制指定的字符串。

F

fill() - Method in class greenfoot.GreenfootImage
用当前的绘制颜色绘制颜色填充全图。
fillOval(int, int, int, int) - Method in class greenfoot.GreenfootImage
用当前绘制颜色填充一个由指定矩形边界定义的椭圆。
fillPolygon(int[], int[], int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色填充一个由x y 数组定义顶点坐标的闭合多边形。
fillRect(int, int, int, int) - Method in class greenfoot.GreenfootImage
用当前的绘制颜色填充指定的矩形区域。
fillShape(Shape) - Method in class greenfoot.GreenfootImage
在本图像上直填充指定的几何形体。

G

getActor() - Method in class greenfoot.MouseInfo
返回与当前鼠标活动相关联的具体actor对象(若存在的话)。
getAwtImage() - Method in class greenfoot.GreenfootImage
返回本GreenfootImage背后的java.awt.image.BufferedImage对象。
getBackground() - Method in class greenfoot.World
返回本world的背景图片。
getButton() - Method in class greenfoot.MouseInfo
获得被按下的鼠标键的编号(若存在的话)。
getCellSize() - Method in class greenfoot.World
返回坐标格尺寸(以像素为单位)
getClickCount() - Method in class greenfoot.MouseInfo
返回当前鼠标事件所对应的点击次数。
getColor() - Method in class greenfoot.GreenfootImage
返回当前的绘制颜色。
getColorAt(int, int) - Method in class greenfoot.GreenfootImage
返回指定像素的颜色。
getColorAt(int, int) - Method in class greenfoot.World
返回坐标格中心点的颜色。
getFont() - Method in class greenfoot.GreenfootImage
获得当前绘制字体。
getHeight() - Method in class greenfoot.GreenfootImage
返回本图片高度。
getHeight() - Method in class greenfoot.World
返回场景高度(以坐标格为单位)。
getImage() - Method in class greenfoot.Actor
返回用于显示本actor外观的图片。
getInt(int) - Method in class greenfoot.UserInfo
获得所存的第index(从 0 到 NUM_INTS - 1,含 0 和 NUM_INTS - 1)个整数。
getIntersectingObjects(Class) - Method in class greenfoot.Actor
返回所有与本对象相交的指定类型的其他对象。
getKey() - Static method in class greenfoot.Greenfoot
获得这个方法上一次被调用后,被按下的最后一个键。
getMicLevel() - Static method in class greenfoot.Greenfoot
获得麦克风的输入音量。
getMouseInfo() - Static method in class greenfoot.Greenfoot
返回一个含有当前鼠标状态信息的MouseInfo对象。
getMyInfo() - Static method in class greenfoot.UserInfo
获得当前用户的数据存储实例。
getNearby(int) - Static method in class greenfoot.UserInfo
获得一个排名与当前用户相近的有序的用户信息列表。
getNeighbours(int, boolean, Class) - Method in class greenfoot.Actor
返回本对象周围指定距离内指定类型的其他对象。
getObjects(Class) - Method in class greenfoot.World
获得场景中的所有对象,或指定类型的所有对象。
getObjectsAt(int, int, Class) - Method in class greenfoot.World
返回位于指定坐标格的所有对象。
getObjectsAtOffset(int, int, Class) - Method in class greenfoot.Actor
返回所有与所给坐标格中心相交的指定类型的对象(坐标相对于本对象而言)。
getObjectsInRange(int, Class) - Method in class greenfoot.Actor
返回本对象周围指定半径内指定类型的其他对象。
getOneIntersectingObject(Class) - Method in class greenfoot.Actor
返回一个与本对象相交的指定类型的其他对象。
getOneObjectAtOffset(int, int, Class) - Method in class greenfoot.Actor
返回一个坐落于指定坐标的actor对象(坐标相对于本对象而言)。
getRandomNumber(int) - Static method in class greenfoot.Greenfoot
随机返回一个0(包含)到limit值(不包含)之间的整数。
getRank() - Method in class greenfoot.UserInfo
获得本用户再本游戏案例的总排名。
getRotation() - Method in class greenfoot.Actor
返回本对象当前的角度
getScore() - Method in class greenfoot.UserInfo
获得用户的得分。
getString(int) - Method in class greenfoot.UserInfo
获得所存的第index(从 0 到 STRING_INTS - 1,含 0 和 STRING_INTS - 1)个字符串。
getTop(int) - Static method in class greenfoot.UserInfo
获得本游戏案例的一个有序的UserInfo列表,排序从最高分开始。
getTransparency() - Method in class greenfoot.GreenfootImage
返回本图片的透明度。
getUserImage() - Method in class greenfoot.UserInfo
返回用户的头像图片。图片的尺寸为50x50像素。
getUserName() - Method in class greenfoot.UserInfo
获得信息所有者的用户名。
getVolume() - Method in class greenfoot.GreenfootSound
获得这个音频当前的播放音量,取值在0(静音)~100(最响)之间。
getWidth() - Method in class greenfoot.GreenfootImage
返回图片宽度。
getWidth() - Method in class greenfoot.World
返回场景宽度(以坐标格为单位)。
getWorld() - Method in class greenfoot.Actor
返回本对象所处的世界。
getX() - Method in class greenfoot.Actor
返回本对象的x坐标。
getX() - Method in class greenfoot.MouseInfo
返回鼠标当前的x坐标。
getY() - Method in class greenfoot.Actor
返回本对象的y坐标。
getY() - Method in class greenfoot.MouseInfo
返回鼠标当前的y坐标。
greenfoot - package greenfoot
 
Greenfoot - Class in greenfoot
这个工具类提供了一些控制游戏模拟和与Greenfoot系统互动的方法。
Greenfoot() - Constructor for class greenfoot.Greenfoot
 
GreenfootImage - Class in greenfoot
在Greenfoot系统中,可在屏幕上显示的图片都以GreenfootImage的形式存在。
GreenfootImage(String) - Constructor for class greenfoot.GreenfootImage
将图片文件载入成一个GreenfootImage。
GreenfootImage(int, int) - Constructor for class greenfoot.GreenfootImage
创建一个指定尺寸的空白(全透明)的GreenfootImage对象。
GreenfootImage(GreenfootImage) - Constructor for class greenfoot.GreenfootImage
根据另一个GreenfootImage对象创建新的GreenfootImage对象。
GreenfootImage(String, int, Color, Color) - Constructor for class greenfoot.GreenfootImage
根据指定的字符串、字号、前景色和背景色绘制一个新的GreenfootImage对象。 color on the given background color.
GreenfootSound - Class in greenfoot
GreenfootSound是Greenfoot系统中能够被播放的声音片段。
GreenfootSound(String) - Constructor for class greenfoot.GreenfootSound
根据指定的音频文件创建GreenfootSound。

I

intersects(Actor) - Method in class greenfoot.Actor
检测本对象与所给对象是否相交。
isKeyDown(String) - Static method in class greenfoot.Greenfoot
检测当前状态下,指定的按键是否有被按下。
isPlaying() - Method in class greenfoot.GreenfootSound
若这个音频正在被播放,则返回true。
isStorageAvailable() - Static method in class greenfoot.UserInfo
确认存储是否可用。
isTouching(Class) - Method in class greenfoot.Actor
检测本对象是否与任何所给类型的其他对象相接触。

M

mirrorHorizontally() - Method in class greenfoot.GreenfootImage
在水平方向上镜像原图片(原图的左部成为新图的右部,反之亦然)。
mirrorVertically() - Method in class greenfoot.GreenfootImage
在竖直方向上镜像原图片(原图的顶部成为新图的底部,反之亦然)。
mouseClicked(Object) - Static method in class greenfoot.Greenfoot
若鼠标在指定的对象之上被点击,则返回true。
mouseDragEnded(Object) - Static method in class greenfoot.Greenfoot
若鼠标对指定的对象拖动完毕,则返回true。
mouseDragged(Object) - Static method in class greenfoot.Greenfoot
若鼠标正在拖动指定的对象,则返回true。
MouseInfo - Class in greenfoot
MouseInfo类对象含有当前鼠标状态的一些信息。
mouseMoved(Object) - Static method in class greenfoot.Greenfoot
若鼠标在指定的对象之上移动,则返回true。
mousePressed(Object) - Static method in class greenfoot.Greenfoot
若鼠标在指定的对象之上被按下,则返回true。
move(int) - Method in class greenfoot.Actor
沿着目前的朝向将本对象移动指定的距离。

N

NUM_INTS - Static variable in class greenfoot.UserInfo
可以储存的整数的数目
NUM_STRINGS - Static variable in class greenfoot.UserInfo
可以储存的字符串的数目
numberOfObjects() - Method in class greenfoot.World
获得场景中actor对象当前的数目。

P

pause() - Method in class greenfoot.GreenfootSound
若音频正处于播放状态,暂停播放这个音频。
play() - Method in class greenfoot.GreenfootSound
开始播放这个音频。
playLoop() - Method in class greenfoot.GreenfootSound
开始循环播这个音频。
playSound(String) - Static method in class greenfoot.Greenfoot
播放一个声音文件。

R

removeObject(Actor) - Method in class greenfoot.World
从场景中移除指定的一个对象。
removeObjects(Collection) - Method in class greenfoot.World
从场景中移除指定的一系列对象。
removeTouching(Class) - Method in class greenfoot.Actor
移除一个与本对象接触的所给类型的对象(如果存在的话)。
repaint() - Method in class greenfoot.World
重绘整个场景。
rotate(int) - Method in class greenfoot.GreenfootImage
绕图像中心旋转指定角度。

S

scale(int, int) - Method in class greenfoot.GreenfootImage
缩放本图片至一个新的尺寸。
setActOrder(Class...) - Method in class greenfoot.World
设置场景中各对象的act顺序。
setBackground(GreenfootImage) - Method in class greenfoot.World
设置指定的图片作为本world的背景。
setBackground(String) - Method in class greenfoot.World
设置指定的图片文件作为本world的背景。
setColor(Color) - Method in class greenfoot.GreenfootImage
设置当前的绘制颜色。
setColorAt(int, int, Color) - Method in class greenfoot.GreenfootImage
将指定位置的像素点设置为指定颜色。
setFont(Font) - Method in class greenfoot.GreenfootImage
设置绘制字体。
setImage(String) - Method in class greenfoot.Actor
设置指定的图片文件作为本actor的外观。
setImage(GreenfootImage) - Method in class greenfoot.Actor
设定指定的图片作为本actor的外观。
setInt(int, int) - Method in class greenfoot.UserInfo
将第index(从 0 到 STRING_INTS - 1,含 0 和 STRING_INTS - 1)个整数存为指定的值。
setLocation(int, int) - Method in class greenfoot.Actor
为本对象设定一个新的坐标。
setPaintOrder(Class...) - Method in class greenfoot.World
设置场景中各对象的绘制顺序。
setRotation(int) - Method in class greenfoot.Actor
设定本对象的角度(朝向)。
setScore(int) - Method in class greenfoot.UserInfo
设置用户的得分为指定值。
setSpeed(int) - Static method in class greenfoot.Greenfoot
设置游戏模拟的运行速度。
setString(int, String) - Method in class greenfoot.UserInfo
将第index(从 0 到 STRING_INTS - 1,含 0 和 STRING_INTS - 1)个字符串存为指定的值。
setTransparency(int) - Method in class greenfoot.GreenfootImage
设置本图片的透明度。
setVolume(int) - Method in class greenfoot.GreenfootSound
设置这个音频的播放音量,在0(静音)~100(最响)之间取值。
setWorld(World) - Static method in class greenfoot.Greenfoot
将游戏模拟的场景设定为指定的World对象。
start() - Static method in class greenfoot.Greenfoot
开始(或恢复)运行。
started() - Method in class greenfoot.World
此方法会在程序开始(或恢复)运行时被Greenfoot系统调用。
stop() - Static method in class greenfoot.Greenfoot
暂停运行。
stop() - Method in class greenfoot.GreenfootSound
停止播放这个音频。
stopped() - Method in class greenfoot.World
此方法会在程序暂停运行时被Greenfoot系统调用。
store() - Method in class greenfoot.UserInfo
向服务器发出存储请求。
STRING_LENGTH_LIMIT - Static variable in class greenfoot.UserInfo
单个字符串的最大长度

T

toString() - Method in class greenfoot.GreenfootImage
返回一个描述本GreenfootImage对象的文本。
toString() - Method in class greenfoot.GreenfootSound
返回一个含本音频所加载的文件名、是否正被播放等信息的文本。
toString() - Method in class greenfoot.MouseInfo
 
turn(int) - Method in class greenfoot.Actor
将本对象旋转指定的角度 (以°为单位)。
turnTowards(int, int) - Method in class greenfoot.Actor
令本对象面朝指定的坐标格。

U

UserInfo - Class in greenfoot
我们可以利用UnserInfo类在Greenfoot网站的服务器上持久化地储存信息,当游戏在Greenfoot网站上运行时,各个玩家可以共享储存于服务器上存着的信息。

W

World - Class in greenfoot
World is the world that Actors live in.
World(int, int, int) - Constructor for class greenfoot.World
构造一个新的World对象。
World(int, int, int, boolean) - Constructor for class greenfoot.World
构造一个新的World对象。

A C D F G I M N P R S T U W

Greenfoot homepage