コード例 #1
0
 public void setHardness(HealthType healthType, Integer hardness) {
   if (hardness == null) {
     hardnessByHealthType.remove(healthType.name());
   } else {
     hardnessByHealthType.put(healthType.name(), hardness);
   }
 }
コード例 #2
0
 public void setSoak(HealthType healthType, Integer soak) {
   if (soak == null) {
     soakByHealthType.remove(healthType.name());
   } else {
     soakByHealthType.put(healthType.name(), soak);
   }
 }
コード例 #3
0
 @Override
 public Integer getSoak(HealthType type) {
   return soakByHealthType.get(type.name());
 }
コード例 #4
0
 @Override
 public Integer getHardness(HealthType type) {
   return hardnessByHealthType.get(type.name());
 }