netsurfers.gicp.net
类 GameActivity

java.lang.Object
  继承者 Activity
      继承者 netsurfers.gicp.net.GameActivity
所有已实现的接口:
Runnable

public class GameActivity
extends Activity
implements Runnable

GameActivity is the main activity of the game. Extends Activity and implements Runnable .This Thread is the game life circle

作者:
Ziliang Wang, E-mail: Lional.King@gmail.com

构造方法摘要
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
 

构造方法详细信息

GameActivity

public GameActivity()
方法详细信息

onConfigurationChanged

public void onConfigurationChanged(Configuration newConfig)
Called when the screen orientation change

另请参见:
Activity

run

public void run()
The game life circle

指定者:
接口 Runnable 中的 run
另请参见:
Runnable.run()

startMenuActivity

public void startMenuActivity()
Start the menu activity


stopGame

public void stopGame()
Quit this game


onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)
(non-Javadoc)

另请参见:
Activity

onKeyLongPress

public boolean onKeyLongPress(int keyCode,
                              KeyEvent event)
(non-Javadoc)

另请参见:
Activity

onKeyUp

public boolean onKeyUp(int keyCode,
                       KeyEvent event)
(non-Javadoc)

另请参见:
Activity