* 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;
}