⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rankboard.java

📁 关于j2me的宠物游戏!!!!!!!!!!! 希望打架提出意见
💻 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 + -