?? river.java
字號:
import java.awt.*;
public class river implements Actor{
private int xPos;
private int yPos;
private Rectangle Border;
public Image river;
public ServerModel gameModel;
public river(int a, int b, ServerModel gameModel){
this.gameModel = gameModel;
river = gameModel.textures[71];
xPos = a;
yPos = b;
Border = new Rectangle(xPos - 12, yPos - 12, 25, 25);
}
public Rectangle getBorder(){
return Border;
}
public int getxPos(){
return xPos;
}
public int getyPos(){
return yPos;
}
public String getType(){
return "river";
}
public void draw(Graphics g){
g.drawImage(river, xPos - 12, yPos - 12, null);
}
//unused method
public void move(){}
public Rectangle[] getDetailedBorder(){return null;}
public boolean walldestoried(){return false;}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -