implemented all new shootmania callbacks + some refactors

This commit is contained in:
kremsy
2017-04-07 22:30:55 +02:00
parent 287e6316d6
commit 31054d7502
19 changed files with 601 additions and 32 deletions

View 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;
}
}

View File

@ -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";
}

View 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;
}