// You know the drill by now: // What is your name? // What is your quest? // What is your favorite colour? // // (does anybody get this other than us?) public class Weapon { // an integer added to the damage inflicted when the creature scores a hit int damageModifier = 0; // the name of the weapon (e.g., "sword" or "magic wand") String name = "bare hands"; // a verb to describe the action of the weapon when it scores a hit (e.g., // "slashes" or "zaps"). String hitVerb = "strikes"; // a verb to describe the action of the weapon when it misses (e.g., // "whiffs" or "misses"). String missVerb = "misses"; // The default constructor. // It should initialize the damage modifier to 0, the name to "bare hands", // the hit verb to "strikes" and the miss verb to "misses". public Weapon() { } public Weapon(int mod, String nm, String hit, String miss) { } // Accessor methods public int getDamageModifier() { // the following line need to be changed: it's there so this file will compile return 0; } public String getName() { // the following line need to be changed: it's there so this file will compile return null; } public String getMissVerb() { // the following line need to be changed: it's there so this file will compile return null; } public String getHitVerb() { // the following line need to be changed: it's there so this file will compile return null; } // Mutator methods public void setDamageModifier(int dm) { } public void setName(String str) { } public void setMissVerb(String str) { } public void setHitVerb(String str) { } }