📄 jmps.java
字号:
}
// 夋憸儘乕僪
Temp[1] = 0;// 僿僢僟乕僀儞僨僢僋僗 侽乣
Temp[2] = 2;// 僿僢僟悢 俀屄
Temp[3] = 10;// 枃悢 侾侽枃
Temp[4] = 0;// 夋憸僶僢僼傽 侽乣
LoadGraph();
}
catch(Exception e)
{
Sys[3] = "僱僢僩儚乕僋愙懕偑昁梫偱偡";//Sys[62];
DrawD();
IApplication.getCurrentApp().terminate();
}
Temp[0] = 0;
GF[0] = false;
GM = 0;
// setSoftLabel(SOFT_KEY_2, Sys[10] );// 廔椆
}
//############################################################## 僌儔僼傿僢僋儘乕僪 ##########################################################################
public void LoadGraph( )// throws Exception
{
MediaImage mimg;
int i, j;
try{
GM = -1;
// System.err.println( "Temp[2] = " + ( Temp[2] ) );
for( j = Temp[1]; j < Temp[2]; j++ ){
// System.err.println( "icList[j] = " + ( icList[j] ) );
for( i = 0; i < icList[j]; i++)
{
System.gc();
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 40 ) );
out.write( header[j] );
out.write( img[ Temp[0] + Temp[4] ] );
out.close();
System.gc();
mimg = MediaManager.getImage( Sys[0] + Sys[4] + ( 9653 + 40 ) );
System.gc();
mimg.use();
I[ Temp[0] + Temp[4] ] = mimg.getImage();
// System.err.println( "Load No = " + ( Temp[0] ) );
Draw();
Temp[ 0 ]++;
setSoftLabel(SOFT_KEY_2, ( ( 100 * Temp[ 0 ] ) / Temp[3] ) + Sys[23] );// 廔椆
}
}
// setSoftLabel(SOFT_KEY_1, Sys[11] );
}catch( Exception e ){
// IApplication.getCurrentApp().terminate();
}
}
public void LoadTeamGraph( )// throws Exception
{
MediaImage mimg;
int i, j;
try{
GM = -1;
Temp[0] = 0;
for( i = 0; i < 11 && GF[17]; i++ ) I[ 37 + i ].dispose();
System.gc();
// for( j = 0; j < 21; j++ )
// System.err.println( Pallete[VSList[0]][j] );
// 僗僉乕斅偺儘乕僪
for( i = 0; i < 4; i++)
{
System.gc();
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 40 ) );
out.write( header[10] );
out.write( img[ 37 + i ] );
out.close();
System.gc();
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 53 ) );
// 僗僉乕斅僷儗僢僩彂偒崬傒
out.write( Pallete[VSList[0]], 12, 6 );
out.close();
System.gc();
mimg = MediaManager.getImage( Sys[0] + Sys[4] + ( 9653 + 40 ) );
System.gc();
mimg.use();
I[ 37 + Temp[0] ] = mimg.getImage();
// System.err.println( "Load No = " + ( 30 + Temp[0] ) );
Draw();
Temp[ 0 ]++;
setSoftLabel( SOFT_KEY_2, ( ( 100 * Temp[ 0 ] ) / 12 ) + Sys[23] );// 廔椆
}
j = 0;
if( VSList[0] == 1 || VSList[0] == 4 || VSList[0] == 5 ) j = 4;
// 懱偺儘乕僪
for( i = 0; i < 5; i++)
{
System.gc();
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 40 ) );
if( i == 4 && VSList[0] == 7 )// 塅拡恖偺彑偪億乕僘
out.write( header[12] );
else{
out.write( header[11] );
}
if( i < 4 ){
if( j != 0 && i == 2 ){// 偑偨偄椙偟
out.write( img[ 41 + i ] );
j--;
}
else
out.write( img[ 41 + i + j ] );
// System.err.println( ( 41 + i + j ) );
}
else
out.write( img[ 48 + VSList[0] ] );// 帺暘偺崙
out.close();
System.gc();
if( !( i == 4 && VSList[0] == 7 ) ){// 塅拡恖偺彑偪億乕僘
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 53 ) );
// 僷儗僢僩侾俁僶僀僩彂偒崬傒
out.write( Pallete[VSList[0]] );
out.close();
System.gc();
}
mimg = MediaManager.getImage( Sys[0] + Sys[4] + ( 9653 + 40 ) );
System.gc();
mimg.use();
I[ 37 + Temp[0] ] = mimg.getImage();
// System.err.println( "Load No = " + ( 30 + Temp[0] ) );
Draw();
Temp[ 0 ]++;
setSoftLabel( SOFT_KEY_2, ( ( 100 * Temp[ 0 ] ) / 12 ) + Sys[23] );// 廔椆
}
// 摢偺儘乕僪
for( i = 0; i < 2; i++)
{
System.gc();
out = Connector.openDataOutputStream( Sys[0] + Sys[4] + ( 9653 + 40 ) );
out.write( header[13 + VSList[0]] );
out.write( img[ 56 + i + VSList[0] * 2 ] );
out.close();
System.gc();
mimg = MediaManager.getImage( Sys[0] + Sys[4] + ( 9653 + 40 ) );
System.gc();
mimg.use();
I[ 37 + Temp[0] ] = mimg.getImage();
// System.err.println( "Load No = " + ( 30 + Temp[0] ) );
Draw();
Temp[ 0 ]++;
setSoftLabel( SOFT_KEY_2, ( ( 100 * Temp[ 0 ] ) / 12 ) + Sys[23] );// 廔椆
}
setSoftLabel(SOFT_KEY_2, null );
GF[17] = true;
System.gc();
System.gc();
}catch( Exception e ){
}
}
// Create Wind
public void CWind()
{
Wind = Math.abs( R.nextInt() % 8 );
// 晽傪寛傔傞[3:嫮][2:拞][1:庛]
WindPow = 1 + Math.abs( R.nextInt() % 3 );
// 晽敪惗娫妘
WindTime = 10 + Math.abs( R.nextInt() % 11 );
// setSoftLabel( SOFT_KEY_1, "" + Wind );// 師傊
// 忋壓曽岦
WindUD = 13;
// 岦偄晽丠
if( Wind == 0 || Wind == 1 || Wind == 7 ){
WindUD = 255;// 晽塭嬁柍偟
}
// 捛偄晽丠
if( Wind > 2 && Wind < 4 )
WindUD = 5 + WindPow * 2;
WindLRPow = 0;
if( Wind != 0 && Wind != 4 )
WindLRPow = ( 1 - 2 * ( Wind / 4 ) ) * WindSpeed[ VSList[0] * 3 + WindPow - 1 ];
// 嵍塃曽岦
// WindLR = 0;
}
//############################################################## 僾儘僙僗僀儀儞僩 ##########################################################################
public void processEvent( int type, int param )
{
// 儃僞儞傪墴偟偨
if( type == Display.KEY_PRESSED_EVENT ){
Key[3] = getKeypadState();
}
}
public void ProEvent( int OnKey )
{
// while( GF[18] ){
// OnKey |= getKeypadState();
// }
int i ,j, x, y;
// int GD;
// GD = GM;
Key[0] = Key[3] | OnKey | getKeypadState();
Key[1] = Key[0] & ~Key[2];// On僩儕僈乕
Key[2] = Key[0];// 儔僗僩僉乕
Key[3] = 0;
// 僞僀僩儖栠傞丠
if( GM >= 200 && GM < 1000 && ( Key[1] & 4194304 ) != 0 ){
d = new Dialog( Dialog.DIALOG_YESNO, Sys[5] );
d.setText( Sys[16] );
if ( d.show() == d.BUTTON_YES ){
GM = 0;
nSel = 0;
return;
}
// 揾傝側偍偟
try{ Thread.sleep( 500 ); }catch( Exception e ){}
GF[1] = true;
}
if( GF[14] && GM > 200 ){// How To 梡僉乕僋儕傾乕
Key[0] = 0;
Key[1] = 0;
}
//--------------------------------------------------------------------------------------------------------------------------------------------啦馁夋柺
if( GM == 0 ){
GF[1] = true;
setSoftLabel(SOFT_KEY_1, null );// 廔椆
setSoftLabel(SOFT_KEY_2, Sys[10] );// 廔椆
// 忋僉乕
if( ( Key[1] & 131076 ) != 0 ){
nSel--;
if( nSel < 0 ) nSel = 2;
}
// 壓僉乕
if( ( Key[1] & 524544 ) != 0 ){
nSel = ( nSel + 1 ) % 3;
}
// 寛掕僉乕
if( ( Key[1] & 1048608 ) != 0 ){
// HowTo弶婜壔
GF[14] = false;
if( nSel == 2 ){
GM = 1000;// 僗僐傾夋柺
}
else
{
// 慺嵽夋憸偺儘乕僪
if( !GF[10] ){
Temp[0] = 0;
Temp[1] = 2;// 僿僢僟偺俀斣偐傜
Temp[2] = 10;// 僿僢僟偺侾侽斣栚傑偱
Temp[3] = 27;// 僀儊乕僕俀俈枃儘乕僪
Temp[4] = 10;// 僀儊乕僕悢侾侽枃栚偐傜
LoadGraph();
GF[10] = true;
}
GM = 100;
GF[13] = false;
// How To 丠
if( nSel == 1 ){
VSList[0] = 0;
LineY = 0;
nScroll = 0;
LineX = 0;
Frame = 0;
JX = 59;
PXY = 0;
GF[14] = true;// How To 儌乕僪
LoadTeamGraph();
GM = 350;
CWind();
setSoftLabel(SOFT_KEY_2, Sys[11] );// 啦馁傊
}
HowTo = 0;
}
nSel = 0;
Frame = 0;
return;
}
// 寛掕僉乕 廔椆丠
if( ( Key[1] & 4194304 ) != 0 ){
d = new Dialog( Dialog.DIALOG_YESNO, Sys[5] );
d.setText( Sys[15] );
if ( d.show() == d.BUTTON_YES ){
IApplication.getCurrentApp().terminate();
}
return;
}
}
//--------------------------------------------------------------------------------------------------------------------------------------------僾儗僀儎乕僙儗僋僩夋柺
if( GM == 100 ){
setSoftLabel(SOFT_KEY_2, Sys[12] );// 栠傞
if( Frame < 4 )Frame++;
if( !GF[13] ){
// 忋僉乕
if( ( Key[1] & 131076 ) != 0 ){
nSel -= 4;
Frame = 0;
GF[1] = true;
}
// 壓僉乕
if( ( Key[1] & 524544 ) != 0 ){
if( fClear != 0 ){
if( nSel != 7 && !GF[13] ){
nSel += 4;
}else GF[13] = true;
}
else
nSel += 4;
Frame = 0;
GF[1] = true;
}
// 嵍僉乕
if( ( Key[1] & 65682 ) != 0 ){
nSel--;
Frame = 0;
GF[1] = true;
}
// 塃僉乕
if( ( Key[1] & 262728 ) != 0 ){
nSel++;
Frame = 0;
GF[1] = true;
}
}
else if( ( Key[1] & ( 131076 | 524544 | 65682 | 262728 ) ) != 0 )
GF[13] = false;
nSel %= 8;
if( nSel < 0 ) nSel += 8;
if( nSel == 7 ){// 儔儞僟儉側傜
VSList[ 0 ] = Math.abs( R.nextInt() % 7 );
}
else
VSList[ 0 ] = nSel;// 0傪帺暘偺崙偵
if( GF[13] ) VSList[ 0 ] = 7;// 塅拡恖慖戰
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -