Example #1
0
 private function __construct($locationX, $locationY)
 {
     $this->tileLocationX = $locationX;
     $this->tileLocationY = $locationY;
     // Load statistics
     $name = get_class($this);
     $name = explode('_', $name);
     $name = $name[count($name) - 1];
     // Get stats
     $this->stats = Dolumar_Buildings_Building::getStatistics($name);
     // Backwards comptability
     $this->bc = $this->stats['bc'];
     $this->points = $this->stats['points'];
     $this->initRequirements();
 }