示例#1
0
 public boolean sameAs(Environmental E) {
   if (!(E instanceof GenDeity)) return false;
   String[] codes = getStatCodes();
   for (int i = 0; i < codes.length; i++)
     if (!E.getStat(codes[i]).equals(getStat(codes[i]))) return false;
   return true;
 }
示例#2
0
 public boolean sameAs(Environmental E) {
   if (!(E instanceof GenShipComponent)) return false;
   String[] theCodes = getStatCodes();
   for (int i = 0; i < theCodes.length; i++)
     if (!E.getStat(theCodes[i]).equals(getStat(theCodes[i]))) return false;
   return true;
 }
示例#3
0
 @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;
 }
示例#4
0
 @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;
 }
示例#5
0
 @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;
 }