|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.ObjectActivity
netsurfers.gicp.net.GameActivity
public class GameActivity
GameActivity is the main activity of the game. Extends
Activity
and implements Runnable
.This
Thread is the game life circle
构造方法摘要 | |
---|---|
GameActivity()
|
方法摘要 | |
---|---|
void |
onConfigurationChanged(Configuration newConfig)
Called when the screen orientation change |
boolean |
onKeyDown(int keyCode,
KeyEvent event)
(non-Javadoc) |
boolean |
onKeyLongPress(int keyCode,
KeyEvent event)
(non-Javadoc) |
boolean |
onKeyUp(int keyCode,
KeyEvent event)
(non-Javadoc) |
void |
run()
The game life circle |
void |
startMenuActivity()
Start the menu activity |
void |
stopGame()
Quit this game |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GameActivity()
方法详细信息 |
---|
public void onConfigurationChanged(Configuration newConfig)
Activity
public void run()
Runnable
中的 run
Runnable.run()
public void startMenuActivity()
public void stopGame()
public boolean onKeyDown(int keyCode, KeyEvent event)
Activity
public boolean onKeyLongPress(int keyCode, KeyEvent event)
Activity
public boolean onKeyUp(int keyCode, KeyEvent event)
Activity
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |