public int getEnergyScaled(int scale) {
   return (int) energy.getEnergyStored() * scale / energy.getCapacity();
 }