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

📄 map.java

📁 又是一款j2me 游戏
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2005-4-9 12:51:46
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name:   Map.java

package girl60;

import javax.microedition.lcdui.Graphics;

// Referenced classes of package AfterDark:
//            Room, GameConstant

public class Map
    implements GameConstant
{

    public Map()
    {
        roomLinkX = null;
        roomLinkY = null;
        roomLinkID = null;
        playerLocX = null;
        playerLocY = null;
        keyItemList = null;
        room = null;
        nextMapId = 0;
        initPLocX = 0;
        initPLocY = 0;
        itemLocX = new int[18][];
        itemLocY = new int[18][];
        itemID = new int[18][];
        doorLocX = new int[18][];
        doorLocY = new int[18][];
        doorKeyID = new int[18][];
        eventLocX = new int[18][];
        eventLocY = new int[18][];
        eventID = new int[18][];
    }

    public void Initial(int roomID)
    {
        room = new Room();
        nextMapId = 0;
        initPLocX = 127;
        initPLocY = 444;
        LoadRoom(roomID);
    }

    public void InitialGameData()
    {
        for(int i = 0; i < itemID.length; i++)
        {
            itemLocX[i] = null;
            itemLocY[i] = null;
            itemID[i] = null;
            doorLocX[i] = null;
            doorLocY[i] = null;
            doorKeyID[i] = null;
            eventLocX[i] = null;
            eventLocY[i] = null;
            eventID[i] = null;
            switch(i)
            {
            case 1: // '\001'
            {
                int iLocX[] = {
                    6, 4, 4, 7
                };
                int iLocY[] = {
                    5, 0, 0, 5
                };
                int iID[] = {
                    4, 10, 0, 5
                };
                int dLocX[] = {
                    0, 2, 0, 8
                };
                int dLocY[] = {
                    1, 5, 7, 7
                };
                int dKeyID[] = {
                    11, 20, 10, 11
                };
                int eLocX[] = {
                    4, 1
                };
                int eLocY[] = {
                    11, 7
                };
                int eID[] = {
                    2, -1
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 2: // '\002'
            {
                int iLocX[] = {
                    6, 8, 8, 1
                };
                int iLocY[] = {
                    0, 0, 6, 8
                };
                int iID[] = {
                    16, 4, 12, 19
                };
                int dLocX[] = {
                    7, 3, 6
                };
                int dLocY[] = {
                    3, 8, 10
                };
                int dKeyID[] = {
                    13, 12, 12
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                break;
            }

            case 3: // '\003'
            {
                int iLocX[] = {
                    3, 3, 5
                };
                int iLocY[] = {
                    0, 7, 3
                };
                int iID[] = {
                    11, 15, 4
                };
                int dLocX[] = {
                    7, 6, 5
                };
                int dLocY[] = {
                    0, 4, 7
                };
                int dKeyID[] = {
                    20, 11, 13
                };
                int eLocX[] = {
                    7
                };
                int eLocY[] = {
                    4
                };
                int eID[] = {
                    99
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 4: // '\004'
            {
                int iLocX[] = {
                    1, 3, 8
                };
                int iLocY[] = {
                    0, 5, 9
                };
                int iID[] = {
                    4, 4, 7
                };
                int dLocX[] = {
                    7
                };
                int dLocY[] = {
                    4
                };
                int dKeyID[] = {
                    13
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                break;
            }

            case 6: // '\006'
            {
                int iLocX[] = {
                    7
                };
                int iLocY[] = {
                    8
                };
                int iID[] = {
                    1
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                break;
            }

            case 7: // '\007'
            {
                int iLocX[] = {
                    4, 2, 6
                };
                int iLocY[] = {
                    2, 4, 4
                };
                int iID[] = {
                    8, 6, 13
                };
                int eLocX[] = {
                    4
                };
                int eLocY[] = {
                    7
                };
                int eID[] = {
                    -1
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 8: // '\b'
            {
                int iLocX[] = {
                    3, 2, 4
                };
                int iLocY[] = {
                    0, 1, 1
                };
                int iID[] = {
                    17, 9, 14
                };
                int eLocX[] = {
                    8
                };
                int eLocY[] = {
                    2
                };
                int eID[] = {
                    -1
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 9: // '\t'
            {
                int iLocX[] = {
                    5, 5
                };
                int iLocY[] = {
                    1, 1
                };
                int iID[] = {
                    2, 5
                };
                int eLocX[] = {
                    5
                };
                int eLocY[] = {
                    7
                };
                int eID[] = {
                    13
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 10: // '\n'
            {
                int iLocX[] = {
                    5
                };
                int iLocY[] = {
                    1
                };
                int iID[] = {
                    5
                };
                int eLocX[] = {
                    5
                };
                int eLocY[] = {
                    6
                };
                int eID[] = {
                    -1
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 12: // '\f'
            {
                int iLocX[] = {
                    1, 5, 6
                };
                int iLocY[] = {
                    2, 0, 0
                };
                int iID[] = {
                    18, 5, 6
                };
                int dLocX[] = {
                    2, 6
                };
                int dLocY[] = {
                    0, 2
                };
                int dKeyID[] = {
                    20, 20
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                break;
            }

            case 13: // '\r'
            {
                int iLocX[] = {
                    6
                };
                int iLocY[] = {
                    4
                };
                int iID[] = {
                    4
                };
                itemLocX[i] = iLocX;
                itemLocY[i] = iLocY;
                itemID[i] = iID;
                break;
            }

            case 15: // '\017'
            {
                int eLocX[] = {
                    4
                };
                int eLocY[] = {
                    7
                };
                int eID[] = {
                    90
                };
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                break;
            }

            case 16: // '\020'
            {
                int eLocX[] = {
                    4
                };
                int eLocY[] = {
                    7
                };
                int eID[] = {
                    91
                };
                int dLocX[] = {
                    4
                };
                int dLocY[] = {
                    7
                };
                int dKeyID[] = {
                    20
                };
                eventLocX[i] = eLocX;
                eventLocY[i] = eLocY;
                eventID[i] = eID;
                doorLocX[i] = dLocX;
                doorLocY[i] = dLocY;
                doorKeyID[i] = dKeyID;
                break;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -