Exemple #1
0
 public function getStegToNextMal()
 {
     return Steg::kmToSteg($this->getCurrentMal()->getAvstand()) - ($this->getStegTotal() - Mal::getUsedSteg($this));
 }
Exemple #2
0
 public function getUsedSteg()
 {
     $km = 0;
     foreach ($this->listMal() as $mal) {
         if ($mal->getId() != $this->getCurrentMal()->getId()) {
             $km += $mal->getAvstand();
         }
     }
     return Steg::kmToSteg($km);
 }