Пример #1
0
 function __construct($numberOfPlanets = null, $name = null)
 {
     $this->name = $name ? $name : Random::Name();
     $this->seed = SEED;
     $this->GeneratePlanets($numberOfPlanets);
 }
Пример #2
0
 function __construct($name = null, $position = null, $radius = null)
 {
     $this->name = $name ? $name : Random::Name();
     $this->position = $position ? $position : Random::Vector3();
     $this->radius = $radius ? $radius : Random::Number();
 }