2017-03-29 13:28:32 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\TrackMania\Models;
|
|
|
|
|
2017-03-30 19:39:23 +02:00
|
|
|
use ManiaControl\Callbacks\Structures\Common\Models\CommonPlayerScore;
|
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
use ManiaControl\Players\Player;
|
2017-03-30 19:39:23 +02:00
|
|
|
//TODO proper return descriptions on getter methods -> use autogenerate for setter/getter + docs
|
2017-03-29 13:28:32 +02:00
|
|
|
/**
|
|
|
|
* PlayerScore Model
|
|
|
|
*
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
|
|
|
* @copyright 2014-2017 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
2017-03-30 19:39:23 +02:00
|
|
|
class PlayerScore extends CommonPlayerScore {
|
2017-03-29 13:28:32 +02:00
|
|
|
|
2017-03-30 19:39:23 +02:00
|
|
|
private $bestRaceTime;
|
|
|
|
private $bestLapTime;
|
2017-03-29 13:28:32 +02:00
|
|
|
private $stuntScore;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the Rank
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getRank() {
|
|
|
|
return $this->rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Rank
|
|
|
|
*
|
|
|
|
* @param int $rank
|
|
|
|
*/
|
|
|
|
public function setRank($rank) {
|
|
|
|
$this->rank = $rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the bestRaceTime
|
|
|
|
*
|
|
|
|
* @param int $bestraceTime
|
|
|
|
*/
|
2017-03-30 19:39:23 +02:00
|
|
|
public function getBestraceTime(){
|
|
|
|
return $this->bestRaceTime;
|
2017-03-29 13:28:32 +02:00
|
|
|
}
|
2017-03-30 16:10:29 +02:00
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
/**
|
|
|
|
* Gets the bestlapTime
|
|
|
|
*
|
|
|
|
* @param int $bestlapTime
|
|
|
|
*/
|
2017-03-30 19:39:23 +02:00
|
|
|
public function getBestlapTime(){
|
|
|
|
return $this->bestLapTime;
|
2017-03-29 13:28:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the StuntScore
|
|
|
|
*
|
|
|
|
* @param int $bestraceTime
|
|
|
|
*/
|
2017-03-30 19:39:23 +02:00
|
|
|
public function getStuntScore(){
|
2017-03-29 13:28:32 +02:00
|
|
|
return $this->stuntScore;
|
|
|
|
}
|
2017-03-30 19:39:23 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $bestRaceTime
|
|
|
|
*/
|
|
|
|
public function setBestRaceTime($bestRaceTime) {
|
|
|
|
$this->bestRaceTime = $bestRaceTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $bestLapTime
|
|
|
|
*/
|
|
|
|
public function setBestLapTime($bestLapTime) {
|
|
|
|
$this->bestLapTime = $bestLapTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $stuntScore
|
|
|
|
*/
|
|
|
|
public function setStuntScore($stuntScore) {
|
|
|
|
$this->stuntScore = $stuntScore;
|
|
|
|
}
|
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
}
|