コード例 #1
0
 @Override
 public String getRequirementsDescription() {
   return CraftUtils.getRequirementsDescription(
       Constants.WOOD, WOOD_REQUIRED, Constants.ORE, ORE_REQUIRED);
 }
コード例 #2
0
 @Override
 public boolean isActionPossible(
     WorldObject performer, WorldObject target, int[] args, World world) {
   return CraftUtils.hasEnoughResources(performer, WOOD_REQUIRED, ORE_REQUIRED);
 }
コード例 #3
0
 @Override
 public String getRequirementsDescription() {
   return CraftUtils.getRequirementsDescription(Constants.STONE, REQUIRED_STONE);
 }
コード例 #4
0
 @Override
 public boolean isActionPossible(
     WorldObject performer, WorldObject target, int[] args, World world) {
   return CraftUtils.hasEnoughResources(performer, Constants.STONE, REQUIRED_STONE);
 }
コード例 #5
0
 @Override
 public boolean isValidTarget(WorldObject performer, WorldObject target, World world) {
   return CraftUtils.isValidBuildTarget(this, performer, target, world);
 }
コード例 #6
0
 @Override
 public String getRequirementsDescription() {
   return CraftUtils.getRequirementsDescription(Constants.NIGHT_SHADE, NIGHT_SHADE_REQUIRED);
 }