Class Galaxy
In: app/models/galaxy.rb
Parent: Object

Methods

add_moons   boundry  

Public Class methods

Adds moons to our galaxy

[Source]

    # File app/models/galaxy.rb, line 9
 9:   def self.add_moons(n=5)
10:     n.times do
11:       Moon.make
12:     end
13:   end

The boundry of our galaxy. ( Yes, space is not infinit ;) )

[Source]

   # File app/models/galaxy.rb, line 4
4:   def self.boundry
5:     Player.count*10 < 50 ? 50 : Player.count*10
6:   end

[Validate]