@Override public boolean sameAs(Environmental E) { if (!(E instanceof GenLightSource)) return false; for (int i = 0; i < getStatCodes().length; i++) { if (!E.getStat(getStatCodes()[i]).equals(getStat(getStatCodes()[i]))) return false; } return true; }
@Override public boolean sameAs(Environmental E) { if (!(E instanceof GenSoftware)) return false; final String[] theCodes = getStatCodes(); for (int i = 0; i < theCodes.length; i++) if (!E.getStat(theCodes[i]).equals(getStat(theCodes[i]))) return false; return true; }
@Override public boolean sameAs(Environmental E) { if (!(E instanceof GenArmor)) return false; final String[] codes = getStatCodes(); for (int i = 0; i < codes.length; i++) { if (!E.getStat(codes[i]).equals(getStat(codes[i]))) return false; } return true; }