TrackManiaControl/application/core/Libs/FML/Controls/Quads/Quad_Copilot.php

53 lines
1.2 KiB
PHP
Raw Normal View History

<?php
namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
2014-01-12 00:51:46 +01:00
* Quad Class for 'Copilot' Style
*
* @author steeffeen
2014-04-13 18:21:40 +02:00
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Copilot extends Quad {
2014-01-21 20:30:40 +01:00
/*
* Constants
*/
const STYLE = 'Copilot';
2013-12-31 02:55:19 +01:00
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';
/**
2014-01-19 19:30:21 +01:00
* Create a new Quad_Copilot Control
2013-12-31 02:55:19 +01:00
*
2014-01-19 19:30:21 +01:00
* @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
*/
2013-12-31 02:55:19 +01:00
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}