class_Bridge.php

Go to the documentation of this file.
00001 <?php
00024 class Bridge extends BaseUpperStructure implements TradeableItem, ConstructableShipPart {
00025         // Constructor
00026         protected function __construct () {
00027                 // Call parent constructor
00028                 parent::__construct(__CLASS__);
00029 
00030                 // Clean up a little
00031                 $this->removeSystemArray();
00032                 $this->removeNumberFormaters();
00033                 $this->removePartInstance();
00034         }
00035 
00036         // Eine Kommandobruecke erstellen
00037         public final static function createBridge ($width, $height, $length) {
00038                 // Get new instance
00039                 $bridgeInstance = new Bridge();
00040 
00041                 // Abmasse setzen
00042                 $bridgeInstance->setWidth($width);
00043                 $bridgeInstance->setHeight($height);
00044                 $bridgeInstance->setLength($length);
00045 
00046                 // Instanz zurueckgeben
00047                 return $bridgeInstance;
00048         }
00049 
00050         // Overwritten method for tradeable items
00051         public function isTradeable () {
00052                 return true;
00053         }
00054 }
00055 
00056 // [EOF]
00057 ?>

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