implemented all new shootmania callbacks + some refactors
This commit is contained in:
69
core/Callbacks/Structures/ShootMania/Models/JoustScore.php
Normal file
69
core/Callbacks/Structures/ShootMania/Models/JoustScore.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Lukas
|
||||
* Date: 07. Apr. 2017
|
||||
* Time: 22:01
|
||||
*/
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures\ShootMania\Models;
|
||||
|
||||
|
||||
use ManiaControl\General\UsageInformationAble;
|
||||
use ManiaControl\General\UsageInformationTrait;
|
||||
|
||||
/**
|
||||
* JoustScore Model
|
||||
*
|
||||
* @api
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2017 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class JoustScore implements UsageInformationAble {
|
||||
use UsageInformationTrait;
|
||||
|
||||
/** @var \ManiaControl\Players\Player $player */
|
||||
private $player;
|
||||
private $score;
|
||||
|
||||
/**
|
||||
* Gets the Player
|
||||
*
|
||||
* @api
|
||||
* @return \ManiaControl\Players\Player
|
||||
*/
|
||||
public function getPlayer() {
|
||||
return $this->player;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Player
|
||||
*
|
||||
* @api
|
||||
* @param \ManiaControl\Players\Player $player
|
||||
*/
|
||||
public function setPlayer($player) {
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Score
|
||||
*
|
||||
* @api
|
||||
* @return int
|
||||
*/
|
||||
public function getScore() {
|
||||
return $this->score;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Score
|
||||
*
|
||||
* @api
|
||||
* @param mixed int
|
||||
*/
|
||||
public function setScore($score) {
|
||||
$this->score = $score;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures\ShootMania\Models;
|
||||
|
||||
/**
|
||||
* RoyalPointTypes Interface
|
||||
*
|
||||
* @api
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2017 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
interface RoyalPointTypes {
|
||||
const POLE = "Pole";
|
||||
const HIT = "Hit";
|
||||
const SURVIVAL = "Survival";
|
||||
}
|
18
core/Callbacks/Structures/ShootMania/Models/VictoryTypes.php
Normal file
18
core/Callbacks/Structures/ShootMania/Models/VictoryTypes.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl\Callbacks\Structures\ShootMania\Models;
|
||||
|
||||
/**
|
||||
* VictoryTypes Interface (only available in Elite atm)
|
||||
*
|
||||
* @api
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014-2017 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
interface VictoryTypes {
|
||||
const TIME_LIMIT = 1;
|
||||
const CAPTURE = 2;
|
||||
const ATTACKER_ELIMINATED = 3;
|
||||
const DEFENDERS_ELIMINATED = 4;
|
||||
}
|
Reference in New Issue
Block a user