class_Motor.php

Go to the documentation of this file.
00001 <?php
00024 class Motor extends BaseDrive implements TradeableItem, ConstructableShipPart {
00025         // Constructor
00026         protected function __construct() {
00027                 // Call parent constructor
00028                 parent::__construct(__CLASS__);
00029         }
00030 
00031         // Einen Motor erstellen
00032         public final static function createMotor ($descr, $hp, $cams, $w, $h, $l) {
00033                 // Get new instance
00034                 $motorInstance = new Motor();
00035 
00036                 // Beschreibung und Abmasse setzen
00037                 $motorInstance->setWidth($w);
00038                 $motorInstance->setHeight($h);
00039                 $motorInstance->setLength($l);
00040 
00041                 // Weitere Daten setzen
00042                 $motorInstance->setHorsePower($hp);
00043                 $motorInstance->setNumCams($cams);
00044 
00045                 // Instanz zurueckgeben
00046                 return $motorInstance;
00047         }
00048 
00049         // Overwritten method for tradeable items
00050         public function isTradeable () {
00051                 return true;
00052         }
00053 }
00054 
00055 // [EOF]
00056 ?>

Generated on Mon Dec 8 01:06:44 2008 for Ship-Simulator by  doxygen 1.5.6