📄 dummyitem.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -