Ejemplo n.º 1
0
 public EquipmentTemplate(
     String name,
     String description,
     MaterialComposition composition,
     MagicalMaterial material,
     ItemCost cost) {
   this.name = name;
   this.description = description;
   this.composition = composition.getId();
   if (material == null) {
     this.material = null;
   } else {
     this.material = material.getId();
   }
   this.cost = cost;
 }
Ejemplo n.º 2
0
 @Override
 public MaterialComposition getComposition() {
   return MaterialComposition.valueOf(composition);
 }