2017-03-25 12:55:09 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\ShootMania\Models;
|
|
|
|
|
2017-03-27 22:21:59 +02:00
|
|
|
use ManiaControl\General\UsageInformationAble;
|
|
|
|
use ManiaControl\General\UsageInformationTrait;
|
|
|
|
use ManiaControl\Players\Player;
|
2017-03-25 12:55:09 +01:00
|
|
|
|
2017-03-27 22:21:59 +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
|
|
|
|
*/
|
|
|
|
class PlayerScore implements UsageInformationAble {
|
|
|
|
use UsageInformationTrait;
|
|
|
|
|
|
|
|
private $player;
|
|
|
|
private $rank;
|
|
|
|
private $roundPoints;
|
|
|
|
private $mapPoints;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the Player
|
|
|
|
*
|
|
|
|
* @return Player
|
|
|
|
*/
|
|
|
|
public function getPlayer() {
|
|
|
|
return $this->player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \ManiaControl\Players\Player $player
|
|
|
|
*/
|
|
|
|
public function setPlayer(Player $player) {
|
|
|
|
$this->player = $player;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 Round Points
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getRoundPoints() {
|
|
|
|
return $this->roundPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the RoundPoints
|
|
|
|
*
|
|
|
|
* @param int $roundPoints
|
|
|
|
*/
|
|
|
|
public function setRoundPoints($roundPoints) {
|
|
|
|
$this->roundPoints = $roundPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the Map Points
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getMapPoints() {
|
|
|
|
return $this->mapPoints;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Map Points
|
|
|
|
*
|
|
|
|
* @param int $mapPoints
|
|
|
|
*/
|
|
|
|
public function setMapPoints($mapPoints) {
|
|
|
|
$this->mapPoints = $mapPoints;
|
|
|
|
}
|
2017-03-25 12:55:09 +01:00
|
|
|
}
|