App\Traits\Scoreable::totalHits PHP Méthode

totalHits() public méthode

public totalHits ( )
    public function totalHits()
    {
        if ($this->gamemodeString() === 'osu') {
            return ($this->count50 + $this->count100 + $this->count300 + $this->countmiss) * 300;
        } elseif ($this->gamemodeString() === 'fruits') {
            return $this->count50 + $this->count100 + $this->count300 + $this->countmiss + $this->countkatu;
        } elseif ($this->gamemodeString() === 'mania') {
            if ($this->getScoringType() === 'scorev2') {
                return ($this->count50 + $this->count100 + $this->count300 + $this->countmiss + $this->countkatu + $this->countgeki) * 305;
            } else {
                return ($this->count50 + $this->count100 + $this->count300 + $this->countmiss + $this->countkatu + $this->countgeki) * 300;
            }
        } elseif ($this->gamemodeString() === 'taiko') {
            return ($this->count100 + $this->count300 + $this->countmiss) * 300;
        }
    }