2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Controls\Quads;
|
|
|
|
|
|
|
|
use FML\Controls\Quad;
|
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Quad Class for 'Copilot' Style
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
class Quad_Copilot extends Quad {
|
2014-01-21 20:30:40 +01:00
|
|
|
/*
|
2013-11-25 00:02:07 +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';
|
2013-11-25 00:02:07 +01:00
|
|
|
|
|
|
|
/**
|
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-11-25 00:02:07 +01:00
|
|
|
*/
|
2013-12-31 02:55:19 +01:00
|
|
|
public function __construct($id = null) {
|
|
|
|
parent::__construct($id);
|
2013-11-25 00:02:07 +01:00
|
|
|
$this->setStyle(self::STYLE);
|
|
|
|
}
|
|
|
|
}
|