__construct() public method

public __construct ( )
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $trees = new Tree(Sapling::SPRUCE);
     $trees->setBaseAmount(10);
     $this->addPopulator($trees);
     $mossStone = new MossStone();
     $mossStone->setBaseAmount(1);
     $this->addPopulator($mossStone);
     $this->setElevation(63, 81);
     $this->temperature = 0.05;
     $this->rainfall = 0.8;
     $this->setGroundCover([Block::get(Block::PODZOL, 0), Block::get(Block::DIRT, 0), Block::get(Block::DIRT, 0), Block::get(Block::DIRT, 0)]);
 }