首页 > > 详细

讲解Java、Java讲解留学生、辅导留学生Java语言、Java辅导


import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Enemy {
private int x;
private int y;
private GameManager gameManager;
public Enemy(GameManager gameManager, int x, int y) {
super();
this.x = x;
this.y = y;
this.gameManager = gameManager;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public GameManager getGameManager() {
return gameManager;
}
public void setGameManager(GameManager gameManager) {
this.gameManager = gameManager;
}
public void performAction() {
}
public void die() {
try {
ImageIO.read(new File("C:/Users/G/Desktop/goal-dead.png"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public BufferedImage getCurrentImage() {
return null;
}
}
 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!