dummyitem.java
来自「用Java做的小游戏:Pacman 和小时候玩的吃豆豆一样」· Java 代码 · 共 46 行
JAVA
46 行
import java.awt.*;import gaming.*;public class DummyItem implements ScreenObject { protected int x; protected int y; protected Color color; protected int shape; protected Image image; protected GriddedScreen PacmanBoard; public DummyItem(int x, int y, Color color, int shape){ this.x = x; this.y = y; this.color = color; this.shape = shape; } public DummyItem(int x, int y, Color color, Image image){ this.x = x; this.y = y; this.color = color; this.image = image; } public int getX() { return this.x; } public int getY() { return this.y; } public Color getColor() { return this.color; } public int getShape() { return this.shape; } public Image getImage() { return this.image; } public void setScreen(GriddedScreen s) { PacmanBoard = s; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?