rankboard.java
来自「关于j2me的宠物游戏!!!!!!!!!!! 希望打架提出意见」· Java 代码 · 共 50 行
JAVA
50 行
/*
* RankBoard.java
*
* Created on 2006年5月5日, 上午11:42
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package DogPet;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;
// Referenced classes of package com.webineti:
// ScoreStore, Game_control
public class RankBoard extends Canvas
{
public RankBoard(Game_control gc)
{
store = new ScoreStore();
game_control = gc;
repaint();
}
public void paint(Graphics g1)
{
}
protected void keyPressed(int keyCode)
{
int action = getGameAction(keyCode);
switch(action)
{
case 1: // '\001'
repaint();
break;
case 6: // '\006'
repaint();
break;
}
}
private Game_control game_control;
private ScoreStore store;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?