예제 #1
0
  public Wand() {
    calculateDamage();

    defaultAction = AC_ZAP;

    try {
      image = handler.image(this);
      wood = handler.label(this);
    } catch (Exception e) {
      // Wand of Magic Missile
    }
  }
예제 #2
0
  public void setKnown() {
    if (!isKnown()) {
      handler.know(this);
    }

    Badges.validateAllWandsIdentified();
  }
예제 #3
0
 public static boolean allKnown() {
   return handler.known().size() == wands.length;
 }
예제 #4
0
 protected boolean isKnown() {
   return handler.isKnown(this);
 }
예제 #5
0
 public static void save(Bundle bundle) {
   handler.save(bundle);
 }
예제 #6
0
 public Scroll() {
   super();
   image = handler.image(this);
   rune = handler.label(this);
 }
예제 #7
0
 public static HashSet<Class<? extends Scroll>> getUnknown() {
   return handler.unknown();
 }
예제 #8
0
 public boolean isKnown() {
   return handler.isKnown(this);
 }