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;
|
|
|
|
|
|
|
|
//TODO proper return descriptions on getter methods -> use autogenerate for setter/getter + docs
|
2017-04-07 23:26:35 +02:00
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
/**
|
|
|
|
* PlayerScore Model
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-29 13:28:32 +02:00
|
|
|
* @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;
|
2017-04-07 17:28:04 +02:00
|
|
|
private $bestRaceRespawns;
|
|
|
|
private $bestRaceCheckpoints;
|
|
|
|
private $bestLapRespawns;
|
|
|
|
private $bestLapCheckpoints;
|
2017-03-29 13:28:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the Rank
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-29 13:28:32 +02:00
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getRank() {
|
|
|
|
return $this->rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Rank
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-29 13:28:32 +02:00
|
|
|
* @param int $rank
|
|
|
|
*/
|
|
|
|
public function setRank($rank) {
|
|
|
|
$this->rank = $rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the bestRaceTime
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param int $bestraceTime
|
|
|
|
*/
|
|
|
|
public function getBestraceTime() {
|
2017-03-30 19:39:23 +02:00
|
|
|
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
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the bestlapTime
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param int $bestlapTime
|
|
|
|
*/
|
|
|
|
public function getBestlapTime() {
|
2017-03-30 19:39:23 +02:00
|
|
|
return $this->bestLapTime;
|
2017-03-29 13:28:32 +02:00
|
|
|
}
|
2017-04-07 23:26:35 +02:00
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* Gets the StuntScore
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
* @param int $bestraceTime
|
|
|
|
*/
|
|
|
|
public function getStuntScore() {
|
2017-03-29 13:28:32 +02:00
|
|
|
return $this->stuntScore;
|
|
|
|
}
|
2017-03-30 19:39:23 +02:00
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $bestRaceTime
|
|
|
|
*/
|
|
|
|
public function setBestRaceTime($bestRaceTime) {
|
|
|
|
$this->bestRaceTime = $bestRaceTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $bestLapTime
|
|
|
|
*/
|
|
|
|
public function setBestLapTime($bestLapTime) {
|
|
|
|
$this->bestLapTime = $bestLapTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-30 19:39:23 +02:00
|
|
|
* @param mixed $stuntScore
|
|
|
|
*/
|
|
|
|
public function setStuntScore($stuntScore) {
|
|
|
|
$this->stuntScore = $stuntScore;
|
|
|
|
}
|
|
|
|
|
2017-04-07 17:28:04 +02:00
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getBestRaceRespawns() {
|
|
|
|
return $this->bestRaceRespawns;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @param mixed $bestRaceRespawns
|
|
|
|
*/
|
|
|
|
public function setBestRaceRespawns($bestRaceRespawns) {
|
|
|
|
$this->bestRaceRespawns = $bestRaceRespawns;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getBestRaceCheckpoints() {
|
|
|
|
return $this->bestRaceCheckpoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @param mixed $bestRaceCheckpoints
|
|
|
|
*/
|
|
|
|
public function setBestRaceCheckpoints($bestRaceCheckpoints) {
|
|
|
|
$this->bestRaceCheckpoints = $bestRaceCheckpoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getBestLapRespawns() {
|
|
|
|
return $this->bestLapRespawns;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $bestLapRespawns
|
|
|
|
*/
|
|
|
|
public function setBestLapRespawns($bestLapRespawns) {
|
|
|
|
$this->bestLapRespawns = $bestLapRespawns;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getBestLapCheckpoints() {
|
|
|
|
return $this->bestLapCheckpoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-04-07 17:28:04 +02:00
|
|
|
* @param mixed $bestLapCheckpoints
|
|
|
|
*/
|
|
|
|
public function setBestLapCheckpoints($bestLapCheckpoints) {
|
|
|
|
$this->bestLapCheckpoints = $bestLapCheckpoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-03-29 13:28:32 +02:00
|
|
|
}
|