TrackManiaControl/application/core/Libs/FML/Controls/Quads/Quad_Copilot.php
Steffen Schröder 5ad45d3b6f FML Update
2014-05-01 17:35:37 +02:00

53 lines
1.2 KiB
PHP

<?php
namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Copilot' Style
*
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Copilot extends Quad {
/*
* Constants
*/
const STYLE = 'Copilot';
const SUBSTYLE_Down = 'Down';
const SUBSTYLE_DownGood = 'DownGood';
const SUBSTYLE_DownWrong = 'DownWrong';
const SUBSTYLE_Left = 'Left';
const SUBSTYLE_LeftGood = 'LeftGood';
const SUBSTYLE_LeftWrong = 'LeftWrong';
const SUBSTYLE_Right = 'Right';
const SUBSTYLE_RightGood = 'RightGood';
const SUBSTYLE_RightWrong = 'RightWrong';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_UpGood = 'UpGood';
const SUBSTYLE_UpWrong = 'UpWrong';
/**
* Create a new Quad_Copilot Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Copilot
*/
public static function create($id = null) {
$quadCopilot = new Quad_Copilot($id);
return $quadCopilot;
}
/**
* Construct a new Quad_Copilot Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}