?? floorspring.java
字號:
import javax.microedition.lcdui.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class floorSpring extends floorSprite {
public floorSpring(Image img , int frameWidth, int frameHeight,
int scnWidth, int scnHeight) {
super(img, frameWidth, frameHeight, scnWidth, scnHeight);
}
void doOn(playerSprite tempPlayer) {
/**@todo Implement this floorSprite abstract method*/
if (isDoLive == false) {
tempPlayer.addLive();
isDoLive = true;
}
switch(getFrame()) {
case 0:
tempPlayer.move(0, FLOOR_MOVE*-1);
nextFrame();
break;
case 1:
tempPlayer.move(0, (FLOOR_MOVE-2)*-1);
tempPlayer.iUpNum = 1;
setFrame(0);
break;
}
}
void autoAction() {
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -