📄 play.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
import java.util.Random;
import javax.microedition.lcdui.Graphics;
// Referenced classes of package game:
// Item, Fight, Image2, RecStore,
// Scroller, MultiOutPut, GameScreen
public class Play
{
int BOXSTARTX;
int BOXSTARTY;
private int _$540;
private int _$542;
private static final int _$544 = 18;
private static final int _$543 = 15;
private int _$541;
private static final char _$538 = 7;
private static final char _$535 = 4;
private static final char _$534 = 3;
private static final char _$536 = 5;
private static final char _$539 = 8;
private static final char _$533 = 1;
private static final char _$532 = 0;
private static final char _$537 = 6;
private static final int _$629 = 12;
private static final int _$630 = 8;
private static final int _$628 = 12;
Image2 I2Armor;
Image2 I2DialogBox;
Image2 I2ExtraLeafs;
Image2 I2ExtraRoof;
Image2 I2ExtraSign;
Image2 I2King;
Image2 I2MVBS;
Image2 I2PNJ;
Image2 I2Player;
Image2 I2Signs;
Image2 I2Sword;
Image2 I2Treasure;
private static final int _$612 = 45;
Item ItFound;
Item ItPlayerArmor[];
Item ItPlayerSword[];
Item ItSacItems[];
Item ItShopItem[];
private static final int _$531 = 80;
private static final int _$919 = 20;
private static final int _$583 = 5;
private static final int _$547 = 90;
private static final int _$556 = 2;
private static final int _$571 = 60;
private static final int _$557 = 5;
int SCREENHEIGHT;
int SCREENWIDTH;
protected int SPEED;
private static final int _$918 = 2;
private static final int _$613 = 0;
boolean bAttackPhase;
boolean bDrawAttack;
private boolean _$500;
boolean bDrawShop;
boolean bDrawTalk;
boolean bDrawTeleport;
boolean bDrawing;
boolean bMonsterKilled[];
boolean bMonsterVisible[] = {
true, true, true, false, false, false, true, true, true, true,
true, true, true, true, true, true, true, true, false, true,
true, true, true, true, true, true, true, true, false, false,
false, false, false, false, true
};
protected boolean bMoving;
boolean bNextLevelDialog;
boolean bPause;
boolean bRecstoreDisasterReady;
boolean bSaves[] = {
true, false, true, false, true, false, true, false, true, false,
true, true, false
};
boolean bShopCanIBuy;
boolean bShopCanISell;
boolean bShopHeal[];
private boolean _$665;
private boolean _$681;
boolean bTeleportControlOn;
boolean bTreasureTaken[];
boolean bTreasureVisible[];
public boolean bWon;
char cControlF[] = {
'\0', '\0', '\0', '\0', '\002', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\004',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\006', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\b', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\n', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\013', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0'
};
char cControlSaves[] = {
'\0', '\0', '\0', '\0', '\0', '\001', '\002', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\004',
'\004', '\006', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\006', '\006', '\0', '\0', '\0', '\0', '\0', '\0', '\006',
'\0', '\0', '\006', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\004', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\b', '\b', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\005', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\013', '\0',
'\0', '\0', '\0', '\005', '\f', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0'
};
char cControlT[] = {
'\0', '\0', '\0', '\0', '\001', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\003',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\005', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\007', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\t', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\f', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0'
};
char cControlVal1[] = {
'\0', '\001', '\002', '\003', '\004', '\006', '\005', '\0', '\0', '\001',
'\002', '\003', '\004', '\0', '\001', '\b', '\006', '\t', '\b', '\n',
'\b', '\013', '\n', '\t', '\013', '\t', '\013', '\002', '\b', '\002',
'\006', '\f', '\0', '\r', '\f', '\r', '\r', '\f', '\006', '\006',
'\005', '\016', '\006', '\017', '\016', '\016', '\017', '\020', '\016', '\021',
'\020', '\t', '\007', '\003', '\006', '\007', '\b', '\b', '\t', '\0',
'\004', '\0', '\n', '\017', '\020', '\021', '\013', '\f', '\r', '\016',
'\r', '\016', '\017', '\020', '\021', '\013', '\f', '\022', '\023', '\024',
'\025', '\026', '\006', '\004', '\022', '\006', '\023', '\022', '\024', '\023',
'\006', '\027', '\n', '\030', '\031', '\032', '\026', '\0', '\025', '\026',
'\027', '\026', '\027', '\026', '\030', '\027', '\030', '\025', '\031', '\030',
'\006', '\025', '\005', '\006', '\033', '\034', '\032', '\006', '\033', '\032',
'\033', '\032', '\034', '\032', '\034', '\032', '\035', '\034', '\035', '\034',
'\006', '\0', '\035', '\032', '\036', '\0', '\001', '\002', '\003', '\004',
'\005', '\006', '\007', '\b', '\t', '\n', '\013', '\f', '\r', '\016',
'\017', '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', '\030',
'\031', '\032', '\033', '\034', '\035', '\036', '\037', ' ', '!', '\0',
'\001', '\002', '\003', '\004', '\006', '\0', '\001', '\002', '\003', '\002',
'\003', '"', 'c'
};
char cControlVal2[] = {
'\0', '\0', '\0', '\0', '\0', '\r', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\007', '\020', '\017', '\022', '\021', '\024',
'\023', '\026', '\025', '\030', '\027', '\032', '\031', '\034', '\033', '\036',
'\035', ' ', '\0', '"', '#', '"', '%', '$', '\037', '\0',
'\0', '*', ')', ',', '+', '.', '-', '0', '/', '2',
'1', '\0', '\0', '6', '5', '\0', '\0', '\0', '\0', '\0',
'=', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', 'S', 'R', 'U', 'T', 'W', 'V', 'Y', 'X',
'\0', '\0', '\0', '\0', '\0', '\0', 'a', '\0', 'c', 'b',
'e', 'd', 'g', 'f', 'i', 'h', 'k', 'j', 'm', 'l',
'o', 'n', 'q', 'p', '\0', '\0', 'u', 't', 'w', 'v',
'y', 'x', '{', 'z', '}', '|', '\177', '~', '\201', '\200',
'\205', '\0', '\0', '\202', '\203', '\0', '\0', '\0', '\001', '\001',
'\001', '\002', '\002', '\002', '\003', '\003', '\003', '\004', '\004', '\004',
'\005', '\005', '\005', '\006', '\007', '\007', '\007', '\b', '\b', '\b',
'\005', '\005', '\005', '\005', '\002', '\004', '\003', '\003', '\001', '\0',
'\0', '\0', '\0', '\0', ')', '\0', '\0', '\0', '\0', '\001',
'\001', '\b', '\0'
};
char cControlWhat[] = {
'\0', '\0', '\0', '\0', '\0', '\001', '\0', '\002', '\003', '\003',
'\003', '\003', '\003', '\002', '\001', '\001', '\001', '\001', '\001', '\001',
'\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
'\001', '\001', '\002', '\001', '\001', '\001', '\001', '\001', '\001', '\0',
'\003', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
'\001', '\003', '\0', '\001', '\001', '\003', '\003', '\0', '\0', '\004',
'\001', '\002', '\0', '\003', '\003', '\003', '\0', '\0', '\003', '\003',
'\0', '\0', '\0', '\0', '\003', '\003', '\003', '\0', '\0', '\0',
'\0', '\0', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
'\003', '\0', '\003', '\0', '\0', '\0', '\001', '\002', '\001', '\001',
'\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
'\001', '\001', '\001', '\001', '\0', '\0', '\001', '\001', '\001', '\001',
'\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\001',
'\001', '\002', '\0', '\001', '\001', '\005', '\005', '\005', '\005', '\005',
'\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005',
'\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005',
'\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\005', '\006',
'\006', '\006', '\006', '\006', '\007', '\b', '\b', '\b', '\b', '\006',
'\006', '\005', '\003'
};
GameScreen cGscr;
int cTextsFirstLine[] = {
0, 5, 12, 16, 20, 74, 77, 95, 97, 103,
406, 118, 121, 124, 138, 147, 154, 157, 160, 170,
184, 192, 197, 200, 222, 231, 236, 242, 251, 254,
354, 361
};
int cTextsLastLine[] = {
4, 11, 15, 19, 64, 76, 94, 96, 102, 111,
420, 120, 123, 137, 146, 153, 156, 159, 169, 183,
191, 196, 199, 221, 230, 235, 241, 250, 253, 277,
360, 367
};
public boolean cheat;
protected int dirx[];
protected int diry[];
boolean dontrun;
private boolean _$206;
Fight fight;
private int _$654;
int iActive_ControlsNof;
int iActive_ControlsNr[];
int iActive_ControlsXPixPos[];
int iActive_ControlsYPixPos[];
int iAttackedMonster;
int iBlockTileSaveNr[];
int iBlockTileXTilePos[];
int iBlockTileYTilePos[];
int iBlockTiles;
int iEquipeArmor[] = {
0, 3, 8
};
int iEquipeDamage[] = {
1, 4, 8
};
int iEquipeExperienceLevel[] = {
1, 2, 4
};
int iEquipeGold;
int iEquipeLife[] = {
4, 14, 18
};
int iEquipeLifeMax[] = {
4, 14, 18
};
int iEquipePotions;
int iEquipeSpeed[] = {
2, 4, 6
};
int iEquipeTotalArmor[] = {
0, 3, 8
};
int iEquipeTotalDamage[] = {
1, 4, 8
};
int iEquipeTotalLifeMax[] = {
4, 14, 18
};
int iEquipeTotalSpeed[] = {
2, 4, 6
};
int iEquipeXP[] = {
0, 0, 0
};
int iMapSpeed[] = {
6, 8, 8, 8, 8, 8, 4, 4, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6
};
public int iMapXPixelPos;
public int iMapYPixelPos;
int iMonsterImage[];
int iMonsterSave[];
int iMonsterType[];
int iMonsterXPix[];
int iMonsterYPix[];
int iMonsters;
int iNextLevelPlayer;
int iOldMap;
int iPauseMenu;
int iPlayerDir;
int iPlayerFrame;
int iPlayerXPix;
int iPlayerYPix;
int iSacItem;
int iShopControlTile;
int iShopItem;
int iShopItemInShop[];
int iShopNofItemsInShop[];
int iShopNr[];
int iShopWhichOne;
int iShopXPix[];
int iShopYPix[];
int iShops;
private int _$680;
private int _$682;
private int _$679;
int iTeleportControlActive_Controle;
int iTeleportiActive_Control;
private int _$366;
int iTileWalkable;
private static int _$546[] = {
4, 3, 4, 8, 7, 13
};
private static int _$545[] = {
1, 1, 1, 1, 1, 2, 2, 3, 3, 3,
3, 4, 4, 5, 5, 5, 5, 3, 3, 3,
4, 4, 4, 4, 4, 6, 6, 6, 6, 5,
3, 4, 5, 6
};
int iTreasureKill;
int iTreasureLevel[];
int iTreasureSave[];
int iTreasureXPix[];
int iTreasureYPix[];
int iTreasures;
MultiOutPut mu;
Random random;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -