⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d.java

📁 龙与地下城游戏(小型)的设计与实现。主要是随机产生地牢
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package dungeonsanddragons.model.weapons;import java.awt.Graphics;/** * * @author Administrator */public class D extends Weapon {         private static String imgFile = "img/d.jpg";        public D() {        super(imgFile);        strenght = 60;    }   public void draw(Graphics g){        if(currentRoom != null){            super.draw(g);            g.drawString("" + strenght, currentRoom.getX()+ 35, currentRoom.getY()+55);        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -