class_Motor.php
Go to the documentation of this file.00001 <?php
00024 class Motor extends BaseDrive implements TradeableItem, ConstructableShipPart {
00025
00026 protected function __construct() {
00027
00028 parent::__construct(__CLASS__);
00029 }
00030
00031
00032 public final static function createMotor ($descr, $hp, $cams, $w, $h, $l) {
00033
00034 $motorInstance = new Motor();
00035
00036
00037 $motorInstance->setWidth($w);
00038 $motorInstance->setHeight($h);
00039 $motorInstance->setLength($l);
00040
00041
00042 $motorInstance->setHorsePower($hp);
00043 $motorInstance->setNumCams($cams);
00044
00045
00046 return $motorInstance;
00047 }
00048
00049
00050 public function isTradeable () {
00051 return true;
00052 }
00053 }
00054
00055
00056 ?>