コード例 #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);
 }