Class: Astromapper::Builder::Hostile
- Defined in:
- lib/astromapper/builder/orbit.rb
Instance Attribute Summary
Attributes inherited from Orbit
#au, #id, #kid, #orbit_number, #port, #xsize
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(star, orbit_number) ⇒ Hostile
constructor
A new instance of Hostile.
Methods inherited from Planet
Methods inherited from Orbit
#biozone?, #distant?, #inner?, #km, #limit?, #outer?, #period, #populate, #populate_biozone, #populate_inner, #populate_outer, #radii, #to_ascii, #to_s, #uwp
Methods inherited from Base
#config, constitute, #names, #spawn_command, #toss
Constructor Details
#initialize(star, orbit_number) ⇒ Hostile
Returns a new instance of Hostile.
145 146 147 148 149 150 |
# File 'lib/astromapper/builder/orbit.rb', line 145 def initialize(star,orbit_number) super @atmo = [10,11,12,13,14].sample @hydro = toss(2,4) @kid = 'H' end |