d.java

来自「龙与地下城游戏(小型)的设计与实现。主要是随机产生地牢」· Java 代码 · 共 30 行

JAVA
30
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?