Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $tallGrass = new TallGrass();
     $tallGrass->setBaseAmount(5);
     $this->addPopulator($tallGrass);
     $this->setElevation(63, 74);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $trees = new Tree(Sapling::SPRUCE);
     $trees->setBaseAmount(10);
     $this->addPopulator($trees);
     $tallGrass = new TallGrass();
     $tallGrass->setBaseAmount(1);
     $this->addPopulator($tallGrass);
     $this->setElevation(63, 81);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
 }