📄 rankboard.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -