Package com.google.code.timetrail.backend

Examples of com.google.code.timetrail.backend.Item


   * Get the food price weight
   *
 
   * @return food price weight */
  public String getFoodPriceWeight() {
      final Item food = playerInv.getFood();
    return ("$" + (food.getValue() -
            ((food.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getFood().getWeight() + " lb.");
  }
View Full Code Here


   * Get the engine price weight
   *
 
   * @return engine price weight */
  public String getEnginePriceWeight() {
      final Item engines = playerInv.getEngines();
    return ("$" + (engines.getValue()
            - ((engines.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + (" N/A");
  }
View Full Code Here

   * Get the Clothing price weight
   *
 
   * @return clothing price weight */
  public String getClothingPriceWeight() {
      final Item timeSuits = playerInv.getTimeSuits();
    return ("$" + (timeSuits.getValue()
            - ((timeSuits.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getTimeSuits().getWeight() + " lb.");
  }
View Full Code Here

   * Get the Ammunition price weight
   *
 
   * @return ammunition price weight */
  public String getAmmunitionPriceWeight() {
      final Item timeBulletBills = playerInv.getTimeBulletBills();
    return ("$" + (timeBulletBills.getValue()
            - ((timeBulletBills.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getTimeBulletBills().getWeight() + " lb.");
  }
View Full Code Here

   * Get the FCapacitors price weight
   *
 
   * @return fcapacitors price weight */
  public String getFCapacitorsPriceWeight() {
      final Item fCapacitors = playerInv.getFCapacitors();
    return ("$" + (fCapacitors.getValue()
            - ((fCapacitors.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getFCapacitors().getWeight() + " lb.");
  }
View Full Code Here

   * Get the Hull parts price weight
   *
 
   * @return hull parts price weight */
  public String getHullPartsPriceWeight() {
      final Item hullParts = playerInv.getHullParts();
    return ("$" + (hullParts.getValue()
            - ((hullParts.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getHullParts().getWeight() + " lb.");
  }
View Full Code Here

   * Get the Fuel cells price weight
   *
 
   * @return fuel cells price weight */
  public String getFuelCellsPriceWeight() {
      final Item fuelCells = playerInv.getFuelCells();
    return ("$" + (fuelCells.getValue()
            - ((fuelCells.getValue()
                    * gameControl.getPlayer().getSkills()
                    [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL)) + " / "
        + (playerInv.getFuelCells().getWeight() + " lb.");
  }
View Full Code Here

   * Calculates the total cost
   *
 
   * @return total cost */
  private int getCostTotal() {
      final Item engines = playerInv.getEngines();
      final Item hullParts = playerInv.getHullParts();
      final Item timeSuits = playerInv.getTimeSuits();
      final Item timeBulletBills = playerInv.getTimeBulletBills();
      final Item fuelCells = playerInv.getFuelCells();
      final Item fCapacitors = playerInv.getFCapacitors();
      final Item food = playerInv.getFood();
    final int engineCost = engineAmount
            * (engines.getValue()
                    - ((engines.getValue()
                            * gameControl.getPlayer().getSkills()
                            [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int hullPartCost = hullPartsAmount
        * (hullParts.getValue()
                - ((hullParts.getValue()
                        * gameControl.getPlayer().getSkills()
                        [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int timeSuitCost = clothingAmount
            * (timeSuits.getValue()
                    - ((timeSuits.getValue()
                            * gameControl.getPlayer().getSkills()
                            [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int timeBulletBillCost = ammunitionAmount
        * (timeBulletBills.getValue()
                - ((timeBulletBills.getValue()
                        * gameControl.getPlayer().getSkills()
                        [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int fuelCellCost = fuelCellsAmount
        * (fuelCells.getValue()
                - ((fuelCells.getValue()
                        * gameControl.getPlayer().getSkills()
                        [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int fCapacitorCost = fCapacitorAmount
        * (fCapacitors.getValue()
                - ((fCapacitors.getValue()
                        * gameControl.getPlayer().getSkills()
                        [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    final int foodCost = foodAmount
            * (food.getValue()
                    - ((food.getValue()
                            * gameControl.getPlayer().getSkills()
                            [BARGAINING_SKILL_POSITION ])) / MAX_SKILL_LEVEL);
    return engineCost + hullPartCost + timeSuitCost + timeBulletBillCost
        + fuelCellCost + fCapacitorCost + foodCost;
  }
View Full Code Here

TOP

Related Classes of com.google.code.timetrail.backend.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.