?? 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); } }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -