class Astromapper::Builder::GasGiant

Public Class Methods

new(star,orbit_number) click to toggle source
Calls superclass method Astromapper::Builder::Planet::new
# File lib/astromapper/builder/orbit.rb, line 154
def initialize(star,orbit_number)
  super
  @xsize = (toss(1,0) < 4) ? 'L' : 'S'
  moons = toss(2,0)
  moons = (moons - 4).whole if @xsize == 'S'
  @moons = make_moons(moons)
  @kid = 'G'
end

Public Instance Methods

uwp() click to toggle source
# File lib/astromapper/builder/orbit.rb, line 162
def uwp
  (@xsize == 'S') ? 'Small GG ' : 'Large GG '
end