📄 bow.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package dungeonsanddragons.model.weapons;import java.awt.Graphics;/** * The Bow weapon * @author Sandra Nilsson */public class Bow extends Weapon{ private static String imgFile = "img/bow.jpg"; public Bow() { super(imgFile); strenght = 6; } /** * Draw this bow * @param g */ 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 + -